bpt/emacs.git
11 years ago* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
Stefan Monnier [Tue, 15 Jan 2013 06:05:22 +0000 (01:05 -0500)]
* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
the use of nadvice.el.
* lisp/emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak'
to return an explicit nil.
(advice--remove-function): Change accordingly.
* test/automated/advice-tests.el: Split up.  Add advice-test-preactivate.

11 years ago* lisp/gnus/nnimap.el (nnimap-keepalive): Don't throw an error if there's no
Stefan Monnier [Tue, 15 Jan 2013 04:26:28 +0000 (23:26 -0500)]
* lisp/gnus/nnimap.el (nnimap-keepalive): Don't throw an error if there's no
more imap process running.

11 years ago* lisp/progmodes/which-func.el (which-function): Silence imenu errors.
Stefan Monnier [Tue, 15 Jan 2013 04:20:13 +0000 (23:20 -0500)]
* lisp/progmodes/which-func.el (which-function): Silence imenu errors.

Fixes: debbugs:13433

11 years ago* progmodes/sql.el: (sql-imenu-generic-expression):
Michael Mauger [Tue, 15 Jan 2013 03:21:56 +0000 (22:21 -0500)]
* progmodes/sql.el: (sql-imenu-generic-expression):
(sql-mode-font-lock-object-name): Match schema qualified names.
(sql-connect): Use string keys.
(sql-product-interactive): Wait for interpreter prompt.
(sql-comint-oracle): Set process coding based on NLS_LANG.

11 years ago* progmodes/sql.el (sql-output-to-send): Remove, unused.
Michael Mauger [Tue, 15 Jan 2013 02:35:45 +0000 (21:35 -0500)]
* progmodes/sql.el (sql-output-to-send): Remove, unused.
(sql-interactive-remove-continuation-prompt):
(sql-send-magic-terminator, sql-interactive-mode): Remove references.

11 years agognus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison
Julien Danjou [Mon, 14 Jan 2013 22:09:16 +0000 (22:09 +0000)]
gnus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison

11 years agoAvoid needless casts with XSAVE_POINTER.
Paul Eggert [Mon, 14 Jan 2013 17:46:14 +0000 (09:46 -0800)]
Avoid needless casts with XSAVE_POINTER.

* alloc.c (mark_object) [GC_MARK_STACK]:
* dired.c (directory_files_internal_unwind):
* fileio.c (do_auto_save_unwind):
* gtkutil.c (pop_down_dialog):
* keymap.c (map_keymap_char_table_item):
* lread.c (load_unwind):
* nsmenu.m (pop_down_menu):
* print.c (print_object) [GC_MARK_STACK]:
* xfns.c (clean_up_file_dialog):
* xmenu.c (cleanup_widget_value_tree):
Omit casts between XSAVE_POINTER and a pointer type.

11 years agoSync window-point and point in calendar-redraw
Leo Liu [Mon, 14 Jan 2013 15:39:04 +0000 (23:39 +0800)]
Sync window-point and point in calendar-redraw

Fixes: debbugs:13420

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 14 Jan 2013 11:20:54 +0000 (06:20 -0500)]
Auto-commit of loaddefs files.

11 years ago* lisp.h (toplevel): Fix typo in comment.
Dmitry Antipov [Mon, 14 Jan 2013 11:16:14 +0000 (15:16 +0400)]
* lisp.h (toplevel): Fix typo in comment.

