bpt/emacs.git
11 years ago* lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod): Default file
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

11 years ago* lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Don't add extra
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.

11 years ago* configure.ac (HAVE_GTK): Mention if we use GTK2 or GTK3.
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.

11 years agoFix bug #12464 with test for giflib 5.0.0 on MS-Windows.
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.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 18 Sep 2012 10:17:43 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

11 years agormailedit comment
Glenn Morris [Tue, 18 Sep 2012 07:19:25 +0000 (00:19 -0700)]
rmailedit comment

11 years agoFix some recent changes in debug.el.
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.

11 years agoDoc fixes for defface and friends.
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

11 years ago* lisp/progmodes/compile.el (compilation-start): Use compilation-always-kill
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

11 years ago* Makefile.in (bootstrap): Revert last change. Run config.status
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).

11 years ago* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
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.

11 years ago* Makefile.in: Fix build error on FreeBSD.
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.

11 years agoFix bug #12196 with infloop when cache-long-line-scans is non-nil.
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.

11 years agoFix typo in previous
Glenn Morris [Mon, 17 Sep 2012 19:53:27 +0000 (15:53 -0400)]
Fix typo in previous

11 years ago2012-09-17 Stefan Merten <smerten@oekonux.de>
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.

11 years agoAdd ChangeLog bug refs
Glenn Morris [Mon, 17 Sep 2012 17:15:27 +0000 (13:15 -0400)]
Add ChangeLog bug refs

11 years agoMake pcomplete less eager to add an extra space.
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

11 years agont/config.nt: Sync with autogen/config.in.
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.

11 years agoWhen toggling mime processing off, just don't do mime processing.
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.

11 years agormail-retry-failure must avoid mime processing.
Richard M. Stallman [Mon, 17 Sep 2012 11:44:48 +0000 (07:44 -0400)]
rmail-retry-failure must avoid mime processing.

11 years agomessage-in-body-p should not alter anything.
Richard M. Stallman [Mon, 17 Sep 2012 11:41:39 +0000 (07:41 -0400)]
message-in-body-p should not alter anything.

11 years agoHandle Mail mode correctly. Some code cleanup.
Richard M. Stallman [Mon, 17 Sep 2012 11:39:41 +0000 (07:39 -0400)]
Handle Mail mode correctly.  Some code cleanup.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 17 Sep 2012 10:17:50 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoFix bug when a name has no key.
Richard M. Stallman [Mon, 17 Sep 2012 09:49:55 +0000 (05:49 -0400)]
Fix bug when a name has no key.

11 years agoFix a typo in a comment.
Eli Zaretskii [Mon, 17 Sep 2012 08:22:32 +0000 (11:22 +0300)]
Fix a typo in a comment.

11 years agoSet pending_signals to 1 in w32term.c's read-socket hook.
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>.

11 years agoFix the value of __malloc_extra_blocks.
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.

11 years ago* admin/admin.el (add-log-time-format): Declare.
Glenn Morris [Mon, 17 Sep 2012 07:35:17 +0000 (00:35 -0700)]
* admin/admin.el (add-log-time-format): Declare.

11 years agoReduce version number duplication in etc/refcards
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.

11 years agoUpdate docstrings and comments to use "init file" terminology.
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.

11 years agoConvert several shell.el defvars to defcustoms.
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.

11 years agoDoc fix for removed var gdb-use-separate-io-buffer.
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

11 years agoRemove no-longer-needed Solaris 2.4 vfork bug workaround.
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.

11 years agoReduce the number of versioned files storing the short copyright string
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.

11 years agomail/mailabbrev.el (mail-abbrev-expand-hook): Work for a mail aliasee that holds...
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.

11 years agoRemove configure's --without-sync-input option.
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

11 years ago* font.c (Ffont_shape_gstring): Remove unused local.
Paul Eggert [Sun, 16 Sep 2012 21:18:00 +0000 (14:18 -0700)]
* font.c (Ffont_shape_gstring): Remove unused local.

