Glenn Morris [Sat, 22 Sep 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.
Paul Eggert [Sat, 22 Sep 2012 09:46:20 +0000 (02:46 -0700)]
Merge from gnulib.
Stefan Merten [Sat, 22 Sep 2012 09:16:00 +0000 (11:16 +0200)]
* rst.el: Revamp section title faces.
(rst-official-version)
(rst-package-emacs-version-alist): Sync with official version
V1.4.0.
(rst-faces-defaults, rst-set-level-default)
(rst-level-face-max, rst-level-face-base-color)
(rst-level-face-base-light, rst-level-face-format-light)
(rst-level-face-step-light, rst-define-level-faces): Obsolete.
(rst-adornment-faces-alist): Match new setup.
(rst-level-1, rst-level-2, rst-level-3, rst-level-4)
(rst-level-5, rst-level-6): New faces.
Paul Eggert [Sat, 22 Sep 2012 08:22:49 +0000 (01:22 -0700)]
Do not truncate strsignal output.
Paul Eggert [Sat, 22 Sep 2012 07:34:52 +0000 (00:34 -0700)]
* emacs.c (shut_down_emacs): Don't assume stderr is buffered,
or that fprintf is async-signal-safe. POSIX doesn't require
either assumption.
Chong Yidong [Sat, 22 Sep 2012 03:29:37 +0000 (11:29 +0800)]
* frames.texi (Pop-Up Menus): Minor clarification for x-popup-menu.
Fixes: debbugs:11148
Chong Yidong [Sat, 22 Sep 2012 03:07:39 +0000 (11:07 +0800)]
Fix auto-save and locking for indirect buffers.
* lisp/simple.el (undo): Handle indirect buffers.
* buffer.c (Fset_buffer_modified_p): Handle indirect buffers.
Fixes: debbugs:8207
Kenichi Handa [Sat, 22 Sep 2012 02:26:05 +0000 (11:26 +0900)]
merge trunk
Kenichi Handa [Sat, 22 Sep 2012 02:15:29 +0000 (11:15 +0900)]
composite.c (composition_reseat_it): Handle the case that a grapheme cluster is not covered by a single font (Bug#12352).
Paul Eggert [Fri, 21 Sep 2012 19:28:41 +0000 (12:28 -0700)]
* trouble.texi (Crashing): Document addr2line.
Chong Yidong [Fri, 21 Sep 2012 03:52:23 +0000 (11:52 +0800)]
Fix list duplication error in define_image_type.
* image.c (define_image_type): Avoid adding duplicate types to
image_types. Suggested by Jörg Walter.
Fixes: debbugs:12463
Glenn Morris [Fri, 21 Sep 2012 03:22:27 +0000 (20:22 -0700)]
ChangeLog date fix
Chong Yidong [Fri, 21 Sep 2012 03:03:48 +0000 (11:03 +0800)]
Merge from emacs-24; up to 2012-05-07T14:57:18Z!michael.albinus@gmx.de
Juri Linkov [Thu, 20 Sep 2012 21:57:13 +0000 (00:57 +0300)]
* lisp/replace.el (query-replace-read-from): Use `read-regexp' instead
of `read-from-minibuffer' when `regexp-flag' is non-nil.
(occur-read-primary-args): Use `read-regexp' instead of
`read-string'.
(multi-occur-in-matching-buffers): Use `read-regexp' instead of
`read-from-minibuffer'.
* lisp/isearch.el (isearch-occur): Use `read-regexp' instead of
`read-string'.
* lisp/dired.el (dired-read-regexp): Use `read-regexp' instead of
`read-from-minibuffer'.
* lisp/progmodes/grep.el (grep-read-regexp): Use `read-regexp' instead
of `read-string'.
Fixes: debbugs:7567
Juri Linkov [Thu, 20 Sep 2012 21:35:40 +0000 (00:35 +0300)]
* lisp/replace.el (read-regexp): Rename DEFAULT-VALUE arg to DEFAULTS
and allow accepting a list of strings prepended to a list of
standard default values. Doc fix.
Fixes: debbugs:12321
Juri Linkov [Thu, 20 Sep 2012 21:28:47 +0000 (00:28 +0300)]
* lisp/replace.el (read-regexp): Add HISTORY arg.
Fixes: debbugs:7567
Juri Linkov [Thu, 20 Sep 2012 21:21:46 +0000 (00:21 +0300)]
* lisp/replace.el (read-regexp): Don't add ": " when PROMPT already
ends with a colon and space.
Fixes: debbugs:12321
Tassilo Horn [Thu, 20 Sep 2012 19:53:40 +0000 (21:53 +0200)]
* doc-view.el (doc-view-display): Better fix for the cl-assertion
error.
Stefan Merten [Thu, 20 Sep 2012 18:59:00 +0000 (20:59 +0200)]
* rst.el: Integrate support for `imenu' and `which-function'.
Fixes feature request bug#11711.
(rst-mode): Create `imenu-create-index-function'.
(rst-get-stripped-line): Delete after refactoring.
(rst-section-tree, rst-section-tree-rec)
(rst-section-tree-point): Refactor and document properly.
(rst-imenu-find-adornments-for-position)
(rst-imenu-convert-cell, rst-imenu-create-index): New
function.
Stefan Monnier [Thu, 20 Sep 2012 13:46:36 +0000 (09:46 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning): New function.
(macroexp--expand-all): Use it.
(macroexp--funcall-and-return): Remove by folding it into its sole
caller (macroexp--warn-and-return).
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete):
Use macroexp--obsolete-warning.
Stefan Monnier [Thu, 20 Sep 2012 13:44:45 +0000 (09:44 -0400)]
* lisp/calc/calc.el: Fix last change by removing the whole chunk, since it
was only needed back when Calc was not bundled.
Martin Rudalics [Thu, 20 Sep 2012 13:35:13 +0000 (15:35 +0200)]
In debug restore assignment to debugger-old-buffer.
* emacs-lisp/debug.el (debug): Restore assignment to
debugger-old-buffer removed on 2012-09-08.
Glenn Morris [Thu, 20 Sep 2012 10:19:05 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.
Juri Linkov [Thu, 20 Sep 2012 09:03:51 +0000 (12:03 +0300)]
* lisp/dired-aux.el (dired-diff): Remove (require 'diff) since
`diff-latest-backup-file' is now autoloaded.
YAMAMOTO Mitsuharu [Thu, 20 Sep 2012 08:35:35 +0000 (17:35 +0900)]
Fix space in last commit.
YAMAMOTO Mitsuharu [Thu, 20 Sep 2012 08:28:48 +0000 (17:28 +0900)]
Add new load command for Xcode 4.5.
Chong Yidong [Thu, 20 Sep 2012 04:29:04 +0000 (12:29 +0800)]
* vc/diff.el (diff-latest-backup-file): Autoload.
Stefan Monnier [Thu, 20 Sep 2012 03:44:57 +0000 (23:44 -0400)]
* lisp/calc/calc.el: Remove redundant autoload shape check.
(sel-mode): Don't defvar.
(calc-get-stack-element): Add `sel-mode' arg instead.
(calc-top, calc-top-list): Pass it this additional argument.
* lisp/calc/calc-store.el (calc-store-map):
* lisp/calc/calc-map.el (calc-apply, calc-reduce, calc-map)
(calc-map-equation, calc-outer-product, calc-inner-product):
* lisp/calc/calc-aent.el (calc-alg-entry): Don't bind sel-mode.
Stefan Monnier [Thu, 20 Sep 2012 03:29:41 +0000 (23:29 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix last change.
Stefan Monnier [Thu, 20 Sep 2012 03:10:52 +0000 (23:10 -0400)]
* src/alloc.c (mark_object) <PVEC_WINDOW>: Mark prev/next_buffers *after*
calling mark_vectorlike since that's the one that marks the window.
(mark_discard_killed_buffers): Mark the final cdr.
* src/window.h (struct window): Move prev/next_buffers to the
non-standard fields.
* src/window.c (make_window): Initialize prev/next_buffers manually.
Paul Eggert [Thu, 20 Sep 2012 01:37:07 +0000 (18:37 -0700)]
Omit unused arg EXPECTED from socket hooks.
* keyboard.c (gobble_input, read_avail_input, tty_read_avail_input):
* nsterm.m (ns_term_init):
* termhooks.h (struct terminal.read_socket_hook):
* w32inevt.c (w32_console_read_socket):
* w32term.c (w32_read_socket):
* xterm.c (XTread_socket):
Omit unused arg EXPECTED. All callers changed.
(store_user_signal_events): Return void, not int, since callers no
longer care about the return value. All uses changed.
Juanma Barranquero [Thu, 20 Sep 2012 01:02:21 +0000 (03:02 +0200)]
src/w32gui.h (XParseGeometry): Do not declare.
Paul Eggert [Wed, 19 Sep 2012 21:38:00 +0000 (14:38 -0700)]
* w32inevt.c (w32_console_read_socket): Return -1 on failure, not 0.
Ignore 'expected'. See Eli Zaretskii in
<http://bugs.gnu.org/12471#8> (last line).
Juri Linkov [Wed, 19 Sep 2012 20:09:55 +0000 (23:09 +0300)]
* lisp/dired-aux.el (dired-diff): Add (require 'diff) because
`diff-latest-backup-file' is not autoloaded.
(dired-do-chxxx, dired-do-chmod): Set `no-error-if-not-filep' arg
of `dired-get-filename' to t to not report error when there is
no default file on the current line.
Stefan Monnier [Wed, 19 Sep 2012 19:59:52 +0000 (15:59 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from
macroexp--eval-if-compile.
(macroexp--funcall-and-return, macroexp--warn-and-return): New funs.
(macroexp--expand-all): Use them.
Fixes: debbugs:12371
Stefan Monnier [Wed, 19 Sep 2012 17:54:59 +0000 (13:54 -0400)]
* lisp/doc-view.el (doc-view-guess-paper-size)
(doc-view-scale-bounding-box): Fix unbound `caddr'.
Tassilo Horn [Wed, 19 Sep 2012 17:35:18 +0000 (19:35 +0200)]
New feature: set optimal slice from BoundingBox information.
* doc-view.el (doc-view-mode-map): Add keybinding.
(doc-view-menu): Add menu entry.
(doc-view-set-slice): Adapt docstring.
(doc-view-get-bounding-box, doc-view-guess-paper-size)
(doc-view-scale-bounding-box)
(doc-view-set-slice-from-bounding-box): New functions.
(doc-view-paper-sizes): New defvar.
* doc/emacs/misc.texi (DocView Slicing): Document new slice from
BoundingBox feature.
Paul Eggert [Wed, 19 Sep 2012 17:28:13 +0000 (10:28 -0700)]
* frame.c (read_integer): Remove. All uses replaced by strtol/strtoul.
(XParseGeometry): Now static. Substitute extremal values for
values that are out of range.
Glenn Morris [Wed, 19 Sep 2012 16:09:43 +0000 (09:09 -0700)]
Partial fix for bug#12371
* emacs-lisp/macroexp.el (byte-compile-warn-obsolete)
(byte-compile-log-warning): Autoload.
Glenn Morris [Wed, 19 Sep 2012 10:17:35 +0000 (06:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Wed, 19 Sep 2012 07:27:29 +0000 (00:27 -0700)]
Allow customization of calendar month header text
* lisp/calendar/calendar.el (calendar-american-month-header)
(calendar-european-month-header, calendar-iso-month-header)
(calendar-month-header): New options.
(calendar-set-date-style): Set calendar-month-header. Redraw calendar.
(calendar-generate-month): Use calendar-month-header.
Fixes: debbugs:9510
Chong Yidong [Wed, 19 Sep 2012 06:51:33 +0000 (14:51 +0800)]
* killing.texi (Yanking): Minor clarification.
Fixes: debbugs:12469
Jan Djärv [Wed, 19 Sep 2012 06:47:01 +0000 (08:47 +0200)]
* lisp/startup.el (command-line-ns-option-alist): Add -g and --geometry.
* src/frame.c (read_integer, XParseGeometry): Moved from w32xfns.c.
(Fx_parse_geometry): If there is a space in string, call
Qns_parse_geometry, otherwise do as on other terms.
* src/w32xfns.c (read_integer, XParseGeometry): Move to frame.c.
* src/nsfns.m (XParseGeometry): Remove.
(Fx_create_frame): Call x_set_offset to correctly interpret
top_pos in geometry.
Fixes: debbugs:12368
Juri Linkov [Tue, 18 Sep 2012 23:40:39 +0000 (02:40 +0300)]
* lisp/dired-aux.el (dired-diff): Restore original functionality of
getting the default value, but keep new feature of using the
latest existing backup file (`diff-latest-backup-file').
Juri Linkov [Tue, 18 Sep 2012 23:18:06 +0000 (02:18 +0300)]
* lisp/dired.el (dired-mark): If the region is active in Transient Mark
mode, mark all files in the active region. Doc fix.
(dired-unmark, dired-flag-file-deletion, dired-unmark-backward):
Doc fix.
Fixes: debbugs:10624
Juri Linkov [Tue, 18 Sep 2012 22:57:45 +0000 (01:57 +0300)]
* lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod): Default file
attributes for M-n are pulled from the file at point.
(dired-do-chgrp, dired-do-chown, dired-do-touch): Doc fix.
Suggested by Drew Adams.
Fixes: debbugs:10624
Dmitry Gutov [Tue, 18 Sep 2012 22:10:19 +0000 (02:10 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Don't add extra
whitespace after "end".
(ruby-do-end-to-brace): Collapse block to one line if it fits
within fill-column.
Jan Djärv [Tue, 18 Sep 2012 18:13:01 +0000 (20:13 +0200)]
* configure.ac (HAVE_GTK): Mention if we use GTK2 or GTK3.
Eli Zaretskii [Tue, 18 Sep 2012 10:49:33 +0000 (13:49 +0300)]
Fix bug #12464 with test for giflib 5.0.0 on MS-Windows.
nt/configure.bat: Include stddef.h before gif_lib.h, to have size_t
defined, as needed by giflib-5.0.0.
Glenn Morris [Tue, 18 Sep 2012 10:17:43 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Tue, 18 Sep 2012 07:19:25 +0000 (00:19 -0700)]
rmailedit comment
Martin Rudalics [Tue, 18 Sep 2012 07:07:13 +0000 (09:07 +0200)]
Fix some recent changes in debug.el.
* emacs-lisp/debug.el (debugger-bury-or-kill): Fix customization
value.
(debug): Don't remove debugger window when debugger is expected
to be back.
Chong Yidong [Tue, 18 Sep 2012 05:14:42 +0000 (13:14 +0800)]
Doc fixes for
defface and friends.
* lisp/cus-edit.el (custom-unlispify-remove-prefixes): Add warning.
* lisp/custom.el (
defface): Doc fix.
* doc/lispref/customize.texi (Customization): Define customization more
carefully.
(Common Keywords): Add xref to Constant Variables.
* doc/lispref/display.texi (Faces): Discuss anonymous faces.
(Face Attributes): Tweak intro.
(Defining Faces): Move after the Face Attributes node. Copyedits.
(Displaying Faces): Describe role of inheritance.
* doc/lispref/variables.texi (Defining Variables): Link to defcustom's node
instead of the higher-level Customization chapter.
Fixes: debbugs:11440
Martin Blais [Tue, 18 Sep 2012 04:18:36 +0000 (00:18 -0400)]
* lisp/progmodes/compile.el (compilation-start): Use compilation-always-kill
to initialize query-on-exit; then test that instead.
Fixes: debbugs:12288
Glenn Morris [Tue, 18 Sep 2012 01:07:13 +0000 (21:07 -0400)]
run-hooks-with-args-* do fixes (bug#12393)
* src/eval.c (Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Doc fixes.
Andreas Schwab [Mon, 17 Sep 2012 22:43:12 +0000 (00:43 +0200)]
* Makefile.in (bootstrap): Revert last change. Run config.status
after config.status --recheck, run configure from $(srcdir).
(config.status): Run configure from $(srcdir).
Paul Eggert [Mon, 17 Sep 2012 22:35:28 +0000 (15:35 -0700)]
* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
to create 'configure'; problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>.
* autogen.sh: Exit with status 1 when failing due to missing tools,
reverting the 2012-09-10 change to this file.
* autogen/copy_autogen: Fail if one of the subsidiary actions fail.
Use 'cp -f' for the build-aux files, since the destinations are
typically read-only.
Paul Eggert [Mon, 17 Sep 2012 21:33:14 +0000 (14:33 -0700)]
* Makefile.in: Fix build error on FreeBSD.
($(MAKEFILE_NAME)): Pass MAKE='$(MAKE)' to config.status's env.
Suggested by Wolfgang Jenker in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00430.html>.
(MAKE_CONFIG_STATUS): Remove. Remaining use expanded.
This undoes part of the 2012-09-10 patch.
(bootstrap): Run ./configure, rather than trying to run config.status
if it exists. That builds src/epaths.h more reliably.
Eli Zaretskii [Mon, 17 Sep 2012 20:11:34 +0000 (23:11 +0300)]
Fix bug #12196 with infloop when cache-long-line-scans is non-nil.
src/search.c (scan_buffer): Use character positions in calls to
region_cache_forward and region_cache_backward, not byte
positions.
Glenn Morris [Mon, 17 Sep 2012 19:53:27 +0000 (15:53 -0400)]
Fix typo in previous
Stefan Merten [Mon, 17 Sep 2012 17:38:09 +0000 (19:38 +0200)]
2012-09-17 Stefan Merten <smerten@oekonux.de>
* rst.el: Add support for `testcover'.
(rst-defcustom-testcover, rst-testcover-add-compose)
(rst-testcover-add-1value): New functions.
(rst-portable-mark-active-p): Replace by `use-region-p'.
(rst-update-section, rst-classify-adornment)
(rst-find-title-line): Mark `1value' forms.
(rst-classify-adornment): Remove superfluous form.
(rst-update-section, rst-get-adornments-around)
(rst-adornment-complete-p, rst-get-next-adornment)
(rst-adjust, rst-promote-region)
(rst-display-adornments-hierarchy, rst-straighten-adornments)
(rst-find-pfx-in-region, rst-section-tree-rec)
(rst-section-tree-point, rst-toc-insert, rst-toc-insert-node)
(rst-toc-node, rst-toc, rst-forward-section)
(rst-iterate-leftmost-paragraphs)
(rst-iterate-leftmost-paragraphs-2, rst-enumerate-region)
(rst-bullet-list-region)
(rst-convert-bullets-to-enumeration, rst-font-lock-keywords)
(rst-compile-find-conf, rst-compile)
(rst-repeat-last-character): Fix style.
Glenn Morris [Mon, 17 Sep 2012 17:15:27 +0000 (13:15 -0400)]
Add ChangeLog bug refs
Chong Yidong [Mon, 17 Sep 2012 14:45:51 +0000 (22:45 +0800)]
Make pcomplete less eager to add an extra space.
* comint.el (comint--complete-file-name-data): Don't add a space
if the status is `sole'; that adds a gratuitous space in the
completion-cycling case.
* pcomplete.el (pcomplete-completions-at-point): Likewise.
Fixes: debbugs:12092
Juanma Barranquero [Mon, 17 Sep 2012 13:22:45 +0000 (15:22 +0200)]
nt/config.nt: Sync with autogen/config.in.
(BROKEN_SA_RESTART, SYNC_INPUT): Remove.
Richard M. Stallman [Mon, 17 Sep 2012 11:49:10 +0000 (07:49 -0400)]
When toggling mime processing off, just don't do mime processing.
Richard M. Stallman [Mon, 17 Sep 2012 11:44:48 +0000 (07:44 -0400)]
rmail-retry-failure must avoid mime processing.
Richard M. Stallman [Mon, 17 Sep 2012 11:41:39 +0000 (07:41 -0400)]
message-in-body-p should not alter anything.
Richard M. Stallman [Mon, 17 Sep 2012 11:39:41 +0000 (07:39 -0400)]
Handle Mail mode correctly. Some code cleanup.
Glenn Morris [Mon, 17 Sep 2012 10:17:50 +0000 (06:17 -0400)]
Auto-commit of generated files.
Richard M. Stallman [Mon, 17 Sep 2012 09:49:55 +0000 (05:49 -0400)]
Fix bug when a name has no key.
Eli Zaretskii [Mon, 17 Sep 2012 08:22:32 +0000 (11:22 +0300)]
Fix a typo in a comment.
Eli Zaretskii [Mon, 17 Sep 2012 07:56:20 +0000 (10:56 +0300)]
Set pending_signals to 1 in w32term.c's read-socket hook.
src/w32term.c (w32_read_socket): Set pending_signals to 1, like
xterm.c does. Reported by Daniel Colascione <dancol@dancol.org>.
Eli Zaretskii [Mon, 17 Sep 2012 07:54:32 +0000 (10:54 +0300)]
Fix the value of __malloc_extra_blocks.
src/ralloc.c (r_alloc_init) [!SYSTEM_MALLOC]: Initialize
__malloc_extra_blocks to 32 instead of 64, like alloc.c did in
emacs_blocked_malloc, now deleted.
Glenn Morris [Mon, 17 Sep 2012 07:35:17 +0000 (00:35 -0700)]
* admin/admin.el (add-log-time-format): Declare.
Glenn Morris [Mon, 17 Sep 2012 07:22:17 +0000 (00:22 -0700)]
Reduce version number duplication in etc/refcards
* etc/refcards/emacsver.tex: New file.
* etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
* refcards/emacsver.tex, etc/refcards/fr-dired-ref.tex:
* etc/refcards/fr-refcard.tex, etc/refcards/fr-survival.tex:
* etc/refcards/orgcard.tex, etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex, etc/refcards/refcard.tex:
* etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
* etc/refcards/sk-survival.tex, etc/refcards/survival.tex:
* etc/refcards/vipcard.tex, etc/refcards/viperCard.tex: Include emacsver.tex.
* refcards/calccard.tex (\emacsversionnumber):
Rename to \versionemacs, same as all the other refcards.
* etc/refcards/Makefile (ENVADD): New variable.
(sk-dired-ref.pdf, sk-survival.pdf, pl-refcard.pdf)
(%.pdf, %,dvi, sk-dired-ref.dvi, sk-survival.dvi, pl-refcard.dvi):
Depend on emacsver.tex. Add "." to TEXINPUTS for TeX commands.
* admin/admin.el (set-version): Set major version in
etc/refcards/ru-refcard.tex and etc/refcards/emacsver.tex.
(set-copyright): In etc/refcards, only change ru-refcard.tex
and emacsver.tex.
* admin.el (cusver-scan, cusver-check): Bind local variables.
* .bzrignore: Add etc/refcards TeX intermediate files.
Chong Yidong [Mon, 17 Sep 2012 05:41:04 +0000 (13:41 +0800)]
Update docstrings and comments to use "init file" terminology.
* bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
* comint.el (comint-prompt-read-only):
* custom.el (defcustom):
* hi-lock.el (hi-lock-mode):
* ibuffer.el (ibuffer-formats):
* ielm.el (ielm-prompt-read-only):
* novice.el (disable-command):
* saveplace.el (toggle-save-place):
* speedbar.el (speedbar-supported-extension-expressions):
* startup.el (auto-save-list-file-prefix, init-file-user)
(after-init-hook, inhibit-startup-echo-area-message):
* strokes.el (strokes-help):
* time-stamp.el (time-stamp):
* calendar/calendar.el (calendar, diary-file):
* calendar/diary-lib.el (diary-mail-entries, diary)
(diary-list-entries-hook):
* calendar/holidays.el (holidays, calendar-holidays):
* calendar/lunar.el (lunar-phases):
* calendar/solar.el (sunrise-sunset):
* emulation/edt.el (edt-load-keys):
* emulation/viper.el (viper-mode):
* eshell/em-alias.el (eshell-command-aliases-list):
* eshell/esh-util.el (eshell-convert-numeric-arguments):
* international/ogonek.el (ogonek-information):
* net/tramp-cmds.el (tramp-bug):
* net/quickurl.el (quickurl-reread-hook-postfix):
* play/decipher.el (decipher-font-lock-keywords):
* progmodes/cc-styles.el (c-set-style):
* progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/octave-mod.el (octave-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
* progmodes/verilog-mode.el (verilog-read-defines):
* textmodes/two-column.el (2C-mode): Likewise.
Chong Yidong [Mon, 17 Sep 2012 05:01:10 +0000 (13:01 +0800)]
Convert several shell.el defvars to defcustoms.
* shell.el (shell-file-name-chars, shell-file-name-quote-list)
(shell-dynamic-complete-functions): Convert to defcustom.
(shell-prompt-pattern, shell-completion-fignore): Doc fix.
Chong Yidong [Mon, 17 Sep 2012 03:24:32 +0000 (11:24 +0800)]
Doc fix for removed var gdb-use-separate-io-buffer.
* building.texi (GDB User Interface Layout): Remove reference to
removed variable gdb-use-separate-io-buffer.
Fixes: debbugs:12454
Paul Eggert [Mon, 17 Sep 2012 01:02:11 +0000 (18:02 -0700)]
Remove no-longer-needed Solaris 2.4 vfork bug workaround.
The workaround was for improving performance on Solaris 2.4, but
is getting in the way now. Emacs will still work if someone is
still running Solaris 2.4 in a museum somewhere; Sun dropped
support for Solaris 2.4 in 2003.
* configure.ac (ac_cv_func_vfork_works): Default to 'no' on
Solaris 2.4, so that AC_FUNC_VFORK doesn't think vfork works.
* src/callproc.c (Fcall_process) [HAVE_WORKING_VFORK]:
* src/process.c (create_process) [HAVE_WORKING_VFORK]:
Omit now-unnecessary workaround for the Solaris 2.4 vfork bug,
since Emacs no longer uses vfork on that platform.
Glenn Morris [Mon, 17 Sep 2012 00:56:08 +0000 (17:56 -0700)]
Reduce the number of versioned files storing the short copyright string
* configure.ac (copyright): New output variable.
(COPYRIGHT): New AC_DEFINE.
* admin/admin.el (set-copyright): No more need to set copyrights for
nextstep, or .c files. Add configure.ac and config.nt.
* lib-src/ebrowse.c (version):
* lib-src/etags.c (print_version): Use COPYRIGHT.
* nextstep/templates/Info-gnustep.plist.in:
* nextstep/templates/InfoPlist.strings.in:
* nextstep/templates/Info.plist.in: Let configure set copyright.
* nt/config.nt (COPYRIGHT): New.
* src/emacs.c: Use COPYRIGHT.
Glenn Morris [Mon, 17 Sep 2012 00:48:04 +0000 (17:48 -0700)]
Fix ChangeLog, add missing :version.
Katsumi Yamaoka [Sun, 16 Sep 2012 23:16:15 +0000 (23:16 +0000)]
mail/mailabbrev.el (mail-abbrev-expand-hook): Work for a mail aliasee that holds many addresses.
Leo Liu [Sun, 16 Sep 2012 22:23:49 +0000 (06:23 +0800)]
IDO: Disable match re-ordering for buffer switching
Fixes: debbugs:2042
Paul Eggert [Sun, 16 Sep 2012 21:43:55 +0000 (14:43 -0700)]
Remove configure's --without-sync-input option.
When auditing signal-handling in preparation for cleaning it up,
I found that SYNC_INPUT has race conditions and would be a real
pain to fix. Since it's an undocumented and deprecated
configure-time option, now seems like a good time to remove it.
Also see <http://bugs.gnu.org/11080#16>.
* configure.ac (SYNC_INPUT, BROKEN_SA_RESTART): Remove.
* admin/CPP-DEFINES (BROKEN_SA_RESTART, SA_RESTART): Remove.
* etc/TODO (Make SYNC_INPUT the default): Remove, as the code now
behaves as if SYNC_INPUT is always true.
* src/alloc.c (_bytes_used, __malloc_extra_blocks, _malloc_internal)
(_free_internal) [!DOUG_LEA_MALLOC]: Remove decls.
(alloc_mutex) [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]:
(malloc_hysteresis):
(check_depth) [XMALLOC_OVERRUN_CHECK]:
(MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT):
(__malloc_hook, __realloc_hook, __free_hook, BYTES_USED)
(dont_register_blocks, bytes_used_when_reconsidered)
(bytes_used_when_full, emacs_blocked_free, emacs_blocked_malloc)
(emacs_blocked_realloc, reset_malloc_hooks, uninterrupt_malloc):
[!SYSTEM_MALLOC && !SYNC_INPUT]:
Remove. All uses removed.
(MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): Use a different
implementation, one that depends on whether the new macro
XMALLOC_BLOCK_INPUT_CHECK is defined, not on whether SYNC_INPUT
is defined.
* src/atimer.c (run_timers, handle_alarm_signal):
* src/keyboard.c (pending_signal, poll_for_input_1, poll_for_input)
(handle_async_input, process_pending_signals)
(handle_input_available_signal, init_keyboard):
* src/nsterm.m (ns_read_socket):
* src/process.c (wait_reading_process_output):
* src/regex.c (immediate_quit, IMMEDIATE_QUIT_CHECK):
* src/sysdep.c (emacs_sigaction_init) [SA_RESTART]:
(emacs_write):
* src/xterm.c (XTread_socket):
Assume SYNC_INPUT.
* src/conf_post.h (SA_RESTART) [IRIX6_5]: Do not #undef.
* src/eval.c (handling_signal): Remove. All uses removed.
* src/lisp.h (ELSE_PENDING_SIGNALS): Remove.
All uses replaced with the SYNC_INPUT version.
(reset_malloc_hooks, uninterrupt_malloc, handling_signal):
Remove decls.
* src/sysdep.c, src/syssignal.h (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Now static.
Fixes: debbugs:12450
Paul Eggert [Sun, 16 Sep 2012 21:18:00 +0000 (14:18 -0700)]
* font.c (Ffont_shape_gstring): Remove unused local.
Glenn Morris [Sun, 16 Sep 2012 19:17:20 +0000 (12:17 -0700)]
* src/Makefile.in (clean): No longer run nextstep's clean.
Glenn Morris [Sun, 16 Sep 2012 18:56:10 +0000 (11:56 -0700)]
(distclean): Remove unnecessary directory deletion.
Glenn Morris [Sun, 16 Sep 2012 18:51:39 +0000 (11:51 -0700)]
Add missing nextstep file from previous change.
Glenn Morris [Sun, 16 Sep 2012 18:49:00 +0000 (11:49 -0700)]
Increase compartmentalization of Nextstep builds rules,
and store Emacs version number in fewer versioned files.
* configure.ac (ns_appsrc): Use relative names.
(ns_frag): Remove.
(Info-gnustep.plist, Emacs.desktop, Info.plist, InfoPlist.strings)
(nextstep/Makefile): Generate these nextstep files.
(SUBDIR_MAKEFILES): Add nextstep.
* Makefile.in (clean, distclean, bootstrap-clean): Add nextstep.
* make-dist (nextstep/templates): Add directory.
(nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj): Remove.
(nextstep/Cocoa/Emacs.base/Contents)
(nextstep/GNUstep/Emacs.base/Resources): Update contents.
* .bzrignore: Add some nextstep files.
* admin/admin.el (set-version): No more need to set nextstep versions.
(set-copyright): Update for moved nextstep files.
* nextstep/Makefile.in: New file.
* nextstep/templates: New directory.
* nextstep/templates/Emacs.desktop.in, nextstep/templates/Info-gnustep.plist.in:
* nextstep/templates/Info.plist.in, nextstep/templates/InfoPlist.strings.in:
Move here from various Cocoa/, GNUstep/ locations.
Let configure set the version number.
* nextstep/Cocoa/Emacs.base/Contents/Info.plist:
* nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
* nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:
* nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop: Move to templates/.
* nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj: Remove directory.
* src/Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Remove variables.
(ns_frag): Remove.
(ns-app): Move here from ns.mk, and simplify.
(clean): Simplify nextstep entry.
* src/ns.mk: Remove file.
Chong Yidong [Sun, 16 Sep 2012 16:27:20 +0000 (00:27 +0800)]
Fix marker usage in align-areas.
* align.el (align-areas): Call the indication function with
positions instead of markers for arguments.
Fixes: debbugs:12343
Kenichi Handa [Sun, 16 Sep 2012 16:18:23 +0000 (01:18 +0900)]
merge trunk
Kenichi Handa [Sun, 16 Sep 2012 16:17:31 +0000 (01:17 +0900)]
font.c (Ffont_shape_gstring): Fix previous change; GLYPHs may not covert the last few charactes.
Chong Yidong [Sun, 16 Sep 2012 15:57:28 +0000 (23:57 +0800)]
* files.el (parse-colon-path): Use split-string.
Fixes: debbugs:12351
Kenichi Handa [Sun, 16 Sep 2012 11:47:45 +0000 (20:47 +0900)]
merge trunk
Martin Rudalics [Sun, 16 Sep 2012 10:25:24 +0000 (12:25 +0200)]
Window parameter functions again accept any window as argument (Bug#12452).
* window.c (Fwindow_parameter, Fset_window_parameter): Accept
any window as argument (Bug#12452).
Jan Djärv [Sun, 16 Sep 2012 09:11:50 +0000 (11:11 +0200)]
Try to fix crashes introduced by 2012-09-10T21:01:45Z!jan.h.d@swipnet.se.
* nsfns.m (Fx_open_connection): Move initialization of ns_*_types
to ns_term_init to avoid memory leak.
* nsterm.m (ns_update_begin): Initialize bp after lcokFocus, use
explicit retain/release.
(ns_term_init): Only allow one display. Initialize outerpool and
ns_*_types.
Chong Yidong [Sun, 16 Sep 2012 04:52:38 +0000 (12:52 +0800)]
Mark display-buffer-function as obsolete.
* lisp/window.el (display-buffer-function): Mark as obsolete.
Fixes: debbugs:12166
Chong Yidong [Sun, 16 Sep 2012 04:43:46 +0000 (12:43 +0800)]
* window.el (special-display-popup-frame): Doc fix.
Fixes: debbugs:8853
Chong Yidong [Sun, 16 Sep 2012 04:31:02 +0000 (12:31 +0800)]
Alter last change to be compatible with Emacs 23.
* lisp/progmodes/compile.el (compilation-parse-errors): Accept list
values similar to font-lock-keywords. Suggested by
Oleksandr Manzyuk.
(compilation-error-regexp-alist): Doc fix.
Fixes: debbugs:12136
Chong Yidong [Sun, 16 Sep 2012 04:16:51 +0000 (12:16 +0800)]
In compilation-error-regexp-alist, allow more HIGHLIGHT types.
* progmodes/compile.el (compilation-parse-errors): Apply any value
that is a valid font-lock-face property.
(compilation-error-regexp-alist): Doc fix.
Fixes: debbugs:12136