11 years agoFix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
Dmitry Antipov [Mon, 14 Jan 2013 11:07:50 +0000 (15:07 +0400)]
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
* eval.c (eval_sub): Protect `form' from being GCed before its
car and cdr becomes protected with the backtrace entry.

11 years agoMake Lisp_Save_Value more versatile storage for up to four objects.
Dmitry Antipov [Mon, 14 Jan 2013 09:55:21 +0000 (13:55 +0400)]
Make Lisp_Save_Value more versatile storage for up to four objects.
* lisp.h (toplevel): Enumeration to describe types of saved objects.
(struct Lisp_Save_Value): New layout.  Adjust comments.
(XSAVE_POINTER): New macro.
(XSAVE_INTEGER): Likewise.
(allocate_misc): Add prototype.
(free_misc): Likewise.
* alloc.c (allocate_misc): Now global.
(free_misc): Likewise.  Adjust comment.
(make_save_value): Use new Lisp_Save_Value layout.  Adjust comment.
(free_save_value): Likewise.
(mark_object): Likewise.
* editfns.c (save_excursion_save): Pack everything within
Lisp_Save_Value and so avoid xmalloc.
(save_excursion_restore): Adjust to match new layout.  Use free_misc
because we do not allocate extra memory any more.  Add eassert.
* print.c (print_object): New code to print Lisp_Save_Value.  Do not
rely on valid_lisp_object_p if !GC_MARK_STACK.  Adjust comments.
* dired.c, fileio.c, font.c, ftfont.c, gtkutil.c, keymap.c,
* lread.c, nsmenu.m, nsterm.h, xfns.c, xmenu.c, xselect.c:
Use XSAVE_POINTER and XSAVE_INTEGER where appropriate.

11 years agoRemove compilation-error-regexp-alist-alist (presumed) extraneous backslash
Glenn Morris [Mon, 14 Jan 2013 01:09:38 +0000 (17:09 -0800)]
Remove compilation-error-regexp-alist-alist (presumed) extraneous backslash

11 years agoFix interpretation of gnu line.col1-col2 error message format
Glenn Morris [Mon, 14 Jan 2013 01:08:13 +0000 (17:08 -0800)]
Fix interpretation of gnu line.col1-col2 error message format

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
* test/automated/compile-tests.el (compile-tests--test-regexps-data):
Fix interpretation of gnu line.col1-col2 format.

Fixes: debbugs:13335

11 years agoDelete merge marker.
Romain Francoise [Sun, 13 Jan 2013 21:26:10 +0000 (22:26 +0100)]
Delete merge marker.

11 years agoMerge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu
Glenn Morris [Sun, 13 Jan 2013 20:03:01 +0000 (12:03 -0800)]
Merge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu

11 years agoChangeLog whitespace trivia
Glenn Morris [Sun, 13 Jan 2013 19:58:02 +0000 (11:58 -0800)]
ChangeLog whitespace trivia

11 years agoNEWS placeholder for scroll-bar-adjust-thumb-portion
Glenn Morris [Sun, 13 Jan 2013 19:55:51 +0000 (11:55 -0800)]
NEWS placeholder for scroll-bar-adjust-thumb-portion

11 years agoDoc fix.
Richard M. Stallman [Sun, 13 Jan 2013 19:48:04 +0000 (14:48 -0500)]
Doc fix.

11 years agoFix bug that f in Rmail, in some situations, would insert entire Rmail file.
Richard M. Stallman [Sun, 13 Jan 2013 19:46:27 +0000 (14:46 -0500)]
Fix bug that f in Rmail, in some situations, would insert entire Rmail file.

11 years agoFix spelling error.
Jan Djärv [Sun, 13 Jan 2013 19:36:05 +0000 (20:36 +0100)]
Fix spelling error.

11 years agoAvoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.
Eli Zaretskii [Sun, 13 Jan 2013 17:47:45 +0000 (19:47 +0200)]
Avoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.

 lisp/cus-start.el (all): Avoid warnings about
 scroll-bar-adjust-thumb-portion on platforms where it is not
 defined.

11 years ago* nsfont.m (LCD_SMOOTHING_MARGIN): New define.
Jan Djärv [Sun, 13 Jan 2013 14:29:22 +0000 (15:29 +0100)]
* nsfont.m (LCD_SMOOTHING_MARGIN): New define.
(nsfont_draw): Remove disabling of LCD smoothing.
(ns_glyph_metrics): Add LCD_SMOOTHING_MARGIN to bearings to fix
Bug#11484 with LCD smooting on.

11 years agoMerge Org 7.9.3d (commit e8f5b0ad).
Bastien Guerry [Sun, 13 Jan 2013 10:33:16 +0000 (11:33 +0100)]
Merge Org 7.9.3d (commit e8f5b0ad).

11 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Sat, 12 Jan 2013 19:31:25 +0000 (11:31 -0800)]
ChangeLog fix (no need to merge to trunk)

11 years agoAdd tiny change.
Jan Djärv [Fri, 11 Jan 2013 05:10:11 +0000 (06:10 +0100)]
Add tiny change.

11 years agoMake scroll-bar-adjust-thumb-portion customizable, adjust documentation.
Jan Djärv [Fri, 11 Jan 2013 05:09:30 +0000 (06:09 +0100)]
Make scroll-bar-adjust-thumb-portion customizable, adjust documentation.

* lisp/cus-start.el (all): Add scroll-bar-adjust-thumb-portion.

* src/xterm.c (syms_of_xterm): Adjust documentation for
scroll-bar-adjust-thumb-portion.

11 years agoIntroduce scroll-bar-adjust-thumb-portion.
Jan Djärv [Fri, 11 Jan 2013 04:57:45 +0000 (05:57 +0100)]
Introduce scroll-bar-adjust-thumb-portion.

* xterm.c (scroll-bar-adjust-thumb-portion): New variable to
determine whether scroll bar thumb size should be adjusted or
not. Use variable for MOTIF.

* gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for
GTK.

11 years ago* nsterm.m (keyDown:): Set processingCompose to NO if an emacs key
Jan Djärv [Sun, 13 Jan 2013 12:08:31 +0000 (13:08 +0100)]
* nsterm.m (keyDown:): Set processingCompose to NO if an emacs key
event is generated.
(doCommandBySelector:): Set processingCompose to NO.

11 years ago* nsfont.m (ns_findfonts): Add block/unblock_input calls.
Jan Djärv [Sun, 13 Jan 2013 12:05:17 +0000 (13:05 +0100)]
* nsfont.m (ns_findfonts): Add block/unblock_input calls.
Remove check for fkeys count > zero, block/unblock fixes the real bug.
(nsfont_list_family): Add block/unblock_input calls.
(nsfont_open): Move block_input earlier.  Add unblock_input before early
return.
(nsfont_draw): Add block/unblock_input calls.

11 years ago* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
Stefan Monnier [Sun, 13 Jan 2013 01:23:48 +0000 (20:23 -0500)]
* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
(jit-lock--debug-fontifying): New var.
(jit-lock--debug-fontify): New function.
* lisp/subr.el (condition-case-unless-debug): Don't prevent catching the
error, just let the debbugger run.
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
timer code and don't drop errors silently.

11 years agoRemove <>, since makes contents invisible on http://ftp.gnu.org
Glenn Morris [Sun, 13 Jan 2013 00:51:49 +0000 (16:51 -0800)]
Remove <>, since makes contents invisible on ftp.gnu.org

11 years ago* autorevert.el (auto-revert-notify-handler): Use `file-equal-p'.
Michael Albinus [Sat, 12 Jan 2013 19:24:27 +0000 (20:24 +0100)]
* autorevert.el (auto-revert-notify-handler): Use `file-equal-p'.

11 years ago* autorevert.el (auto-revert-notify-watch-descriptor): Give it
Michael Albinus [Sat, 12 Jan 2013 13:30:00 +0000 (14:30 +0100)]
* autorevert.el (auto-revert-notify-watch-descriptor): Give it
`permanent-local' property.