11 years ago* src/Makefile.in (clean): No longer run nextstep's clean.
Glenn Morris [Sun, 16 Sep 2012 19:17:20 +0000 (12:17 -0700)]
* src/Makefile.in (clean): No longer run nextstep's clean.

11 years ago(distclean): Remove unnecessary directory deletion.
Glenn Morris [Sun, 16 Sep 2012 18:56:10 +0000 (11:56 -0700)]
(distclean): Remove unnecessary directory deletion.

11 years agoAdd missing nextstep file from previous change.
Glenn Morris [Sun, 16 Sep 2012 18:51:39 +0000 (11:51 -0700)]
Add missing nextstep file from previous change.

11 years agoIncrease compartmentalization of Nextstep builds rules,
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.

11 years agoFix marker usage in align-areas.
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

11 years agomerge trunk
Kenichi Handa [Sun, 16 Sep 2012 16:18:23 +0000 (01:18 +0900)]
merge trunk

11 years agofont.c (Ffont_shape_gstring): Fix previous change; GLYPHs may not covert the last...
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.

11 years ago* files.el (parse-colon-path): Use split-string.
Chong Yidong [Sun, 16 Sep 2012 15:57:28 +0000 (23:57 +0800)]
* files.el (parse-colon-path): Use split-string.

Fixes: debbugs:12351

11 years agomerge trunk
Kenichi Handa [Sun, 16 Sep 2012 11:47:45 +0000 (20:47 +0900)]
merge trunk

11 years agoWindow parameter functions again accept any window as argument (Bug#12452).
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).

11 years agoTry to fix crashes introduced by 2012-09-10T21:01:45Z!jan.h.d@swipnet.se.
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.

11 years agoMark display-buffer-function as obsolete.
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

11 years ago* window.el (special-display-popup-frame): Doc fix.
Chong Yidong [Sun, 16 Sep 2012 04:43:46 +0000 (12:43 +0800)]
* window.el (special-display-popup-frame): Doc fix.

Fixes: debbugs:8853

11 years agoAlter last change to be compatible with Emacs 23.
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

11 years agoIn compilation-error-regexp-alist, allow more HIGHLIGHT types.
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

11 years agoAdd option to ask bzr itself for the emacs bzr revision
Glenn Morris [Sat, 15 Sep 2012 20:00:45 +0000 (13:00 -0700)]
Add option to ask bzr itself for the emacs bzr revision

* lisp/version.el (emacs-bzr-version-bzr): New function.
(emacs-bzr-get-version): Add optional EXTERNAL argument.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 15 Sep 2012 10:20:56 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 15 Sep 2012 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoPort _setjmp fix to POSIXish hosts as well as Microsoft.
Paul Eggert [Sat, 15 Sep 2012 08:45:27 +0000 (01:45 -0700)]
Port _setjmp fix to POSIXish hosts as well as Microsoft.

* nt/config.nt: Attempt to sync with autogen/config.in.
(HAVE_SIGSETJMP, HAVE__SETJMP): New macros.
(_longjmp, _setjmp): Remove.
* src/image.c (_setjmp) [!HAVE__SETJMP]: Restore definition, as
it's needed on POSIXish hosts that lack _setjmp.  Attempt to solve
the Microsoft problem in a different way, by altering nt/config.nt.

11 years agoFix MS-Windows build broken by 2012-09-15T07:06:56Z!eggert@cs.ucla.edu, completing...
Eli Zaretskii [Sat, 15 Sep 2012 08:03:11 +0000 (11:03 +0300)]
Fix MS-Windows build broken by 2012-09-15T07:06:56Z!eggert@cs.ucla.edu, completing fix for bug #12446.

 src/w32xfns.c:
 src/w32uniscribe.c:
 src/w32term.c:
 src/w32select.c:
 src/w32reg.c:
 src/w32proc.c:
 src/w32menu.c:
 src/w32inevt.c:
 src/w32heap.c:
 src/w32font.c:
 src/w32fns.c:
 src/w32console.c:
 src/w32.c:
 src/w16select.c: Remove inclusion of setjmp.h, as it is now included
 by lisp.h.  This completes removal of setjmp.h inclusion
 erroneously announced in the previous commit.
 src/lisp.h [!HAVE__SETJMP, !HAVE_SIGSETJMP]: Make the commentary
 more accurate.
 src/image.c (_setjmp) [!HAVE__SETJMP]: Define only if 'setjmp' is
 not defined as a macro.  The latter happens on MS-Windows.

