bpt/emacs.git
11 years ago* longlines.el (longlines-wrap-line, longlines-encode-region): Preserve text properties.
Chong Yidong [Fri, 30 Nov 2012 06:56:51 +0000 (14:56 +0800)]
* longlines.el (longlines-wrap-line, longlines-encode-region): Preserve text properties.

Fixes: debbugs:1425

11 years agoRelax existing-registration check in vc-register (tiny change).
OKAZAKI Tetsurou [Fri, 30 Nov 2012 04:44:52 +0000 (12:44 +0800)]
Relax existing-registration check in vc-register (tiny change).

* vc/vc.el (vc-register): Allow registering a file which is already
registered with a different backend.

Fixes: debbugs:10589

11 years agoNew ERC option to avoid sending accidentally-pasted text to the server.
Eric Hanchrow [Fri, 30 Nov 2012 04:18:22 +0000 (12:18 +0800)]
New ERC option to avoid sending accidentally-pasted text to the server.

* erc.el (erc-last-input-time): New variable.
(erc-accidental-paste-threshold-seconds): New option to avoid
sending accidentally-pasted text to the server.
(erc-send-current-line): Use it.

Also,

* erc.el (erc-lurker-cleanup, erc-lurker-p): Use float-time.

Fixes: debbugs:11592

11 years ago* lisp/icomplete.el: Change separator; add ido-style commands.
Jambunathan K [Thu, 29 Nov 2012 21:32:24 +0000 (16:32 -0500)]
* lisp/icomplete.el: Change separator; add ido-style commands.
(icomplete-show-key-bindings): Remove custom var.
(icomplete-get-keys): Remove function.
(icomplete-forward-completions, icomplete-backward-completions):
New commands.
(icomplete-minibuffer-map): New var.
(icomplete-minibuffer-setup): Use it.
(icomplete-exhibit): Don't delay if the list of completions is known.
(icomplete-separator): New custom.
(icomplete-completions): Use it.
* lisp/minibuffer.el (completion-all-sorted-completions): Delete duplicates.
(minibuffer-force-complete-and-exit): New command.
(minibuffer--complete-and-exit): New function extracted from
minibuffer-complete-and-exit.
(minibuffer-complete-and-exit): Use it.

11 years ago* lisp/progmodes/etags.el (visit-tags-table-buffer): Give a more precise
Stefan Monnier [Thu, 29 Nov 2012 20:19:11 +0000 (15:19 -0500)]
* lisp/progmodes/etags.el (visit-tags-table-buffer): Give a more precise
error message when the file doesn't exist.

Fixes: debbugs:12974

11 years ago* lisp/simple.el (activate-mark): Run activate-mark-hook.
Kelly Dean [Thu, 29 Nov 2012 20:09:37 +0000 (15:09 -0500)]
* lisp/simple.el (activate-mark): Run activate-mark-hook.

Fixes: debbugs:13027