11 years agoFix filtering of file notification events in autorevert.el.
Eli Zaretskii [Sat, 12 Jan 2013 11:25:39 +0000 (13:25 +0200)]
Fix filtering of file notification events in autorevert.el.

 lisp/autorevert.el (auto-revert-notify-handler): Fix filtering of
 file notification by ACTION. For filtering by file name, compare
 only the non-directory part of the file name.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 12 Jan 2013 11:17:37 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years ago* indent.c (Fvertical_motion): Remove now-incorrect GCPROs
Paul Eggert [Sat, 12 Jan 2013 06:15:12 +0000 (22:15 -0800)]
* indent.c (Fvertical_motion): Remove now-incorrect GCPROs

for old_charpos and old_bytepos.

11 years agoEnable conservative stack scanning for all architectures.
Paul Eggert [Sat, 12 Jan 2013 05:21:06 +0000 (21:21 -0800)]
Enable conservative stack scanning for all architectures.

Suggested by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00183.html>.
* configure.ac (GC_MARK_STACK): Remove.

11 years ago* lisp/autorevert.el: Use cl-lib instead of cl.
Stefan Monnier [Sat, 12 Jan 2013 04:17:08 +0000 (23:17 -0500)]
* lisp/autorevert.el: Use cl-lib instead of cl.

11 years ago* lisp/vc/vc-bzr.el (vc-bzr--sanitize-header): New function.
Stefan Monnier [Sat, 12 Jan 2013 03:15:14 +0000 (22:15 -0500)]
* lisp/vc/vc-bzr.el (vc-bzr--sanitize-header): New function.
(vc-bzr-checkin): Use it.
* lisp/vc/log-edit.el (log-edit-extract-headers): Don't presume FUNCTION
will preserve match-data.

Fixes: debbugs:13307

11 years agoRemove obsolete comment about NON_SAVING_SETJMP.
Paul Eggert [Sat, 12 Jan 2013 01:47:07 +0000 (17:47 -0800)]
Remove obsolete comment about NON_SAVING_SETJMP.

11 years agoFix bug with set-time-zone-rule and LOCALTIME_CACHE.
Paul Eggert [Sat, 12 Jan 2013 01:15:06 +0000 (17:15 -0800)]
Fix bug with set-time-zone-rule and LOCALTIME_CACHE.

* editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]:
Clear tzvalbuf_in_environ if this workaround is in effect.
Problem and fix reported by Kazuhiro Ito.

Fixes: debbugs:13415

11 years ago* lib/getopt_.h: Remove trailing CRs that crept in.
Paul Eggert [Fri, 11 Jan 2013 23:28:04 +0000 (15:28 -0800)]
* lib/getopt_.h: Remove trailing CRs that crept in.

11 years ago* lisp/progmodes/js.el: Fix multiline declarations's indentation.
Felix H. Dahlke [Fri, 11 Jan 2013 23:24:52 +0000 (18:24 -0500)]
* lisp/progmodes/js.el: Fix multiline declarations's indentation.
(js--declaration-keyword-re): New var.
(js--multi-line-declaration-indentation): New function.
(js--proper-indentation): Use it.

Fixes: debbugs:8576

11 years agoDisambiguate function and variable references in docstrings.
Aaron S. Hawley [Fri, 11 Jan 2013 23:08:55 +0000 (18:08 -0500)]
Disambiguate function and variable references in docstrings.
* lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
 string cross-reference(s).