11 years agoPort better to POSIX hosts lacking _setjmp.
Paul Eggert [Sat, 15 Sep 2012 07:06:56 +0000 (00:06 -0700)]
Port better to POSIX hosts lacking _setjmp.

* configure.ac (HAVE__SETJMP, HAVE_SIGSETJMP): New symbols.
(_setjmp, _longjmp): Remove.
* src/lisp.h: Include <setjmp.h> here, since we use its symbols here.
All instances of '#include <setjmp.h>' removed, if the
only reason for the instance was because "lisp.h" was included.
(sys_jmp_buf, sys_setjmp, sys_longjmp): New symbols.
Unless otherwise specified, replace all uses of jmp_buf, _setjmp,
and _longjmp with the new symbols.  Emacs already uses _setjmp if
available, so this change affects only POSIXish hosts that have
sigsetjmp but not _setjmp, such as some versions of Solaris and
Unixware.  (Also, POSIX-2008 marks _setjmp as obsolescent.)
* src/image.c (_setjmp, _longjmp) [HAVE_PNG && !HAVE__SETJMP]: New macros.
(png_load_body) [HAVE_PNG]:
(PNG_LONGJMP) [HAVE_PNG && PNG_LIBPNG_VER < 10500]:
(PNG_JMPBUF) [HAVE_PNG && PNG_LIBPNG_VER >= 10500]:
Use _setjmp and _longjmp rather than sys_setjmp and sys_longjmp,
since PNG requires jmp_buf.  This is the only exception to the
general rule that we now use sys_setjmp and sys_longjmp.
This exception is OK since this code does not change the signal
mask or longjmp out of a signal handler.

Fixes: debbugs:12446

11 years agomerge trunk
Kenichi Handa [Sat, 15 Sep 2012 06:14:18 +0000 (15:14 +0900)]
merge trunk

11 years agofont.c (Ffont_shape_gstring): Don't adjust grapheme cluster here, but just check...
Kenichi Handa [Sat, 15 Sep 2012 02:24:26 +0000 (11:24 +0900)]
font.c (Ffont_shape_gstring): Don't adjust grapheme cluster here, but just check the validity of glyphs in the glyph-string.

11 years agoImprove vc-bzr-working-revision for lightweight checkouts
Glenn Morris [Sat, 15 Sep 2012 01:11:52 +0000 (21:11 -0400)]
Improve vc-bzr-working-revision for lightweight checkouts

* lisp/vc/vc-bzr.el (vc-bzr-working-revision): For lightweight local
checkouts, check the parent dirstate matches the branch.
Add "--tree" to "bzr revno" arguments.  Don't try to shorten the
empty string.

11 years agoTweak previous emacs-bzr-get-version change
Glenn Morris [Sat, 15 Sep 2012 00:45:00 +0000 (20:45 -0400)]
Tweak previous emacs-bzr-get-version change