11 years agoWarn if try to set coding in dir-locals (bug#7169)
Glenn Morris [Thu, 29 Nov 2012 19:28:39 +0000 (14:28 -0500)]
Warn if try to set coding in dir-locals (bug#7169)

* lisp/files.el (hack-dir-local-variables):
Warn if try to set coding via dir-locals, since it doesn't work.

11 years agoFix wording of commentary to 'struct face' in dispextern.h.
Eli Zaretskii [Thu, 29 Nov 2012 16:26:25 +0000 (18:26 +0200)]
Fix wording of commentary to 'struct face' in dispextern.h.

11 years ago* xdisp.c (window_outdated): Remove eassert since it hits
Dmitry Antipov [Thu, 29 Nov 2012 06:00:21 +0000 (10:00 +0400)]
* xdisp.c (window_outdated): Remove eassert since it hits
some suspicious corner cases (see Bug#13007 and Bug#13012).
(mode_line_update_needed): New function.
(redisplay_internal, redisplay_window): Use it.
(ensure_selected_frame): New function.
(redisplay_internal, unwind_redisplay): Use it.
(redisplay_internal): Move comment about buffer_shared...
(buffer_shared_and_changed): ...near to its real use.

11 years agoAdd desktop support for restoring vc-dir buffers (bug#10606)
Glenn Morris [Thu, 29 Nov 2012 01:16:51 +0000 (20:16 -0500)]
Add desktop support for restoring vc-dir buffers (bug#10606)

* lisp/vc/vc-dir.el (vc-dir-mode): Autoload it (for desktop restore).
Set buffer-local value of desktop-save-buffer.
(vc-dir-desktop-buffer-misc-data, vc-dir-restore-desktop-buffer):
New functions.
(desktop-buffer-mode-handlers): Add vc-dir-mode entry.

* lisp/desktop.el (desktop-save-buffer-p): Treat vc-dir like dired.

11 years agoBy default, ignore case when testing inhibit-local-variables (bug#10610)
Glenn Morris [Thu, 29 Nov 2012 01:13:33 +0000 (20:13 -0500)]
By default, ignore case when testing inhibit-local-variables (bug#10610)

* lisp/files.el (inhibit-local-variables-ignore-case): New.
(inhibit-local-variables-p): Use inhibit-local-variables-ignore-case.
Doc fix.
(inhibit-local-variables-regexps, inhibit-local-variables-suffixes):
Doc fixes.

11 years ago* callproc.c (Fcall_process): Don't misreport vfork failure.
Paul Eggert [Thu, 29 Nov 2012 00:36:22 +0000 (16:36 -0800)]
* callproc.c (Fcall_process): Don't misreport vfork failure.

11 years ago* callproc.c (Fcall_process): Fix vfork portability problems.
Paul Eggert [Wed, 28 Nov 2012 22:33:35 +0000 (14:33 -0800)]
* callproc.c (Fcall_process): Fix vfork portability problems.

Do not assume that fd[0], count, filefd, and save_environ survive
vfork.  Fix bug whereby wrong errno value could be reported for
pipe failure.  Some minor cleanups, too, as follows.  Move buf and
bufsize to the context where they're needed.  Change new_argv to
be of type char **, as this is more convenient and avoids casts.
(CALLPROC_BUFFER_SIZE_MIN, CALLPROC_BUFFER_SIZE_MAX):
Now local constants, not macros.

11 years ago* lisp/calc/calc-forms.el (calc-date-notation): Fix regexp
Jay Belanger [Wed, 28 Nov 2012 04:51:13 +0000 (22:51 -0600)]
* lisp/calc/calc-forms.el (calc-date-notation): Fix regexp
  used to find time codes.  Fix symbol for seconds.

11 years agoderived-mode-make-docstring tweak for bug#11277
Glenn Morris [Tue, 27 Nov 2012 16:40:04 +0000 (11:40 -0500)]
derived-mode-make-docstring tweak for bug#11277

* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Don't mention "abbrev" or "syntax" if nil.

11 years agomerge trunk
Kenichi Handa [Tue, 27 Nov 2012 13:03:42 +0000 (22:03 +0900)]
merge trunk

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 27 Nov 2012 11:18:12 +0000 (06:18 -0500)]
Auto-commit of loaddefs files.

11 years agoAssume POSIX 1003.1-1988 or later for grp.h, pwd.h.
Paul Eggert [Tue, 27 Nov 2012 05:38:42 +0000 (21:38 -0800)]
Assume POSIX 1003.1-1988 or later for grp.h, pwd.h.

* dired.c (stat_uname, stat_gname):
* fileio.c (Fexpand_file_name): Remove no-longer-needed casts.

11 years agoAssume POSIX 1003.1-1988 or later for errno.h.
Paul Eggert [Tue, 27 Nov 2012 05:17:07 +0000 (21:17 -0800)]
Assume POSIX 1003.1-1988 or later for errno.h.

* lib-src/movemail.c (main): Assume EAGAIN and EBUSY.
* src/dired.c (directory_files_internal, file_name_completion):
Assume EAGAIN and EINTR are defined.
* src/fileio.c (Fcopy_file): Assume EISDIR is defined.
* src/gmalloc.c (ENOMEM, EINVAL): Assume they're defined.
* src/gnutls.c (emacs_gnutls_write): Assume EAGAIN is defined.
* src/lread.c (readbyte_from_file): Assume EINTR is defined.
* src/process.c (wait_reading_process_output, send_process) [subprocesses]:
Assume EIO and EAGAIN are defined.
* src/unexcoff.c (write_segment): Assume EFAULT is defined.

Fixes: debbugs:12968

11 years agoMerge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.ca
Glenn Morris [Tue, 27 Nov 2012 03:10:32 +0000 (19:10 -0800)]
Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.ca

11 years ago* lisp/textmodes/table.el (table-insert): Don't use `symbol-name' on
Stefan Monnier [Tue, 27 Nov 2012 02:06:19 +0000 (21:06 -0500)]
* lisp/textmodes/table.el (table-insert): Don't use `symbol-name' on
lexically scoped variables.

Fixes: debbugs:13005

11 years agovc-hooks.el workaround for bug#11490
Glenn Morris [Mon, 26 Nov 2012 23:50:12 +0000 (18:50 -0500)]
vc-hooks.el workaround for bug#11490

* vc/vc-hooks.el (vc-mistrust-permissions): Default to t, to avoid data-loss.

11 years ago* progmodes/python.el:
Fabián Ezequiel Gallina [Mon, 26 Nov 2012 23:31:06 +0000 (20:31 -0300)]
* progmodes/python.el:
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.

11 years agoFix Imenu regression.
Fabián Ezequiel Gallina [Mon, 26 Nov 2012 21:45:58 +0000 (18:45 -0300)]
Fix Imenu regression.
* progmodes/python.el:
(python-nav-beginning-of-defun): Fix forward movement when
statement(s) separates point from defun.
(python-imenu-prev-index-position): New function.

11 years ago* lisp/emacs-lisp/advice.el (ad-should-compile): Don't compile advice if the
Stefan Monnier [Mon, 26 Nov 2012 19:56:14 +0000 (14:56 -0500)]
* lisp/emacs-lisp/advice.el (ad-should-compile): Don't compile advice if the
base function is not yet defined.
(ad-activate-advised-definition): Use ad-compile-function.
(ad-activate): Use cond.

Fixes: debbugs:12965

11 years agoDon't crash if internal-char-font is called on non-GUI frames.
Eli Zaretskii [Mon, 26 Nov 2012 17:46:35 +0000 (19:46 +0200)]
Don't crash if internal-char-font is called on non-GUI frames.

 src/fontset.c (Finternal_char_font): Return nil on non-GUI frames.
 (Bug#11964)

11 years agoFix last commit's log entry.
Eli Zaretskii [Mon, 26 Nov 2012 17:12:44 +0000 (19:12 +0200)]
Fix last commit's log entry.

Fixes: debbugs:12989

11 years agoPartial fix for bug #12989 with buffer-file-type annoyances.
Eli Zaretskii [Mon, 26 Nov 2012 17:09:04 +0000 (19:09 +0200)]
Partial fix for bug #12989 with buffer-file-type annoyances.

 lisp/subr.el (buffer-file-type): Declare with defvar-local.  Doc fix.
 lisp/dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
 Don't set buffer-file-type.  Return nil.

11 years ago* lisp/hippie-exp.el (hippie-expand-try-functions-list): Re-autoload it.
Glenn Morris [Mon, 26 Nov 2012 01:41:00 +0000 (17:41 -0800)]
* lisp/hippie-exp.el (hippie-expand-try-functions-list): Re-autoload it.

Fixes: debbugs:12982

11 years ago* mh-e.texi (Sequences): Add mh-whitelist-preserves-sequences-flag.
Bill Wohler [Sun, 25 Nov 2012 20:14:53 +0000 (12:14 -0800)]
* mh-e.texi (Sequences): Add mh-whitelist-preserves-sequences-flag.
(Junk): Add mh-whitelist-preserves-sequences-flag,
mh-blacklist-msg-hook, mh-whitelist-msg-hook, mh-folder-blacklisted,
mh-folder-whitelisted (closes SF #2945712).

11 years agoChangeLog fix
Glenn Morris [Sun, 25 Nov 2012 19:24:26 +0000 (11:24 -0800)]
ChangeLog fix
Reposition and redate entries with the date they were merged into Emacs

11 years agoMerge from trunk.
Bill Wohler [Sun, 25 Nov 2012 18:33:16 +0000 (10:33 -0800)]
Merge from trunk.

11 years agoRelease MH-E version 8.4.
Bill Wohler [Sun, 25 Nov 2012 18:26:38 +0000 (10:26 -0800)]
Release MH-E version 8.4.

* mh-e.el (Version, mh-version): Update for release 8.4.

11 years agoRelease MH-E version 8.4.
Bill Wohler [Sun, 25 Nov 2012 18:25:34 +0000 (10:25 -0800)]
Release MH-E version 8.4.

* NEWS, MH-E-NEWS: Update for MH-E release 8.4.

11 years agoRelease MH-E manual version 8.4.
Bill Wohler [Sun, 25 Nov 2012 18:22:04 +0000 (10:22 -0800)]
Release MH-E manual version 8.4.

* mh-e.texi: (VERSION, EDITION, UPDATED, UPDATE-MONTH, Preface):
Update for release 8.4.

11 years agoFix bug #11964 with crashes inside internal-char-font on non-GUI frames.
Eli Zaretskii [Sun, 25 Nov 2012 16:28:38 +0000 (18:28 +0200)]
Fix bug #11964 with crashes inside internal-char-font on non-GUI frames.

 lips/descr-text.el (describe-char-padded-string): Call
 internal-char-font only on GUI frames.

11 years ago* lisp/textmodes/sgml-mode.el (sgml-tag): Fix indentation for closing tag.
Leo Liu [Sun, 25 Nov 2012 16:07:58 +0000 (00:07 +0800)]
* lisp/textmodes/sgml-mode.el (sgml-tag): Fix indentation for closing tag.

Fixes: debbugs:12979

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 25 Nov 2012 12:23:32 +0000 (07:23 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 25 Nov 2012 12:19:00 +0000 (07:19 -0500)]
Auto-commit of generated files.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 25 Nov 2012 11:18:55 +0000 (06:18 -0500)]
Auto-commit of generated files.

11 years ago* sysdep.c (sys_subshell): Don't assume pid_t fits in int.
Paul Eggert [Sun, 25 Nov 2012 07:50:55 +0000 (23:50 -0800)]
* sysdep.c (sys_subshell): Don't assume pid_t fits in int.

11 years ago* textmodes/reftex-parse.el (reftex-parse-from-file): Use variable reftex-section...
Vincent Belaïche [Sun, 25 Nov 2012 05:05:34 +0000 (06:05 +0100)]
* textmodes/reftex-parse.el (reftex-parse-from-file): Use variable reftex-section-info-function in order to be compatible with Texinfo integration.

* textmodes/reftex.el (reftex-section-pre-regexp, reftex-section-post-regexp, reftex-section-info-function): New variable. (reftex-compile-variables): Use variables reftex-section-pre-regexp, reftex-section-post-regexp, and reftex-section-info-function in order to be compatible with Texinfo integration.

* textmodes/reftex-toc.el (reftex-toc-promote-action): use reftex-section-pre-regexp variable in order to be compatible with Texinfo integration.

11 years agoRevamp face-spec-set to be more analogous to setq for faces.
Chong Yidong [Sun, 25 Nov 2012 04:50:20 +0000 (12:50 +0800)]
Revamp face-spec-set to be more analogous to setq for faces.

* lisp/faces.el (face-spec-set): Change the third arg to specify
whether this function is being called via defface, customize, or a
third party.  Set the appropriate symbol properties.  Clear the
override spec if setting via Custom.  Initialize face if necessary.
(face-spec-recalc): Allow theme faces to completely replace the
defface spec, in the same way as custom faces (Bug#8454).

* lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save)
(custom-face-reset-saved, custom-face-mark-to-reset-standard):
Simplify by using the new arg to face-spec-set.

* lisp/cus-face.el (custom-declare-face): Move face initialization to
face-spec-set.
(custom-theme-set-faces): Don't initialize the face name here, as
that is now done in face-spec-set.

* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
reset face-override-spec too, and use custom-declare-face.

Fixes: debbugs:4988

11 years ago* mh-comp.el (mh-regexp-in-field-syntax-table): Fix docstring.
Bill Wohler [Sun, 25 Nov 2012 04:37:28 +0000 (20:37 -0800)]
* mh-comp.el (mh-regexp-in-field-syntax-table): Fix docstring.
(mh-edit-again): Format.
(mh-components-to-list): Fix docstring.
(mh-regexp-in-field-p): Remove unused variable `field'.

11 years ago* mh-compat.el (mh-define-obsolete-variable-alias)
Bill Wohler [Sun, 25 Nov 2012 04:13:04 +0000 (20:13 -0800)]
* mh-compat.el (mh-define-obsolete-variable-alias)
(mh-make-obsolete-variable): New macros to fix XEmacs compiler
warnings.

* mh-letter.el (mh-yank-hooks): Use new mh-make-obsolete-variable
macro.

* mh-e.el (mh-kill-folder-suppress-prompt-hooks): Use new
mh-define-obsolete-variable-alias macro.

* mh-compat.el (mh-cl-flet): New alias for cl-flet on Emacs 24 and
flet elsewhere.

* mh-thread.el (mh-thread-set-tables): Replace flet with new alias
mh-cl-flet.

* mh-show.el (mh-gnus-article-highlight-citation): Replace flet with
new alias mh-cl-flet.

* mh-mime.el (mh-display-with-external-viewer, mh-mime-display)
(mh-press-button, mh-push-button, mh-display-emphasis): Replace flet
with new alias mh-cl-flet.

* mh-e.el (mh-invisible-header-fields-internal): Remove trailing
  whitespace.

11 years agoMerge from trunk.
Bill Wohler [Sun, 25 Nov 2012 03:43:02 +0000 (19:43 -0800)]
Merge from trunk.

11 years agoFixed a small bug in the last checkin.
Jeffrey C Honig [Sun, 25 Nov 2012 03:14:17 +0000 (22:14 -0500)]
Fixed a small bug in the last checkin.

11 years ago(mh-edit-again): Use the components file to specify
Jeffrey C Honig [Sun, 25 Nov 2012 02:21:02 +0000 (21:21 -0500)]
(mh-edit-again): Use the components file to specify
default values for missing headers in the draft.
(mh-regexp-in-field-syntax-table, mh-fcc-syntax-table)
(mh-addr-syntax-table, mh-regexp-in-field-p): Use a syntax table
so we'll properly parse non-address fields.
(mh-components-to-list, mh-extract-header-field): New functions to
read components file.
(mh-find-components, mh-send-sub): Move code to locate components
file into a new function.
(mh-insert-auto-fields, mh-modify-header-field): New syntax for
calling mh-regexp-in-field-p.
(closes SF #1708292)

11 years ago* mh-e.texi (Procmail): Fix two @ typos.
Paul Eggert [Sun, 25 Nov 2012 00:05:54 +0000 (16:05 -0800)]
* mh-e.texi (Procmail): Fix two @ typos.

11 years ago* buff-menu.el (Buffer-menu-buffer+size-width): Fix customize type
Andreas Schwab [Sat, 24 Nov 2012 23:07:13 +0000 (00:07 +0100)]
* buff-menu.el (Buffer-menu-buffer+size-width): Fix customize type
and obsoletion message.

11 years ago* doclicense.texi, gpl.texi: Update to latest version from FSF.
Paul Eggert [Sat, 24 Nov 2012 21:37:18 +0000 (13:37 -0800)]
* doclicense.texi, gpl.texi: Update to latest version from FSF.

These are just minor editorial changes.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' in
Stefan Monnier [Sat, 24 Nov 2012 21:34:28 +0000 (16:34 -0500)]
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' in
the constructs to keep outside of the `cl-block'.

Fixes: debbugs:12977

11 years ago* term/ns-win.el (ns-initialize-window-system): Move creation of
Jan Djärv [Sat, 24 Nov 2012 17:55:48 +0000 (18:55 +0100)]
* term/ns-win.el (ns-initialize-window-system): Move creation of
fontsets here.

Fixes: debbugs:11964

11 years ago* ses.el (ses-rename-cell): Correct bug on mode-line update after cell renaming.
Vincent Belaïche [Sat, 24 Nov 2012 17:44:29 +0000 (18:44 +0100)]
* ses.el (ses-rename-cell): Correct bug on mode-line update after cell renaming.

11 years agoRemove HAVE_MOUSE; see https://lists.gnu.org/archive/html/emacs-devel/2012-10/msg0040...
Ken Brown [Sat, 24 Nov 2012 17:20:49 +0000 (12:20 -0500)]
Remove HAVE_MOUSE; see https://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00403.html.

* configure.ac (HAVE_MOUSE): Remove.
* admin/CPP-DEFINES (HAVE_MOUSE): Remove.
* msdos/sed2v2.inp (HAVE_MOUSE): Remove.
* nt/config.nt (HAVE_MOUSE): Remove.
* src/keyboard.c (HAVE_MOUSE):
* src/frame.c (HAVE_MOUSE): Remove, and rewrite code as if HAVE_MOUSE
were always defined.

11 years ago* lisp/woman.el (woman-default-faces, woman-monochrome-faces): Mark as obsolete.
Chong Yidong [Sat, 24 Nov 2012 16:58:43 +0000 (00:58 +0800)]
* lisp/woman.el (woman-default-faces, woman-monochrome-faces): Mark as obsolete.

11 years agoFix the MS-Windows build broken by absence of the *.manifest files.
Eli Zaretskii [Sat, 24 Nov 2012 16:58:28 +0000 (18:58 +0200)]
Fix the MS-Windows build broken by absence of the *.manifest files.

 make-dist (nt): Adjust to changes in names of the *.manifest files.

11 years agoBump version to 24.2.90.
Chong Yidong [Sat, 24 Nov 2012 15:31:31 +0000 (23:31 +0800)]
Bump version to 24.2.90.
Regenerate AUTHORS and ldefs-boot.el.

11 years agoMinor update to make-tarball.txt.
Chong Yidong [Sat, 24 Nov 2012 15:24:40 +0000 (23:24 +0800)]
Minor update to make-tarball.txt.

11 years agoRevert recent change for Bug#8855.
Paul Eggert [Sat, 24 Nov 2012 08:24:11 +0000 (00:24 -0800)]
Revert recent change for Bug#8855.

As reported by Harald Hanche-Olsen in
<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00445.html>
the change introduces a further bug, of creating lots of zombie
processes in some cases.  Further work is needed to come up with a
better fix for Bug#8855.

11 years agoFix follow-mouse clicks on undraggable mode/header lines.
Chong Yidong [Sat, 24 Nov 2012 08:15:00 +0000 (16:15 +0800)]
Fix follow-mouse clicks on undraggable mode/header lines.

* mouse.el (mouse-drag-line): Even if the line is not draggable,
keep reading until we get the up-event anyway, in order to process
the up-event for mouse-1-click-follows-link.

Fixes: debbugs:12971

11 years agoFix assertion violations when clicking on Info bread-crumbs.
Eli Zaretskii [Sat, 24 Nov 2012 07:25:52 +0000 (09:25 +0200)]
Fix assertion violations when clicking on Info bread-crumbs.

 src/xdisp.c (draw_glyphs): Don't draw in mouse face if mouse
 highlighting on the frame was cleared.  Prevents assertion
 violations when repeatedly clicking on the "Top" link of the
 "bread-crumbs" in Info buffers.

11 years agoUse ~ instead of /home/user.
Bill Wohler [Sat, 24 Nov 2012 07:13:44 +0000 (23:13 -0800)]
Use ~ instead of /home/user.
Use mformat instead of obsolete vfolder_format.

11 years ago* loading.texi (Named Features): @ -> @@ to fix typo.
Paul Eggert [Sat, 24 Nov 2012 06:50:44 +0000 (22:50 -0800)]
* loading.texi (Named Features): @ -> @@ to fix typo.

11 years agoFix ChangeLog entries for the last commit.
Eli Zaretskii [Sat, 24 Nov 2012 06:24:13 +0000 (08:24 +0200)]
Fix ChangeLog entries for the last commit.

11 years agoFix dependency sorting in custom-theme-set-variables.
Chong Yidong [Sat, 24 Nov 2012 03:46:29 +0000 (11:46 +0800)]
Fix dependency sorting in custom-theme-set-variables.

* lisp/custom.el (custom-theme-set-variables): Use a topological sort
for ordering by custom dependencies.
(custom--sort-vars, custom--sort-vars-1): New functions.

Fixes: debbugs:12952

11 years agoMerge from emacs-24; up to 2012-11-19T11:36:02Z!yamaoka@jpl.org
Glenn Morris [Sat, 24 Nov 2012 01:57:09 +0000 (17:57 -0800)]
Merge from emacs-24; up to 2012-11-19T11:36:02Z!yamaoka@jpl.org

11 years agoFix a race condition with glib (Bug#8855).
Paul Eggert [Fri, 23 Nov 2012 22:20:31 +0000 (14:20 -0800)]
Fix a race condition with glib (Bug#8855).
This is a backport from the trunk, consisting of:

2012-11-17  Eli Zaretskii  <eliz@gnu.org>

* nt/inc/sys/wait.h: New file, with prototype of waitpid and
definitions of macros it needs.
* nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore.
(sys_wait): Remove prototype.
* nt/config.nt (HAVE_SYS_WAIT_H): Define to 1.
* src/w32proc.c (create_child): Don't clip the PID of the child
process to fit into an Emacs integer, as this is no longer a
restriction.
(waitpid): Rename from sys_wait.  Emulate a Posix 'waitpid' by
reaping only the process specified by PID argument, if that is
positive.  Use PID instead of dead_child to know which process to
reap.  Wait for the child to die only if WNOHANG is not in
OPTIONS.
(sys_select): Don't set dead_child.
* src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
as it is no longer needed.
* src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
no longer needed.
(record_child_status_change): Remove the setting of
record_at_most_one_child for the !WNOHANG case.

2012-11-03  Paul Eggert  <eggert@cs.ucla.edu>

Fix a race condition that causes Emacs to mess up glib (Bug#8855).
This is a backport from the trunk.
The symptom is a diagnostic "GLib-WARNING **: In call to
g_spawn_sync(), exit status of a child process was requested but
SIGCHLD action was set to SIG_IGN and ECHILD was received by
waitpid(), so exit status can't be returned."  The diagnostic
is partly wrong, as the SIGCHLD action is not set to SIG_IGN.
The real bug is a race condition between Emacs and glib: Emacs
does a waitpid (-1, ...) and reaps glib's subprocess by mistake,
so that glib can't find it.  Work around the bug by invoking
waitpid only on subprocesses that Emacs itself creates.
* src/process.c (create_process, record_child_status_change):
Don't use special value -1 in pid field, as the caller now must
know the pid rather than having the callee infer it.  The
inference was sometimes incorrect anyway, due to another race.
(create_process): Set new 'alive' member if child is created.
(process_status_retrieved): New function.
(record_child_status_change): Use it.
Accept negative 1st argument, which means to wait for the
processes that Emacs already knows about.  Move special-case code
for DOS_NT (which lacks WNOHANG) here, from caller.  Keep track of
processes that have already been waited for, by testing and
clearing new 'alive' member.
(CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change
now does this internally.
(handle_child_signal): Let record_child_status_change do all
the work, since we do not want to reap all exited child processes,
only the child processes that Emacs itself created.
* src/process.h (Lisp_Process): New boolean member 'alive'.

11 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Setup default value for
Stefan Monnier [Fri, 23 Nov 2012 21:49:13 +0000 (16:49 -0500)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Setup default value for
lexical-binding.

Fixes: debbugs:12938

11 years ago* doc/misc/calc.texi (Date Formatting Codes): Mention the new
Jay Belanger [Fri, 23 Nov 2012 18:43:29 +0000 (12:43 -0600)]
* doc/misc/calc.texi (Date Formatting Codes): Mention the new
  beginning of the date numbering system.

11 years agolisp/image-mode.el (image-transform-check-size): Use assertions only
Wolfgang Jenkner [Fri, 23 Nov 2012 17:41:01 +0000 (18:41 +0100)]
lisp/image-mode.el (image-transform-check-size): Use assertions only
for images of type imagemagick.

Otherwise no error, image-transform-fit-to-{width,height} is
silently ignored, as before.  Doc fix.

11 years ago* lisp/erc/erc-backend.el: Fix last change that missed calls to `second'.
Stefan Monnier [Fri, 23 Nov 2012 16:00:57 +0000 (11:00 -0500)]
* lisp/erc/erc-backend.el: Fix last change that missed calls to `second'.

Fixes: debbugs:12970

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 23 Nov 2012 15:42:40 +0000 (16:42 +0100)]
nt/config.nt: Sync with autogen/config.in.
(BROKEN_GETWD, HAVE_CLOSEDIR, HAVE_DIRENT_H, HAVE_FCNTL_H, HAVE_GETWD): Remove.

11 years ago* frame.h (struct frame): Remove display_preempted member
Dmitry Antipov [Fri, 23 Nov 2012 15:39:48 +0000 (19:39 +0400)]
* frame.h (struct frame): Remove display_preempted member
since all users are dead long ago.
* nsterm.h (struct x_output): Use the only dummy member.
* w32menu.c (pending_menu_activation): Remove since not
really used.
(set_frame_menubar): Adjust user.
* w32term.h (struct x_output): Drop outdated #if 0 code.
(struct w32_output): Use bitfields for explicit_parent,
asked_for_visible and menubar_active members.  Drop
unused pending_menu_activation member.
* xterm.h (struct x_output): Drop outdated #if 0 code.
Use bitfields for explicit_parent, asked_for_visible,
has_been_visible and net_wm_state_hidden_seen members.

11 years agoCorrect and reword recent changes to window.texi.
Martin Rudalics [Fri, 23 Nov 2012 14:39:07 +0000 (15:39 +0100)]
Correct and reword recent changes to window.texi.

* windows.texi (Basic Windows): Fix typo.
(Windows and Frames): Fix example.  Move description of
window-in-direction here.
(Recombining Windows): Fix example.
(Buffers and Windows): Fix description of
replace-buffer-in-windows.
(Switching Buffers): Reword.
(Display Action Functions): Minor adjustments.
(Choosing Window Options): Minor fixes.
(Window History): Minor rewording.
(Dedicated Windows): Correct and reword part describing how
dedicatedness affects functions removing buffers or windows.
* buffers.texi (The Buffer List): Fix description of
bury-buffer.

11 years ago(no commit message)
Kenichi Handa [Fri, 23 Nov 2012 14:36:24 +0000 (23:36 +0900)]

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 23 Nov 2012 11:17:42 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoFix bug #12955 with building under MSYS Bash.
Eli Zaretskii [Fri, 23 Nov 2012 08:47:34 +0000 (10:47 +0200)]
Fix bug #12955 with building under MSYS Bash.

 src/makefile.w32-in (globals.h, gl-stamp): Use $(SWITCHCHAR) instead
 of a literal "/".
 (gl-stamp): Invoke fc.exe directly, not through cmd.

11 years agoAdd some missing find options to find-cmd.el.
Chong Yidong [Fri, 23 Nov 2012 08:33:20 +0000 (16:33 +0800)]
Add some missing find options to find-cmd.el.

* find-cmd.el (find-constituents): Add executable, ipath,
readable, samefile, writable, daystart, regextype.

Fixes: debbugs:12856

11 years ago* modes.texi (%-Constructs): Fix statement about mode construct padding.
Chong Yidong [Fri, 23 Nov 2012 08:32:43 +0000 (16:32 +0800)]
* modes.texi (%-Constructs): Fix statement about mode construct padding.

Fixes: debbugs:12866

11 years agomovemail: treat EACCES etc. failures as permanent
Paul Eggert [Fri, 23 Nov 2012 08:28:06 +0000 (00:28 -0800)]
movemail: treat EACCES etc. failures as permanent

* movemail.c (main): Treat any link failure other than EEXIST as a
permanent failure, not just EPERM.  EACCES, for example.

11 years agoFix cursor display when several display strings follow each other.
Eli Zaretskii [Fri, 23 Nov 2012 08:27:05 +0000 (10:27 +0200)]
Fix cursor display when several display strings follow each other.

 src/xdisp.c (set_cursor_from_row): Skip step 2 only if point is not
 between bpos_covered and bpos_max.  This fixes cursor display when
 several display strings follow each other.

11 years ago* lisp/dired.el (dired-mark): Add optional arg `interactive'.
Juri Linkov [Fri, 23 Nov 2012 07:59:43 +0000 (09:59 +0200)]
* lisp/dired.el (dired-mark): Add optional arg `interactive'.
Check for `use-region-p' if `interactive' is non-nil.
(dired-unmark, dired-flag-file-deletion): Add optional arg
`interactive'.  Call `dired-mark' with the arg `interactive'.

Fixes: debbugs:10624

11 years ago* faces.el (color-defined-p): Doc fix.
Chong Yidong [Fri, 23 Nov 2012 07:56:27 +0000 (15:56 +0800)]
* faces.el (color-defined-p): Doc fix.

Fixes: debbugs:12853

11 years agoFix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.
Eli Zaretskii [Fri, 23 Nov 2012 07:54:33 +0000 (09:54 +0200)]
Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.

 src/.gdbinit (pgx): If the glyph's object is a string, display the
 pointer to string data, rather than the value of the string object
 itself (which barfs under CHECK_LISP_OBJECT_TYPE).

11 years agoAssume POSIX 1003.1-1988 or later for dirent.h.
Paul Eggert [Fri, 23 Nov 2012 07:48:43 +0000 (23:48 -0800)]
Assume POSIX 1003.1-1988 or later for dirent.h.

* admin/CPP-DEFINES (HAVE_CLOSEDIR, HAVE_DIRENT_H): Remove.
* admin/notes/copyright: Adjust to src/ndir.h -> nt/inc/dirent.h renaming.
* configure.ac: Do not check for dirent.h or closdir.
* nt/inc/dirent.h: Rename from ../src/ndir.h, with these changes:
(struct dirent): Rename from struct direct.  All uses changed.
* nt/inc/sys/dir.h: Remove.
* src/dired.c: Assume HAVE_DIRENT_H.
(NAMLEN): Remove, replacing with ...
(dirent_namelen): New function.  All uses changed.  Use the GNU macro
_D_EXACT_NAMELEN if available, as it's faster than strlen.
(DIRENTRY): Remove, replacing all uses with 'struct dirent'.
(DIRENTRY_NONEMPTY): Remove.  All callers now assume it's nonzero.
* src/makefile.w32-in (DIR_H): Remove.  All uses replaced with
$(NT_INC)/dirent.h.
($(BLD)/w32.$(O)): Do not depend on $(SRC)/ndir.h.
* src/ndir.h: Rename to ../nt/inc/dirent.h.
* src/sysdep.h (closedir) [!HAVE_CLOSEDIR]: Remove.
Do not include <dirent.h>; no longer needed.
* src/w32.c: Include <dirent.h> rather than "ndir.h".

Fixes: debbugs:12958

11 years agoAdd Bug# to Nov 17 ChangeLog entries.
Paul Eggert [Fri, 23 Nov 2012 07:31:58 +0000 (23:31 -0800)]
Add Bug# to Nov 17 ChangeLog entries.

11 years ago* lisp/wdired.el: Revert 2012-10-17 change partly and replace it with
Juri Linkov [Fri, 23 Nov 2012 07:28:37 +0000 (09:28 +0200)]
* lisp/wdired.el: Revert 2012-10-17 change partly and replace it with
Patch by Christopher Schmidt <christopher@ch.ristopher.com>.
(wdired-finish-edit): Add marks for new file names to
`wdired-old-marks'.  Restore marks using `dired-mark-remembered'
after `revert-buffer'.
(wdired-do-renames): Remove calls to `dired-remove-file',
`dired-add-file', `dired-add-entry'.

Fixes: debbugs:11795

11 years ago* xftfont.c (xftfont_open): Remove duplicate assignment.
Chong Yidong [Fri, 23 Nov 2012 06:23:28 +0000 (14:23 +0800)]
* xftfont.c (xftfont_open): Remove duplicate assignment.

11 years ago* emacs-lisp/ert.el, emacs-lisp/ert-x.el: Use cl-lib and lexical-binding.
Stefan Monnier [Fri, 23 Nov 2012 03:26:09 +0000 (22:26 -0500)]
* emacs-lisp/ert.el, emacs-lisp/ert-x.el: Use cl-lib and lexical-binding.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 22 Nov 2012 11:17:34 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years ago* alloc.c (Fgarbage_collect): Unblock input after clearing
Dmitry Antipov [Thu, 22 Nov 2012 09:32:32 +0000 (13:32 +0400)]
* alloc.c (Fgarbage_collect): Unblock input after clearing
gc_in_progress to avoid note_mouse_highlight glitch with GC.
* frame.h (FRAME_MOUSE_UPDATE): New macro.
* msdos.c (IT_frame_up_to_date): Use it here...
* w32term.c (w32_frame_up_to_date): ...here...
* xterm.c (XTframe_up_to_date): ...and here...
* nsterm.m (ns_frame_up_to_date): ...but not here.
* lisp.h (Mouse_HLInfo): Remove mouse_face_deferred_gc member.
Adjust users.
* xdisp.c (message2_nolog, message3_nolog, note_mouse_highlight):
Do not check whether GC is in progress.

11 years agoDocument Calc Gregorian in NEWS; fix manual a bit.
Paul Eggert [Thu, 22 Nov 2012 08:39:27 +0000 (00:39 -0800)]
Document Calc Gregorian in NEWS; fix manual a bit.

11 years ago* calc/calc.el (calc-gregorian-switch): In menu, put dates before regions.
Paul Eggert [Thu, 22 Nov 2012 08:09:03 +0000 (00:09 -0800)]
* calc/calc.el (calc-gregorian-switch): In menu, put dates before regions.

This is easier to follow, lines up better in the menu, and lets us
coalesce regions that switch at the same time.  Give country
names, not "Vatican", as that's better for non-expert users.  Use
names that are stable between the date of switch and now, e.g.,
Bohemia and Moravia (which existed then and now) and not
Czechoslovakia (which didn't exist then and doesn't exist now).
What is now the U.S. mostly did not switch at the same time as
Britain, so omit the U.S.  Correct spelling of "Britain".
Catholic Switzerland was too much of a mess, so omit it.

11 years ago* calc/calc.el (calc-gregorian-switch): Move to after calc-refresh
Paul Eggert [Thu, 22 Nov 2012 07:31:45 +0000 (23:31 -0800)]
* calc/calc.el (calc-gregorian-switch): Move to after calc-refresh

definition.  This fixes a bootstrap failure.

11 years ago* xdisp.c (window_buffer_changed): New function.
Dmitry Antipov [Thu, 22 Nov 2012 06:52:30 +0000 (10:52 +0400)]
* xdisp.c (window_buffer_changed): New function.
(update_menu_bar, update_tool_bar): Use it to
simplify large 'if' statements.
(redisplay_internal): Generalize commonly used
'tail' and 'frame' local variables.

11 years agoFix MS-Windows build following 2012-11-21T21:06:52Z!eggert@cs.ucla.edu.
Eli Zaretskii [Thu, 22 Nov 2012 03:56:38 +0000 (05:56 +0200)]
Fix MS-Windows build following 2012-11-21T21:06:52Z!eggert@cs.ucla.edu.

 src/w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
 with Windows system header.

Fixes: debbugs:12945

11 years ago* doc/misc/calc.texi (Date Forms): Mention the customizable
Jay Belanger [Thu, 22 Nov 2012 01:47:04 +0000 (19:47 -0600)]
* doc/misc/calc.texi (Date Forms): Mention the customizable
Gregorian-Julian switch.
(Customizing Calc): Mention the variable `calc-gregorian-switch'.

* calc/calc.el (calc-gregorian-switch): Refresh the Calc buffer
after the variable is changed.

11 years agoTeach sql-mode's imenu about IF NOT EXISTS
Daniel Colascione [Wed, 21 Nov 2012 21:47:10 +0000 (13:47 -0800)]
Teach sql-mode's imenu about IF NOT EXISTS

11 years agoSupport IF NOT EXISTS in SQL declarations
Daniel Colascione [Wed, 21 Nov 2012 21:38:56 +0000 (13:38 -0800)]
Support IF NOT EXISTS in SQL declarations