* lisp/ffap.el (ffap-string-at-point-region, ffap-next)
(ffap-string-at-point, ffap-string-around)
(ffap-copy-string-as-kill, ffap-highlight-overlay)
(ffap-literally): Fix ambiguous doc string cross-reference(s).

* lisp/font-lock.el (font-lock-keywords-alist)
(font-lock-removed-keywords-alist): Fix ambiguous doc string
        cross-reference(s).

* lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
a cross-reference to a function.

* lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
 string cross-reference(s).

* lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
 ambiguous doc string cross-reference(s).

* lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
 doc string cross-reference(s).

* lisp/newcomment.el (comment-box): Fix ambiguous doc string
 cross-reference(s).

* lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
(pr-setting-database): Fix ambiguous doc string
 cross-reference(s).

* lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
(ps-n-up-filling-database): Fix ambiguous doc string
 cross-reference(s).

* lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
 cross-reference(s).

* lisp/simple.el (newline, delete-backward-char, delete-forward-char)
(minibuffer-history-isearch-message, kill-line, track-eol)
(temporary-goal-column): Fix ambiguous doc string
 cross-reference(s).

* lisp/whitespace.el (whitespace-point)
(whitespace-font-lock-refontify, whitespace-bob-marker)
(whitespace-eob-marker): Fix ambiguous doc string
 cross-reference(s).

* lisp/calc/calc.el (calc-highlight-selections-with-faces)
 (calc-dispatch): Fix ambiguous doc string cross-reference(s).

* lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
 ambiguous doc string cross-reference(s).

* lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
 cross-reference(s).

* lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
 cross-reference(s).

* lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
 doc string cross-reference(s).

* lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
(c++-font-lock-keywords-3, objc-font-lock-keywords-3)
(java-font-lock-keywords-3, idl-font-lock-keywords-3)
(pike-font-lock-keywords-3): Fix ambiguous doc string
 cross-reference(s).

* lisp/progmodes/compile.el (compile): Fix ambiguous doc string
 cross-reference(s).

* lisp/progmodes/etags.el (tags-table-files)
(tags-table-files-function, tags-included-tables-function): Fix
 ambiguous doc string cross-reference(s).

* lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
(gdb-restore-windows): Fix ambiguous doc string
 cross-reference(s).

* lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
(flyspell-default-deplacement-commands): Fix ambiguous doc string
 cross-reference(s).

* lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
 string cross-reference(s).

* lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
 cross-reference(s).

* lisp/vc/compare-w.el (compare-ignore-whitespace)
(compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
 doc string cross-reference(s).

* lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).

* src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
 ambiguous doc string cross-reference(s).

* src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
 doc string cross-reference(s).

* src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
 string cross-reference(s).

Fixes: debbugs:12686

11 years ago*** empty log message ***
Stefan Monnier [Fri, 11 Jan 2013 23:03:04 +0000 (18:03 -0500)]
*** empty log message ***

11 years agoFix a scoping error.
Michael Albinus [Fri, 11 Jan 2013 22:54:42 +0000 (23:54 +0100)]
Fix a scoping error.

11 years ago* autorevert.el (top): Require 'cl in order to pacify byte compiler.
Michael Albinus [Fri, 11 Jan 2013 22:36:32 +0000 (23:36 +0100)]
* autorevert.el (top): Require 'cl in order to pacify byte compiler.
(auto-revert-notify-rm-watch): Ignore errors.
(auto-revert-notify-add-watch): Ignore errors.  Use '(modify) for
inotify, and '(size last-write-time) for w32notify.  Set
buffer-local `auto-revert-use-notify' to nil when adding a file
watch fails - this is a fallback to the file modification check.
(auto-revert-notify-event-p, auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): New defuns.
(auto-revert-notify-handler): Use them.  Implement first
plausibility checks.
(auto-revert-handler): Handle also `auto-revert-tail-mode'.

11 years agocolor.el: fix color-rgb-to-hsv computing
Julien Danjou [Fri, 11 Jan 2013 15:04:24 +0000 (15:04 +0000)]
color.el: fix color-rgb-to-hsv computing

11 years agoAvoid unnecessary byte position calculation for the gap movement.
Dmitry Antipov [Fri, 11 Jan 2013 13:25:10 +0000 (17:25 +0400)]
Avoid unnecessary byte position calculation for the gap movement.
Since all users of move_gap do CHAR_TO_BYTE for other purposes
anyway, all of them should use move_gap_both instead.
* lisp.h (move_gap): Remove prototype.
* insdel.c (move_gap): Remove.
(move_gap_both): Add eassert.
* editfns.c (Ftranspose_regions): Tweak to use move_gap_both.
* xml.c (parse_region): Likewise.