11 years agoImprove emacs-bzr-version for lightweight checkouts (bug#12441)
Glenn Morris [Sat, 15 Sep 2012 00:33:40 +0000 (20:33 -0400)]
Improve emacs-bzr-version for lightweight checkouts (bug#12441)

* lisp/version.el (emacs-bzr-version): Doc fix.
(emacs-bzr-version-dirstate): New function.
(emacs-bzr-get-version): For lightweight checkouts, if the parent
is local try and check that it matches the branch.  If not, just
use dirstate information.

11 years ago* lisp/dired-aux.el (dired-do-chmod): Use `eq' to detect empty input.
Juri Linkov [Fri, 14 Sep 2012 22:58:43 +0000 (01:58 +0300)]
* lisp/dired-aux.el (dired-do-chmod): Use `eq' to detect empty input.

Fixes: debbugs:12399

11 years agoFix glitches with 'configure --without-sync-input'.
Paul Eggert [Fri, 14 Sep 2012 22:01:19 +0000 (15:01 -0700)]
Fix glitches with 'configure --without-sync-input'.

* configure.ac (--without-sync-input): Fix typo in usage message.
* alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]:
Include "syssignal.h", for 'main_thread'.

11 years ago* configure.ac: Port to hosts lacking gtk.
Paul Eggert [Fri, 14 Sep 2012 18:56:19 +0000 (11:56 -0700)]
* configure.ac: Port to hosts lacking gtk.

(PKG_CHECK_MODULES): Capture pkg-config diagnostics
better, in particular, problems in invoking pkg-config itself.
This is useful on hosts that don't have pkg-config.
(GTK_MODULES): Do not exit 'configure' simply because gtk3
and gtk2 are both missing.  Problem found on Solaris 8.

11 years agoAvoid out-of-range marker position (Bug#12426).
Dmitry Antipov [Fri, 14 Sep 2012 14:23:50 +0000 (18:23 +0400)]
Avoid out-of-range marker position (Bug#12426).
* insdel.c (replace_range, replace_range_2): Adjust
markers before overlays, as suggested by comments.
(insert_1_both, insert_from_buffer_1, adjust_after_replace):
Remove redundant check before calling offset_intervals.

11 years ago* lisp/emacs-lisp/advice.el (ad-prognify): Remove, use macroexp-progn.
Stefan Monnier [Fri, 14 Sep 2012 13:44:31 +0000 (09:44 -0400)]
* lisp/emacs-lisp/advice.el (ad-prognify): Remove, use macroexp-progn.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 14 Sep 2012 10:17:31 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoIn Fformat_mode_line always save/restore current buffer. (Bug#12387)
Martin Rudalics [Fri, 14 Sep 2012 06:55:38 +0000 (08:55 +0200)]
In Fformat_mode_line always save/restore current buffer.  (Bug#12387)

* xdisp.c (Fformat_mode_line): Unconditionally save/restore current
buffer.  (Bug#12387)

11 years ago* lisp/emacs-lisp/edebug.el: Miscellaneous cleanup.
Stefan Monnier [Fri, 14 Sep 2012 03:55:16 +0000 (23:55 -0400)]
* lisp/emacs-lisp/edebug.el: Miscellaneous cleanup.
Remove obsolete byte-compiler hack that tried to silence some warnings.
(edebug-submit-bug-report): Remove.
(edebug-get-buffer-window, edebug-sit-for, edebug-input-pending-p):
Remove aliases, use the un-prefixed name instead.
(edebug-pop-to-buffer): Consider other frames.
(edebug-original-read):: Make it more obvious that it's always defined.
(edebug--make-form-data-entry, edebug--form-data-name)
(edebug--form-data-begin, edebug--form-data-end): Rename from the
single-dashed name, and implement with cl-defstruct.
(edebug-set-form-data-entry): Use the standard accessors.
(edebug-make-top-form-data-entry): Use push.
(edebug-no-match): Drop useless `funcall'.
(mapcar, mapconcat, mapatoms, apply, funcall): Don't add debug specs
to functions.
(defsubst, dont-compile, eval-when-compile, eval-and-compile)
(delay-mode-hooks, with-temp-file, with-temp-message, ad-dolist)
(with-syntax-table, push, pop, 1value, noreturn, defadvice)
(easy-menu-define, with-custom-print): Remove redundant specs.
(edebug-outside-overriding-local-map)
(edebug-outside-overriding-terminal-local-map): Remove, unused.
(edebug--display): Bind unread-command-events directly to nil rather
than binding it to unread-command-events and later setting it to nil.
(edebug--display): Kill edebug-eval-buffer here...
(edebug--recursive-edit): ...rather than here.
Bind standard-output and standard-input.
(edebug-eval): Check cl-macroexpand-all is fboundp.
(edebug-temp-display-freq-count): Fix last change.

* lisp/emacs-lisp/easymenu.el (easy-menu-define): Add `debug' spec.
* lisp/subr.el (noreturn, 1value): Add `debug' spec.
* lisp/emacs-lisp/advice.el: Require cl-lib.
(ad-copy-tree): Remove, use copy-tree instead.
(ad-dolist): Remove use dolist or cl-dolist instead.
(ad-do-return): Remove, use cl-return instead.
(defadvice): Add `debug' spec.

11 years agosrc/makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies.
Juanma Barranquero [Fri, 14 Sep 2012 01:22:21 +0000 (03:22 +0200)]
src/makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 14 Sep 2012 01:09:22 +0000 (03:09 +0200)]
nt/config.nt: Sync with autogen/config.in.
(BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY, HAVE_CBRT, HAVE_LOGB, NO_TERMIO): Remove.
(USABLE_FIONREAD, USABLE_SIGIO): New macros.

11 years ago* lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.
Juri Linkov [Thu, 13 Sep 2012 23:42:39 +0000 (02:42 +0300)]
* lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.

Fixes: debbugs:12399

11 years agoUpdate some function declarations
Glenn Morris [Thu, 13 Sep 2012 18:41:21 +0000 (14:41 -0400)]
Update some function declarations

* lisp/calc/calc-ext.el (math-compose-expr):
* lisp/calc/calc.el (math-compose-expr):
* lisp/progmodes/cc-defs.el (cl-macroexpand-all):
* lisp/progmodes/cc-langs.el (delete-duplicates, mapcan)
(cl-macroexpand-all): Update declarations.

11 years ago* lisp/vc/vc.el: No need to require ediff.
Glenn Morris [Thu, 13 Sep 2012 18:23:33 +0000 (14:23 -0400)]
* lisp/vc/vc.el: No need to require ediff.
(ediff-load-version-control): Declare.
(ediff-vc-internal): Fix declaration.
(vc-version-ediff): Require ediff.

11 years agoUse a more backwards-compatible timer format.
Paul Eggert [Thu, 13 Sep 2012 16:23:06 +0000 (09:23 -0700)]
Use a more backwards-compatible timer format.

* etc/NEWS: Document it.
* lisp/emacs-lisp/timer.el (timer): PSECS is now at the end, rather than
being right after USECS, as that better supports old code that
inadvisedly looked directly at the timer vector.
* src/keyboard.c (decode_timer): Get PSECS from the 8th (origin-0)
vector element, not from the 4th, since PSECS is now at the end.
(Fcurrent_idle_time): Doc fix.

Fixes: debbugs:12430

11 years agolanguage/chinese.el ("Chinese-GB", "Chinese-BIG5", "Chinese-CNS", "Chinese-EUC-TW...
Kenichi Handa [Thu, 13 Sep 2012 15:21:58 +0000 (00:21 +0900)]
language/chinese.el ("Chinese-GB", "Chinese-BIG5", "Chinese-CNS", "Chinese-EUC-TW"): Add chinese-gbk to coding-priority property of these language environment.

11 years ago* configure.ac: Report Gtk+ 3 as GTK.
Jan Djärv [Thu, 13 Sep 2012 12:02:00 +0000 (14:02 +0200)]
* configure.ac: Report Gtk+ 3 as GTK.

11 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 13 Sep 2012 11:42:18 +0000 (13:42 +0200)]
Fix typos in ChangeLogs.

11 years agognus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias...
Katsumi Yamaoka [Thu, 13 Sep 2012 11:14:30 +0000 (11:14 +0000)]
gnus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias to timer--function

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 13 Sep 2012 10:17:31 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* texinfo.tex: Merge from gnulib.
Paul Eggert [Thu, 13 Sep 2012 07:28:15 +0000 (00:28 -0700)]
* texinfo.tex: Merge from gnulib.

11 years ago* configure.ac: Reorder Xaw3d messages.
Jan Djärv [Thu, 13 Sep 2012 06:27:21 +0000 (08:27 +0200)]
* configure.ac: Reorder Xaw3d messages.

11 years ago* etc/NEWS (--with-x-toolkit): Mention Gtk+ 3 is now default.
Jan Djärv [Thu, 13 Sep 2012 06:13:26 +0000 (08:13 +0200)]
* etc/NEWS (--with-x-toolkit): Mention Gtk+ 3 is now default.

11 years agoFix glitches caused by addition of psec to timers.
Paul Eggert [Thu, 13 Sep 2012 06:09:45 +0000 (23:09 -0700)]
Fix glitches caused by addition of psec to timers.

* etc/NEWS: Document timer format change.
* lisp/image.el (image-animate-timer):
* lisp/time.el (display-time-world-timer):
Use timer--function and timer--args rather than raw access to
timer vector.
* lisp/gnus/gnus-art.el (gnus-article-stop-animations):
Use timer--function rather than raw access to timer vector.

Fixes: debbugs:12430

11 years agoFunction to mark objects and remove killed buffers at once.
Dmitry Antipov [Thu, 13 Sep 2012 05:18:26 +0000 (09:18 +0400)]
Function to mark objects and remove killed buffers at once.
* alloc.c (discard_killed_buffers): Rename to ...
(mark_discard_killed buffers) ... new name.  Add marking
of remaining objects.  Fix comment.  Adjust users.
(mark_object): Do not touch frame buffer lists here.
* frame.c (delete_frame): Reset frame buffer lists here.

11 years agoBetter workaround for GNOME bug when --enable-gcc-warnings.
Paul Eggert [Thu, 13 Sep 2012 04:14:33 +0000 (21:14 -0700)]
Better workaround for GNOME bug when --enable-gcc-warnings.

* emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change.
Instead, disable -Wunused-local-typedefs.  See Dmitry Antipov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00335.html>.

11 years agobyte-compile-warning-prefix tweak
Glenn Morris [Thu, 13 Sep 2012 02:41:46 +0000 (22:41 -0400)]
byte-compile-warning-prefix tweak

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-prefix): If not
compiling a file, try using load-file-name.

11 years ago* lisp/emacs-lisp/edebug.el (edebug-outside-unread-command-events):
Stefan Monnier [Thu, 13 Sep 2012 02:29:05 +0000 (22:29 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-outside-unread-command-events):
Fix last change.
(edebug-update-eval-list): Use `push'.

11 years agoSimplify SIGIO usage.
Paul Eggert [Thu, 13 Sep 2012 02:21:28 +0000 (19:21 -0700)]
Simplify SIGIO usage.

The code that dealt with SIGIO was crufty and confusing, e.g., it
played tricks like "#undef SIGIO" but these tricks were not used
consistently.  Simplify mostly by not #undeffing standard symbols,
e.g., use "defined USABLE_SIGIO" (our symbol, which we can define
or not as we please) rather than "defined SIGIO" (standard symbol
that we probably shouldn't #undef).
* configure.ac (NO_TERMIO, BROKEN_FIONREAD, BROKEN_SIGAIO)
(BROKEN_SIGPOLL, BROKEN_SIGPTY): Remove.
(USABLE_FIONREAD, USABLE_SIGIO): New symbols.  All uses of
'defined SIGIO' replaced with 'defined USABLE_SIGIO', with no need
to #undef SIGIO now (which was error-prone).  Likewise, all uses
of 'defined FIONREAD' replaced with 'defined USABLE_FIONREAD'.
* src/admin/CPP_DEFINES (BROKEN_SIGAIO, BROKEN_SIGIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY, NO_TERMIO): Remove.
* src/conf_post.h [USG5_4]: Do not include <sys/wait.h> here.
Modules that need it can include it.
[USG5_4 && emacs]: Likewise, do not include the streams stuff here.
* src/dispextern.h (ignore_sigio): New decl.
* src/emacs.c (shut_down_emacs): Invoke unrequest_sigio
unconditionally, since it's now a no-op if !USABLE_SIGIO.
* src/emacs.c (shut_down_emacs):
* src/keyboard.c (kbd_buffer_store_event_hold):
Use ignore_sigio rather than invoking 'signal' directly.
* src/keyboard.c (USABLE_FIONREAD && USG5_4): Include <sys/filio.h>,
for FIONREAD.
(FIONREAD, SIGIO): Do not #undef.
(tty_read_avail_input): Use #error rather than a syntax error.
* src/process.c [USG5_4]: Include <sys/stream.h> and <sys/stropts.h>,
for I_PIPE, used by SETUP_SLAVE_PTY.
(DATAGRAM_SOCKETS): Simplify defn, based on USABLE_FIONREAD.
* src/sysdep.c (croak): Remove; no longer needed.  This bit of
temporary code, with Fred N. Fish's comment that it's temporary,
has been in Emacs since at least 1992!
(init_sigio, reset_sigio, request_sigio, unrequest_sigio):
Arrange for them to be no-ops in all cases when ! USABLE_SIGIO.
* src/syssignal.h (croak): Remove decl.
(SIGIO, SIGPOO, SIGAIO, SIGPTY): Do not #undef; that's too fragile.
* src/systty.h [!NO_TERMIO]: Do not include <termio.h>; no longer needed
now that we're termios-only.
(FIONREAD, ASYNC) [BROKEN_FIONREAD]: Do not #undef.
* src/term.c (dissociate_if_controlling_tty): Use #error rather than
a run-time error.

Fixes: debbugs:12408

11 years ago* lisp/emacs-lisp/edebug.el: Use lexical-binding.
Stefan Monnier [Thu, 13 Sep 2012 02:00:41 +0000 (22:00 -0400)]
* lisp/emacs-lisp/edebug.el: Use lexical-binding.
Remove the "edebug-" prefix from non-dynamically-scoped variables.
Mark unused args with underscore.
(edebug-save-restriction, edebug-outside-excursion): Use `declare'.
(edebug-form-data): Use defvar-local.
(edebug-make-before-and-after-form, edebug-make-after-form):
Use backquote.
(edebug-args, edebug-value, edebug-after-index, edebug-arg-mode):
Not dynamically scoped any more.
(edebug--enter-trace): Add arguments `function' and `args'.
Rename from edebug-enter-trace.
(edebug-enter): Call it accordingly.  Bind edebug-function explicitly.
(edebug--update-coverage): Add `after-index' and `value' args.
Rename from edebug-update-coverage.
(edebug-slow-after): Call it accordingly.
(edebug--recursive-edit): Add arg `arg-mode'.  Rename from
edebug-recursive-edit.
(edebug--display): Call it accordingly.  Add args `value',
`offset-index', and `arg-mode'.  Rename from edebug-display.
(edebug-debugger, edebug): Call it accordingly.
(edebug-eval-display-list): Use dolist.

11 years agoWork around GCC and GNOME bugs when --enable-gcc-warnings.
Paul Eggert [Thu, 13 Sep 2012 01:22:08 +0000 (18:22 -0700)]
Work around GCC and GNOME bugs when --enable-gcc-warnings.

* emacsgtkfixed.c (G_STATIC_ASSERT): Redefine to use 'verify',
to work around GNOME bug 683906.
* image.c (jpeg_load_body) [HAVE_JPEG && lint]: Pacify gcc -Wclobber.
(struct my_jpeg_error_mgr) [HAVE_JPEG && lint]: New member fp.
This works around GCC bug 54561.

11 years agoMore fixes for 'volatile' and setjmp/longjmp.
Paul Eggert [Wed, 12 Sep 2012 21:34:24 +0000 (14:34 -0700)]
More fixes for 'volatile' and setjmp/longjmp.

* eval.c (Fdefvar, Fcondition_case): Remove unnecessary 'volatile's.
* image.c (struct png_load_context) [HAVE_PNG]: New type.
(png_load_body) [HAVE_PNG]:
(jpeg_load_body) [HAVE_JPEG]:
New function, with most of the old parent function's body.
(png_load) [HAVE_PNG]:
(jpeg_load) [HAVE_JPEG]:
Invoke the new function, to avoid longjmp munging our locals.
(struct my_jpeg_error_mgr) [HAVE_JPEG]: New members cinfo, failure_code.
(my_error_exit) [HAVE_JPEG]: Don't trust 'setjmp' to return 2 when
longjmp is passed 2, as the C standard doesn't guarantee this.
Instead, store the failure code into mgr->failure_code.

11 years agoUse Isearch lax whitespace mode in Info.
Juri Linkov [Wed, 12 Sep 2012 20:51:46 +0000 (23:51 +0300)]
Use Isearch lax whitespace mode in Info.
http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00811.html

* lisp/info.el (Info-search): Don't check for isearch-mode and
isearch-regexp before let-binding search-spaces-regexp to
Info-search-whitespace-regexp.
(Info-isearch-search): Let-bind Info-search-whitespace-regexp to
search-whitespace-regexp if isearch-lax-whitespace or
isearch-regexp-lax-whitespace is non-nil.
(Info-mode): Don't set local variable search-whitespace-regexp.

11 years ago* configure.ac: No --with-x-toolkit given: Try gtk3 toolkit first
Jan Djärv [Wed, 12 Sep 2012 20:21:39 +0000 (22:21 +0200)]
* configure.ac: No --with-x-toolkit given: Try gtk3 toolkit first
and then gtk2 if not found.
--with-x-toolkit=gtk|yes: As above, but fail if gtk2 or gt3 not found.
--with-x-toolkit=gtk2: Only try gtk2, fail if not found.
--with-x-toolkit=gtk3: Only try gtk3, fail if not found.

11 years agoRemove unread-command-char.
Stefan Monnier [Wed, 12 Sep 2012 19:16:36 +0000 (15:16 -0400)]
Remove unread-command-char.
* src/keyboard.c (read_char, requeued_events_pending_p, Finput_pending_p)
(Fdiscard_input, quit_throw_to_read_char, init_keyboard)
(syms_of_keyboard): Remove support for unread-command-char.
* lisp/emacs-lisp/debug.el (debugger-outer-unread-command-char, debug)
(debugger-env-macro): Remove support for unread-command-char.

* lisp/ehelp.el (with-electric-help): Accept functions in
electric-help-form-to-execute.
(electric-help-execute-extended, electric-help-ctrl-x-prefix): Use it.
And replace unread-command-char -> unread-command-events.

* lisp/subr.el (set-temporary-overlay-map): Minimize slightly the impact of
the temporary map re-appearing on emulation-mode-map-alists.

* lisp/emacs-lisp/edebug.el (def-edebug-form-spec): Remove, it's been broken
since 22.1.

11 years agoFix silent exit upon assertion violation on MS-Windows.
Eli Zaretskii [Wed, 12 Sep 2012 19:14:02 +0000 (22:14 +0300)]
Fix silent exit upon assertion violation on MS-Windows.

 src/w32proc.c (sys_kill): If PID is our process ID and the signal is
 SIGABRT, call emacs_abort.  Avoids silently exiting upon assertion
 violation.  (Bug#12426)

11 years agoSync with Tramp 2.2.6.
Michael Albinus [Wed, 12 Sep 2012 16:39:10 +0000 (18:39 +0200)]
Sync with Tramp 2.2.6.

* tramp.texi (Bug Reports): Cleanup caches before a test run.

* trampver.texi: Update release number.

11 years agoSync with Tramp 2.2.6.
Michael Albinus [Wed, 12 Sep 2012 16:36:25 +0000 (18:36 +0200)]
Sync with Tramp 2.2.6.

* net/tramp.el (tramp-accept-process-output): Don't use
JUST-THIS-ONE in the XEmacs case.

* net/trampver.el: Update release number.