11 years agoUse point-max-marker and point-min-marker here and there.
Dmitry Antipov [Fri, 11 Jan 2013 10:40:54 +0000 (14:40 +0400)]
Use point-max-marker and point-min-marker here and there.
* lisp/emacs-lisp/ert.el (ert-run-test): Use point-max-marker.
* lisp/erc/erc-dcc.el (erc-dcc-chat-setup): Likewise.
* lisp/gnus/gnus-async.el (gnus-async-article-callback): Likewise.
* lisp/erc/erc-dcc.el (erc-dcc-send-file): Use point-min-marker.
* lisp/gnus/gnus-art.el (gnus-mime-display-security): Use point-min-marker
and point-max-marker.

11 years agoFix last commit in autorevert.el.
Eli Zaretskii [Fri, 11 Jan 2013 09:45:54 +0000 (11:45 +0200)]
Fix last commit in autorevert.el.

 lisp/autorevert.el (auto-revert-notify-rm-watch)
 (auto-revert-notify-add-watch): Fix typos in w32notify function
 names.

11 years agoMS-Windows followup to bugfix #13387.
Eli Zaretskii [Fri, 11 Jan 2013 09:33:54 +0000 (11:33 +0200)]
MS-Windows followup to bugfix #13387.

 nt/inc/unistd.h (O_IGNORE_CTTY): Define, as it is unconditionally
 used in term.c.

11 years agolib/getopt_.h: Regenerate.
Eli Zaretskii [Fri, 11 Jan 2013 09:20:41 +0000 (11:20 +0200)]
lib/getopt_.h: Regenerate.

11 years agolisp/gnus/mml-smime.el: Add mml-smime-encrypt-to-self
Uwe Brauer [Fri, 11 Jan 2013 03:06:13 +0000 (03:06 +0000)]
lisp/gnus/mml-smime.el: Add mml-smime-encrypt-to-self

* mml-smime.el (mml-smime-encrypt-to-self): New user option analogous
to mml2015-encrypt-to-self.
(mml-smime-epg-encrypt): Respect mml-smime-encrypt-to-self.

11 years agoemacsclient -t should not suspend Emacs server
Paul Eggert [Fri, 11 Jan 2013 02:40:58 +0000 (18:40 -0800)]
emacsclient -t should not suspend Emacs server

* lisp.h, sysdep.c (block_tty_out_signal, unblock_tty_out_signal):
New functions.
* term.c (init_tty): Use them instead of rolling our own code.
* sysdep.c (tcsetpgrp_without_stopping): Likewise.  Here, this
switches from 'signal' to 'pthread_sigmask', which is safer in
multithreaded applications.
* term.c (Fresume_tty): Don't bother dissociating if O_IGNORE_CTTY,
which has already arranged for that.
(dissociate_if_controlling_tty): If setsid fails, fall back on TIOCNOTTY.
This is the main part of the bug fix.

Fixes: debbugs:13387

11 years ago* gtkutil.c (xg_initialize): Backport from trunk.
Jan Djärv [Fri, 11 Jan 2013 01:22:49 +0000 (02:22 +0100)]
* gtkutil.c (xg_initialize): Backport from trunk.
Add ifdef HAVE_FREETYPE around x_last_font_name.

Fixes: debbugs:13403

11 years agoBackport typo fix from trunk, for AIX.
Paul Eggert [Fri, 11 Jan 2013 07:51:25 +0000 (23:51 -0800)]
Backport typo fix from trunk, for AIX.

* eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.
This follows up on the 2012-09-29 patch that removed indirection
for the 'function' field.  Reported by Sergey Vinokurov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>.

Fixes: debbugs:13408

11 years agoFix SIGDANGER handlers, for AIX.
Paul Eggert [Fri, 11 Jan 2013 07:47:57 +0000 (23:47 -0800)]
Fix SIGDANGER handlers, for AIX.

* sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]:
Move handlers here from emacs.c; they were out of place.

Fixes: debbugs:13408

11 years ago* autorevert.el (auto-revert-notify-enabled): Move up.
Michael Albinus [Thu, 10 Jan 2013 20:26:15 +0000 (21:26 +0100)]
* autorevert.el (auto-revert-notify-enabled): Move up.
(auto-revert-use-notify): New defcustom.
(auto-revert-mode, global-auto-revert-mode)
(auto-revert-notify-add-watch, auto-revert-handler)
(auto-revert-buffers): Use `auto-revert-use-notify' instead of
`auto-revert-notify-enabled'.

11 years ago* gtkutil.c (xg_initialize): Add ifdef HAVE_FREETYPE around
Jan Djärv [Thu, 10 Jan 2013 17:45:08 +0000 (18:45 +0100)]
* gtkutil.c (xg_initialize): Add ifdef HAVE_FREETYPE around
x_last_font_name.

Fixes: debbugs:13403

11 years ago* lisp/files.el (auto-mode-alist): Use doc-view for djvu files.
Elias Pipping [Thu, 10 Jan 2013 15:50:04 +0000 (10:50 -0500)]
* lisp/files.el (auto-mode-alist): Use doc-view for djvu files.
* lisp/doc-view.el (doc-view-document->bitmap):
Use doc-view-single-page-converter-function instead of
single-page-converter arg; adjust callers.

Fixes: debbugs:13164

11 years ago* lisp/progmodes/which-func.el (which-function): Understand Semantic's use
Feng Li [Thu, 10 Jan 2013 15:36:01 +0000 (10:36 -0500)]
* lisp/progmodes/which-func.el (which-function): Understand Semantic's use
of overlays in imenu--index-alist.

11 years ago* lisp/man.el: Handle different "man -k" behaviors. Use utf-8.
Wolfgang Jenkner [Thu, 10 Jan 2013 15:01:35 +0000 (10:01 -0500)]
* lisp/man.el: Handle different "man -k" behaviors.  Use utf-8.
(Man-man-k-use-anchor): New var.
(Man-parse-man-k): New function.
(Man-completion-table): Use it.
(man): Flush the completion cache between uses.
* test/automated/man-tests.el: New file.

Fixes: debbugs:13160

11 years ago* autorevert.el: Add file watch support.
Michael Albinus [Thu, 10 Jan 2013 14:27:48 +0000 (15:27 +0100)]
* autorevert.el: Add file watch support.
(auto-revert-notify-enabled): New defconst.
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-watch-descriptor)
(auto-revert-notify-modified-p): New defvars.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): New defuns.
(auto-revert-mode, global-auto-revert-mode): Remove file watches
when mode is disabled.
(auto-revert-handler): Check for `auto-revert-notify-modified-p'.
(auto-revert-buffers): Add file watches for active buffers.

11 years agoOmit buffer_slot_type_mismatch and use generic predicates to enforce
Dmitry Antipov [Thu, 10 Jan 2013 10:30:16 +0000 (14:30 +0400)]
Omit buffer_slot_type_mismatch and use generic predicates to enforce
the type of per-buffer values where appropriate.
* src/lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to
predicate, which is how it's really used now.  Adjust comment.
* src/buffer.h (buffer_slot_type_mismatch): Remove prototype.
* src/buffer.c (buffer_slot_type_mismatch): Remove.
(DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to
predicate.  Adjust comment.
(syms_of_buffer): Use Qsymbolp for major-mode.  Use Qintegerp for
fill-column, left-margin, tab-width, buffer-saved-size,
left-margin-width, right-margin-width, left-fringe-width,
right-fringe-width, scroll-bar-width and buffer-display-count.
Use Qstringp for default-directory, buffer-file-name,
buffer-file-truename and buffer-auto-save-file-name.  Use Qfloatp for
scroll-up-aggressively and scroll-down-aggressively.  Use Qnumberp for
line-spacing.
* src/data.c (store_symval_forwarding): Adjust to call the predicate.
* lisp/cus-start.el (toplevel): Only allow float values for
scroll-up-aggressively and scroll-down-aggressively.
Allow any number for line-spacing.

11 years ago* tramp.texi (Default Host): Introduce `tramp-default-host-alist'.
Michael Albinus [Thu, 10 Jan 2013 07:34:48 +0000 (08:34 +0100)]
* tramp.texi (Default Host): Introduce `tramp-default-host-alist'.

11 years ago* lisp/doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.
Stefan Monnier [Thu, 10 Jan 2013 05:05:24 +0000 (00:05 -0500)]
* lisp/doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.
(doc-view-pdf->png-converter-function): Use mupdf if available.
(doc-view-djvu->png-converter-function)
(doc-view-ps->png-converter-function): Remove.
(doc-view--image-file-pattern): Replace doc-view--image-file-extension.
(doc-view-goto-page, doc-view-convert-current-doc, doc-view-display)
(doc-view-already-converted-p): Adjust accordingly.
(doc-view-mode-p): Simplify.
(doc-view-enlarge): Use setq-local.
(doc-view-pdf->png-converter-ghostscript)
(doc-view-djvu->png-converter-ddjvu)
(doc-view-pdf->png-converter-mupdf): Rework to call
doc-view-start-process directly.
(doc-view-pdf/ps->png): Simplify accordingly.
(doc-view-pdf->png-1, doc-view-djvu->png-1): Remove.
(doc-view-document->bitmap): Rename from doc-view-document->png.
(doc-view-convert-current-doc): Merge pdf and djvu cases.
(doc-view-set-slice-from-bounding-box): Fix completion table.
(doc-view-mode): Use add-hook for after-revert-hook.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 10 Jan 2013 04:31:36 +0000 (23:31 -0500)]
Auto-commit of generated files.

11 years agoMisc make-tarball updates
Glenn Morris [Thu, 10 Jan 2013 04:12:46 +0000 (20:12 -0800)]
Misc make-tarball updates

11 years ago* make-dist: Add options for xz compression and no compression.
Glenn Morris [Thu, 10 Jan 2013 04:00:02 +0000 (20:00 -0800)]
* make-dist: Add options for xz compression and no compression.

11 years ago* progmodes/python.el (python-nav-end-of-statement): Fix
Fabián Ezequiel Gallina [Thu, 10 Jan 2013 03:44:12 +0000 (00:44 -0300)]
* progmodes/python.el (python-nav-end-of-statement): Fix
cornercase when handling multiline strings.

11 years agoMerge from emacs-24
Stefan Monnier [Thu, 10 Jan 2013 03:43:02 +0000 (22:43 -0500)]
Merge from emacs-24

11 years agoBump version to 24.2.92
Glenn Morris [Thu, 10 Jan 2013 02:45:32 +0000 (18:45 -0800)]
Bump version to 24.2.92
Regenerate etc/AUTHORS and lisp/ldefs-boot.el

11 years ago* lisp/emacs-lisp/crm.el: Allow any regexp for separators.
Roland Winkler [Thu, 10 Jan 2013 02:45:31 +0000 (21:45 -0500)]
* lisp/emacs-lisp/crm.el: Allow any regexp for separators.
(crm-default-separator): All spaces around the default comma separator.
(crm--completion-command): New macro.
(crm-completion-help, crm-complete, crm-complete-word): Use it.
(crm-complete-and-exit): Handle non-single-char separators.

11 years agoChangeLog fixes from M-x authors
Glenn Morris [Thu, 10 Jan 2013 02:30:52 +0000 (18:30 -0800)]
ChangeLog fixes from M-x authors

11 years agoauthors.el tiny updates
Glenn Morris [Thu, 10 Jan 2013 02:30:06 +0000 (18:30 -0800)]
authors.el tiny updates

* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names, authors-renamed-files-alist):
Add some more entries.

11 years agoMerge from gnulib.
Paul Eggert [Thu, 10 Jan 2013 02:19:44 +0000 (18:19 -0800)]
Merge from gnulib.

11 years ago* lisp/image-mode.el (image-mode-winprops): Don't throw away the fallback
Stefan Monnier [Wed, 9 Jan 2013 22:47:27 +0000 (17:47 -0500)]
* lisp/image-mode.el (image-mode-winprops): Don't throw away the fallback
`t' pseudo-window entry.

11 years agoFix bugs in the c-parse-state mechanism. Reuse some markers instead of
Alan Mackenzie [Wed, 9 Jan 2013 21:33:00 +0000 (21:33 +0000)]
Fix bugs in the c-parse-state mechanism.  Reuse some markers instead of
continually generating new ones.

cc-engine.el (c-state-old-cpp-beg-marker, c-state-old-cpp-end-marker):
New variables.
(c-append-lower-brace-pair-to-state-cache): Start a backward search for
"}" definitively outside CPP constructs.
(c-remove-stale-state-cache): Inform the caller of a need to search back
for a brace pair in certain circumstances.
(c-state-maybe-marker): New macro.
(c-parse-state): Reuse markers when appropriate.

11 years ago* test/automated/undo-tests.el (undo-test0): Adjust error to code change.
Aaron S. Hawley [Wed, 9 Jan 2013 21:29:27 +0000 (16:29 -0500)]
* test/automated/undo-tests.el (undo-test0): Adjust error to code change.

11 years agocommands.texi small fix for bug#13393
Glenn Morris [Wed, 9 Jan 2013 21:26:08 +0000 (16:26 -0500)]
commands.texi small fix for bug#13393

* doc/lispref/commands.texi (Interactive Codes):
Whitespace does not terminate interactive "S".

11 years ago* lisp/doc-view.el: Add support for DjVu.
Elias Pipping [Wed, 9 Jan 2013 21:24:42 +0000 (16:24 -0500)]
* lisp/doc-view.el: Add support for DjVu.
(doc-view-djvu->png-converter-function): New config var.
(doc-view-single-page-converter-function, doc-view--image-type)
(doc-view--image-file-extension): New vars.
(doc-view-mode): Initialize them.
(doc-view-goto-page): Use them.
(doc-view-mode-p): Add support for ddjvu.
(doc-view-djvu->png-converter-ddjvu, doc-view-djvu->png-1)
(doc-view-set-up-single-converter): New funs.
(doc-view-pdf/ps->png): Extend for djvu.
(doc-view-document->png): Rename from doc-view-pdf->png.
(doc-view-convert-current-doc): Handle djvu.
(doc-view-insert-image, doc-view-display)
(doc-view-already-converted-p): Don't hardcode png.
(doc-view-set-doc-type): Recognize djvu docs.

Fixes: debbugs:13164

11 years agoexecute-extended-command prompt fix (bug#13395)
Glenn Morris [Wed, 9 Jan 2013 21:23:14 +0000 (16:23 -0500)]
execute-extended-command prompt fix (bug#13395)

* lisp/simple.el (execute-extended-command): Doc fix.
Bind prefix-arg around read-extended-command, for prompt.

11 years ago* lisp/doc-view.el: Add support for mupdf converter.
Elias Pipping [Wed, 9 Jan 2013 19:48:42 +0000 (14:48 -0500)]
* lisp/doc-view.el: Add support for mupdf converter.
(doc-view-pdfdraw-program, doc-view-pdf->png-converter-function)
(doc-view-ps->png-converter-function): New config vars.
(doc-view-pdf->png-converter-ghostscript)
(doc-view-ps->png-converter-ghostscript)
(doc-view-pdf->png-converter-mupdf): New functions.
(doc-view-pdf/ps->png, doc-view-pdf->png-1): Use them.

Fixes: debbugs:13164

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 9 Jan 2013 15:07:44 +0000 (16:07 +0100)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_GTK_HANDLE_BOX_NEW, HAVE_GTK_TEAROFF_MENU_ITEM_NEW): New macros.

11 years agosrc/w32.c, src/w32term.c: Remove unused local variables.
Juanma Barranquero [Wed, 9 Jan 2013 15:07:01 +0000 (16:07 +0100)]
src/w32.c, src/w32term.c: Remove unused local variables.

11 years ago* insdel.c (make_gap_larger): Fix comment because gap_left doesn't
Dmitry Antipov [Wed, 9 Jan 2013 14:08:49 +0000 (18:08 +0400)]
* insdel.c (make_gap_larger): Fix comment because gap_left doesn't
adjust markers.
(make_gap_smaller): Likewise for gap_right.

11 years ago* lisp.h (make_gap_1): New prototype.
Dmitry Antipov [Wed, 9 Jan 2013 13:50:22 +0000 (17:50 +0400)]
* lisp.h (make_gap_1): New prototype.
* buffer.h (GAP_BYTES_DFL, GAP_BYTES_MIN): New macros for the special
gap size values.
* editfns.c (Fbuffer_size): Rename from Fbufsize to fit the common
naming convention.
(syms_of_editfns): Adjust defsubr.  Drop commented-out obsolete code.
* insdel.c (make_gap_larger): Use GAP_BYTES_DFL.
(make_gap_smaller): Use GAP_BYTES_MIN.  Adjust comment.
(make_gap_1): New function to adjust the gap of any buffer.
* coding.c (coding_alloc_by_making_gap): Use it.
* buffer.c (compact_buffer): Likewise.  Use BUF_Z_BYTE, BUF_GAP_SIZE,
GAP_BYTES_DFL and GAP_BYTES_MIN.  Adjust comment.

11 years ago* net/tramp.el (tramp-eshell-directory-change): Check remote-path
Michael Albinus [Wed, 9 Jan 2013 09:49:27 +0000 (10:49 +0100)]
* net/tramp.el (tramp-eshell-directory-change): Check remote-path
first in session cache: When `tramp-own-remote-path' is in
`tramp-remote-path', the remote path is only set in the session
cache.

11 years agoMinor doc fix.
Chong Yidong [Wed, 9 Jan 2013 09:46:30 +0000 (17:46 +0800)]
Minor doc fix.

11 years ago* faces.el (read-face-name): Doc fix.
Chong Yidong [Wed, 9 Jan 2013 09:43:38 +0000 (17:43 +0800)]
* faces.el (read-face-name): Doc fix.

11 years agoMerge from emacs-24; up to 2012-12-08T12:11:29Z!eliz@gnu.org
Glenn Morris [Wed, 9 Jan 2013 08:30:21 +0000 (00:30 -0800)]
Merge from emacs-24; up to 2012-12-08T12:11:29Z!eliz@gnu.org

11 years agoBackport spelling fixes from trunk
Paul Eggert [Wed, 9 Jan 2013 08:29:10 +0000 (00:29 -0800)]
Backport spelling fixes from trunk

11 years agoSpelling fix merged from gnulib.
Paul Eggert [Wed, 9 Jan 2013 08:25:11 +0000 (00:25 -0800)]
Spelling fix merged from gnulib.

11 years agoRemove duplicated ChangeLog entry
Glenn Morris [Wed, 9 Jan 2013 08:20:20 +0000 (00:20 -0800)]
Remove duplicated ChangeLog entry

11 years agoSpelling fixes.
Paul Eggert [Wed, 9 Jan 2013 08:17:47 +0000 (00:17 -0800)]
Spelling fixes.

* lisp/net/tramp-adb.el (tramp-adb-get-toolbox):
Fix misspelling of 'unknown'.

11 years ago* mml-smime.el (epg-sub-key-fingerprint): Autoload.
Daiki Ueno [Wed, 9 Jan 2013 05:11:16 +0000 (14:11 +0900)]
* mml-smime.el (epg-sub-key-fingerprint): Autoload.

11 years agoRemove some obsolete trace.el commentary
Glenn Morris [Wed, 9 Jan 2013 04:01:57 +0000 (20:01 -0800)]
Remove some obsolete trace.el commentary

11 years agoRemove some of the more obsolete MAINTAINERS info
Glenn Morris [Wed, 9 Jan 2013 04:00:57 +0000 (20:00 -0800)]
Remove some of the more obsolete MAINTAINERS info