]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years agoSignal-handler cleanup.
Paul Eggert [Fri, 7 Sep 2012 01:27:44 +0000 (18:27 -0700)]
Signal-handler cleanup.

Emacs's signal handlers were written in the old 4.2BSD style with
sigblock and sigmask and so forth, and this led to some
inefficiencies and confusion.  Rewrite these to use
pthread_sigmask etc. without copying signal sets around.  Also,
get rid of the confusing macros 'SIGNAL_THREAD_CHECK' and
'signal', and instead use functions that do not attempt to take
over the system name space.  This patch causes Emacs's text
segment to shrink by 0.7% on my platform, Fedora 17 x86-64.
* configure.ac (PTY_OPEN, PTY_TTY_NAME_SPRINTF):
Adjust to syssignal.h changes.
(SIGNAL_H_AB): Remove; no longer needed.
* src/alloc.c, src/emacsgtkfixed.c, src/nsfns.m, src/widget.c, src/xmenu.c:
Do not include <signal.h> or "syssignal.h", as these
modules do not use signals.
* src/atimer.c, src/callproc.c, src/data.c, src/dispnew.c, src/emacs.c:
* src/floatfns.c, src/gtkutil.c, src/keyboard.c, src/process.c, src/sound.c:
* src/sysdep.c, src/term.c, src/xterm.c:
Do not include <signal.h>, as "syssignal.h" does that for us now.
* src/atimer.c (sigmask_atimers): New function.
(block_atimers, unblock_atimers): New functions,
replacing the old macros BLOCK_ATIMERS and UNBLOCK_ATIMERS.
All uses replaced.
* src/conf_post.h [SIGNAL_H_AHB]: Do not include <signal.h>;
no longer needed here.
* src/emacs.c (main): Inspect existing signal handler with sigaction,
so that there's no need to block and unblock SIGHUP.
* src/sysdep.c (struct save_signal): New member 'action', replacing
old member 'handler'.
(save_signal_handlers, restore_signal_handlers):
Use sigaction instead of 'signal' to save and restore.
(get_set_sighandler, set_sighandler) [!WINDOWSNT]:
New function.  All users of 'signal' modified to use set_sighandler
if they're writeonly, and to use sys_signal if they're read+write.
(emacs_sigaction_init, forwarded_signal): New functions.
(sys_signal): Remove.  All uses replaced by calls to sigaction
and emacs_sigaction_init, or by direct calls to 'signal'.
(sys_sigmask) [!__GNUC__]: Remove; no longer needed.
(sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove;
all uses replaced by pthread_sigmask etc. calls.
* src/syssignal.h: Include <signal.h>.
(emacs_sigaction_init, forwarded_signal): New decls.
(SIGMASKTYPE): Remove.  All uses replaced by its definiens, sigset_t.
(SIGEMPTYMASK): Remove; all uses replaced by its definiens, empty_mask.
(sigmask, sys_sigmask): Remove; no longer needed.
(sigpause): Remove.  All uses replaced by its definiens, sigsuspend.
(sigblock, sigunblock, sigfree):
(sigsetmask) [!defined sigsetmask]:
Remove.  All uses replaced by pthread_sigmask.
(signal): Remove.  Its remaining uses (with SIG_DFL and SIG_IGN)
no longer need to be replaced, and its typical old uses
are now done via emacs_sigaction_init and sigaction.
(sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove decls.
(sys_sigdel): Remove; unused.
(NSIG): Remove a FIXME; the code's fine.  Remove an unnecessary ifdef.

Fixes: debbugs:12327
11 years agoMisc changes made in Gnus master
Gnus developers [Thu, 6 Sep 2012 22:13:45 +0000 (22:13 +0000)]
Misc changes made in Gnus master

Use combining faces for highlighting.
Change ephemeral Gnus group names to be prettier.
gnus-util.el: Fix compilation error on XEmacs 21.4.

11 years agoFix bug #12327 with SIGCHLD handling on Windows and some other systems.
Eli Zaretskii [Thu, 6 Sep 2012 16:42:48 +0000 (19:42 +0300)]
Fix bug #12327 with SIGCHLD handling on Windows and some other systems.

 src/process.c (CAN_HANDLE_MULTIPLE_CHILDREN): Fix a typo that broke
 SIGCHLD handling on systems that don't have WNOHANG.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Understand _ on &key args.
Stefan Monnier [Thu, 6 Sep 2012 15:35:08 +0000 (11:35 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Understand _ on &key args.
(cl--make-usage-args): Strip _ from argument names.

Fixes: debbugs:12367
11 years agoRemove references to obsolete variable speedbar-key-map.
Chong Yidong [Thu, 6 Sep 2012 09:38:56 +0000 (17:38 +0800)]
Remove references to obsolete variable speedbar-key-map.

* speedbar.el (speedbar-update-flag, speedbar-mode): Remove
references to obsolete variable speedbar-key-map.

11 years agoFix use of obsolete variables in vhdl-mode.el.
Rüdiger Sonderfeld [Thu, 6 Sep 2012 09:36:40 +0000 (17:36 +0800)]
Fix use of obsolete variables in vhdl-mode.el.

* progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Don't use
obsolete alias speedbar-key-map.
(vhdl-doc-variable, vhdl-doc-mode): Use called-interactively-p.
(vhdl-index-menu-init): Don't use obsolete variable font-lock-maximum-size.

11 years ago* frame.el (window-system-version): Mark as obsolete.
Chong Yidong [Thu, 6 Sep 2012 09:29:32 +0000 (17:29 +0800)]
* frame.el (window-system-version): Mark as obsolete.

See http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00412.html

11 years agoExplicitly mark buffer_defaults and buffer_local_symbols.
Dmitry Antipov [Thu, 6 Sep 2012 09:15:44 +0000 (13:15 +0400)]
Explicitly mark buffer_defaults and buffer_local_symbols.
* alloc.c (Fgarbage_collect): Mark buffer_defaults and
mark_local_symbols here.
(mark_object): If GC_CHECK_MARKED_OBJECTS, simplify checking
since special buffers aren't marked here any more.
(allocate_buffer): Chain new buffer with all_buffers here...
* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): ...and
not here.
(Vbuffer_defaults, Vbuffer_local_symbols): Remove.
(syms_of_buffer): Remove staticpro of the above.
(init_buffer_once): Set names for buffer_defaults and
buffer_local_symbols.

11 years ago* lisp/replace.el (replace-lax-whitespace): New defcustom.
Juri Linkov [Thu, 6 Sep 2012 08:49:40 +0000 (11:49 +0300)]
* lisp/replace.el (replace-lax-whitespace): New defcustom.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(replace-string, replace-regexp): Mention it in docstrings.
(perform-replace, replace-highlight): Let-bind
isearch-lax-whitespace and isearch-regexp-lax-whitespace according
to the values of replace-lax-whitespace and regexp-flag.
Don't let-bind search-whitespace-regexp.

* lisp/isearch.el (isearch-query-replace): Let-bind
replace-lax-whitespace instead of let-binding
replace-search-function and replace-re-search-function.
(isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
and isearch-regexp-lax-whitespace to lazy-highlight variables.
(isearch-toggle-symbol): Set isearch-regexp to nil
in isearch-word mode (like in isearch-toggle-word).

Fixes: debbugs:10885
11 years agoUse `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887).
Juri Linkov [Thu, 6 Sep 2012 08:33:17 +0000 (11:33 +0300)]
Use `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887).

* lisp/replace.el (replace-search-function)
(replace-re-search-function): Set default values to nil.
(perform-replace): Let-bind isearch-related variables based on
replace-related values, call `isearch-search-fun' and let-bind
the result to `search-function'.  Remove code that sets
`search-function' and `search-string' separately for
`delimited-flag'.
(replace-highlight): Add new argument `delimited-flag' and
rename other arguments to the names used in `perform-replace'.
Let-bind `isearch-word' to the argument `delimited-flag'.

11 years agoUse bool for booleans in font-related modules.
Paul Eggert [Thu, 6 Sep 2012 08:04:49 +0000 (01:04 -0700)]
Use bool for booleans in font-related modules.

* font.c (font_intern_prop, font_style_to_value)
(font_style_symbolic, font_parse_xlfd, font_parse_fcname)
(generate_otf_features, font_check_otf_features, font_check_otf)
(font_match_p, font_list_entities, font_at):
* fontset.c (fontset_id_valid_p, reorder_font_vector
(fontset_find_font, Fset_fontset_font)
(face_suitable_for_char_p) [0]:
* ftfont.c (fc_initialized, ftfont_get_open_type_spec)
(ftfont_open, ftfont_text_extents, ftfont_check_otf):
(m17n_flt_initialized, ftfont_shape_by_flt):
* ftxfont.c (ftxfont_draw_bitmap, ftxfont_draw):
* nsfont.m (nsfont_draw):
* w32font.c (w32font_draw):
* w32term.c (x_draw_glyphless_glyph_string_foreground):
Use bool for booleans.
* font.h: Adjust to above API changes.
(struct font, struct font_driver, struct font_driver_list):
Use bool for booleans.
(struct font): Remove useless member encoding_type.
All users removed.
* fontset.c, xftfont.c: Omit unnecessary static decls.

11 years ago* alloc.c (mark_object): Revert window marking code
Dmitry Antipov [Thu, 6 Sep 2012 07:10:25 +0000 (11:10 +0400)]
* alloc.c (mark_object): Revert window marking code
since it's unsafe for the Fset_window_configuration.

11 years ago[Gnus] XEmacs 21.5 compilation fix
Katsumi Yamaoka [Thu, 6 Sep 2012 02:20:21 +0000 (02:20 +0000)]
[Gnus] XEmacs 21.5 compilation fix

* gnus-score.el (gnus-score-decode-text-parts): Use #' for
  mm-text-parts used in labels macro to make it work with XEmacs 21.5.
* gnus-util.el (gnus-string-prefix-p): New function, an alias to
  string-prefix-p in Emacs >=23.2.
* nnmaildir.el (nnmaildir--ensure-suffix, nnmaildir--add-flag)
  (nnmaildir--remove-flag, nnmaildir--scan): Use gnus-string-match-p
  instead of string-match-p.
  (nnmaildir--scan): Use gnus-string-prefix-p instead of string-prefix-p.

11 years agomerge trunk
Kenichi Handa [Thu, 6 Sep 2012 01:49:15 +0000 (10:49 +0900)]
merge trunk

11 years agoqp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f.
Kenichi Handa [Thu, 6 Sep 2012 01:45:33 +0000 (10:45 +0900)]
qp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f.

11 years agoMerge changes made in Gnus master
Gnus developers [Wed, 5 Sep 2012 22:45:43 +0000 (22:45 +0000)]
Merge changes made in Gnus master

2012-09-05  Magnus Henoch  <magnus.henoch@gmail.com>
* nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error.

2012-09-05  Martin Stjernholm  <mast@lysator.liu.se>
* gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and
  TIME is set.

2012-09-05  Juri Linkov  <juri@jurta.org>
* gnus-group.el (gnus-read-ephemeral-bug-group): Allow opening more
  than one group at a time (bug#11961).

11 years agoMerge changes made in Gnus master
Gnus developers [Wed, 5 Sep 2012 22:35:32 +0000 (22:35 +0000)]
Merge changes made in Gnus master

2012-09-05 Julien Danjou <julien@danjou.info>
* gnus-srvr.el (gnus-server-open-server): Don't message on failure:
  this hide the real reason with a message giving absolutely no hint.

2012-09-05 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-mark-article-read): Propagate the read mark
  to the backend (bug#11804).
* message.el (message-insert-newsgroups): Don't insert newsgroup
  duplicates (bug#12275).

2012-09-05 John Wiegley <johnw@newartisans.com>
* gnus.el (gnus-expand-group-parameters): Allow regexp substitutions in
  sieve rules.

2012-09-05 Jan Tatarik <jan.tatarik@gmail.com>
* gnus-score.el (gnus-score-decode-text-parts): Use #' for the local
  function.
* gnus-logic.el (gnus-advanced-body): Allow scoring on decoded bodies.
* gnus-score.el (gnus-score-decode-text-parts): Ditto.

2012-09-05 Magnus Henoch <magnus.henoch@gmail.com>
* nnmaildir.el: Make nnmaildir understand and write maildir flags.
  That is, rename files from "unique:2," to "unique:2,S" for "seen", etc.
  This should make nnmaildir more usable with offlineimap.

11 years agoFix race conditions with signal handlers and errno.
Paul Eggert [Wed, 5 Sep 2012 21:33:53 +0000 (14:33 -0700)]
Fix race conditions with signal handlers and errno.

Be more systematic about preserving errno whenever a signal
handler returns, even if it's not in the main thread.  Do this by
renaming signal handlers to distinguish between signal delivery
and signal handling.  All uses changed.
* atimer.c (deliver_alarm_signal): Rename from alarm_signal_handler.
* data.c (deliver_arith_signal): Rename from arith_error.
* dispnew.c (deliver_window_change_signal): Rename from
window_change_signal.
* emacs.c (deliver_error_signal): Rename from fatal_error_signal.
(deliver_danger_signal) [SIGDANGER]: Rename from memory_warning_signal.
* keyboard.c (deliver_input_available_signal): Rename from
input_available_signal.
(deliver_user_signal): Rename from handle_user_signal.
(deliver_interrupt_signal): Rename from interrupt_signal.
* process.c (deliver_pipe_signal): Rename from send_process_trap.
(deliver_child_signal): Rename from sigchld_handler.
* atimer.c (handle_alarm_signal):
* data.c (handle_arith_signal):
* dispnew.c (handle_window_change_signal):
* emacs.c (handle_fatal_signal, handle_danger_signal):
* keyboard.c (handle_input_available_signal):
* keyboard.c (handle_user_signal, handle_interrupt_signal):
* process.c (handle_pipe_signal, handle_child_signal):
New functions, with the actual signal-handling code taken from the
original respective signal handlers, sans the sporadic attempts to
preserve errno, since that's now done by handle_on_main_thread.
* atimer.c (alarm_signal_handler): Remove unnecessary decl.
* emacs.c, floatfns.c, lisp.h: Remove unused FLOAT_CATCH_SIGKILL cruft.
* emacs.c (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Move to sysdep.c.
(main) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Move initialization of main_thread to sysdep.c's init_signals.
* process.c (waitpid) [!WNOHANG]: #define to wait; that's good enough for
our usage, and simplifies the mainline code.
(record_child_status_change): New static function, as a helper
for handle_child_signal, and with most of the old child handler's
contents.
(CAN_HANDLE_MULTIPLE_CHILDREN): New constant.
(handle_child_signal): Use the above.
* sysdep.c (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Moved here from emacs.c.
(init_signals) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it;
code moved here from emacs.c's main function.
* sysdep.c, syssignal.h (handle_on_main_thread): New function,
replacing the old SIGNAL_THREAD_CHECK.  All uses changed.  This
lets callers save and restore errno properly.

11 years agoleim/quail/hebrew.el ("yiddish-royal"): Fix several bogus entries.
Eli Zaretskii [Wed, 5 Sep 2012 18:05:16 +0000 (21:05 +0300)]
leim/quail/hebrew.el ("yiddish-royal"): Fix several bogus entries.

11 years agoRemove redundant or unused things here and there.
Dmitry Antipov [Wed, 5 Sep 2012 17:05:32 +0000 (21:05 +0400)]
Remove redundant or unused things here and there.
* lisp.h (CYCLE_CHECK, CHAR_TABLE_TRANSLATE): Remove.
* conf_post.h (RE_TRANSLATE): Use char_table_translate.
* editfns.c (Fcompare_buffer_substrings): Likewise.
* frame.h (struct terminal, struct font_driver_list):
Remove redundant declarations.
* window.h (Qleft, Qright): Likewise.

11 years agoDo not mark objects from deleted buffers, windows and frames.
Dmitry Antipov [Wed, 5 Sep 2012 15:34:45 +0000 (19:34 +0400)]
Do not mark objects from deleted buffers, windows and frames.
* alloc.c (mark_buffer): Mark just the buffer if it is dead.
(mark_object): Likewise for windows and frames.

11 years ago* alloc.c (valid_lisp_object_p): Treat killed buffers,
Dmitry Antipov [Wed, 5 Sep 2012 12:55:03 +0000 (16:55 +0400)]
* alloc.c (valid_lisp_object_p): Treat killed buffers,
buffer_defaults and buffer_local_symbols as valid objects.
Return special value to denote them.

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

11 years agoProvide support for fitting frames to buffers.
Martin Rudalics [Wed, 5 Sep 2012 09:22:20 +0000 (11:22 +0200)]
Provide support for fitting frames to buffers.

* help.el (temp-buffer-max-height): New default value.
(temp-buffer-resize-frames): New option.
(resize-temp-buffer-window): Optionally resize frame.

* window.el (fit-frame-to-buffer-bottom-margin): New option.
(fit-frame-to-buffer): New function.

11 years ago* fileio.c, filelock.c, floatfns.c, fns.c: Use bool for boolean.
Paul Eggert [Wed, 5 Sep 2012 07:18:46 +0000 (00:18 -0700)]
* fileio.c, filelock.c, floatfns.c, fns.c: Use bool for boolean.

* fileio.c (auto_saving, auto_save_error_occurred, make_temp_name)
(Fexpand_file_name, barf_or_query_if_file_exists, Fcopy_file)
(file_name_absolute_p, Fsubstitute_in_file_name):
(check_executable, check_writable, Ffile_accessible_directory_p)
(Fset_file_selinux_context, Fdefault_file_modes)
(Finsert_file_contents, choose_write_coding_system)
(Fwrite_region, build_annotations, a_write, e_write)
(Fdo_auto_save):
* filelock.c (boot_time_initialized, get_boot_time)
(get_boot_time_1, lock_file_1, within_one_second):
* floatfns.c (in_float):
* fns.c (concat, internal_equal, Frequire, base64_encode_1)
(base64_decode_1, cmpfn_eql, cmpfn_user_defined)
(sweep_weak_table, sweep_weak_hash_tables, secure_hash):
* lisp.h (struct Lisp_Hash_Table.cmpfn):
* window.c (compare_window_configurations):
Use bool for booleans.
* fileio.c (auto_saving_dir_umask, auto_saving_mode_bits)
(Fdefault_file_modes): Now mode_t, not int, for modes.
(Fdo_auto_save): Set a boolean to 1 rather than using ++.
(internal_delete_file): Now returns void, not a (boolean) int,
since nobody was looking at the return value.
* lisp.h, window.h: Adjust to above API changes.

11 years agoMerge from emacs-24; up to 2012-05-05T02:50:20Z!monnier@iro.umontreal.ca
Glenn Morris [Wed, 5 Sep 2012 07:05:56 +0000 (00:05 -0700)]
Merge from emacs-24; up to 2012-05-05T02:50:20Z!monnier@iro.umontreal.ca

11 years agoChangeLog fixes
Glenn Morris [Wed, 5 Sep 2012 06:56:55 +0000 (23:56 -0700)]
ChangeLog fixes

11 years ago* xdisp.c (set_message): Simplify and reindent last change.
Paul Eggert [Wed, 5 Sep 2012 03:37:32 +0000 (20:37 -0700)]
* xdisp.c (set_message): Simplify and reindent last change.

11 years agosrc/makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
Juanma Barranquero [Wed, 5 Sep 2012 00:30:14 +0000 (02:30 +0200)]
src/makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 5 Sep 2012 00:17:57 +0000 (02:17 +0200)]
nt/config.nt: Sync with autogen/config.in.

11 years agoImplement `debug-on-message'.
Lars Ingebrigtsen [Tue, 4 Sep 2012 21:21:00 +0000 (23:21 +0200)]
Implement `debug-on-message'.

This allows tracking down what piece of code is outputting stuff in
the echo area.

* eval.c (call_debugger): Make the function non-static so that we
can call it from set_message.

* xdisp.c (set_message): Implement the new variable `debug-on-message'.
(syms_of_xdisp): Defvar it and `inhibit-debug-on-message'.

11 years agoGive more-useful info on a fatal error (Bug#12328).
Paul Eggert [Tue, 4 Sep 2012 18:29:04 +0000 (11:29 -0700)]
Give more-useful info on a fatal error (Bug#12328).

* doc/emacs/trouble.texi (Crashing): New section, documenting this.
* etc/NEWS: Document the change.
* src/alloc.c [ENABLE_CHECKING]: Do not include <execinfo.h>.
(die) [ENABLE_CHECKING]: Call fatal_error_backtrace instead
of doing the work ourselves.
* src/emacs.c (fatal_error_signal): Let fatal_error_backtrace
do most of the work.
(fatal_error_backtrace): New function, taken from the guts
of the old fatal_error_signal, but with a new option to output
a backtrace.
(shut_down_emacs) [!DOS_NT]: Use strsignal to give more-useful
info about the signal than just its number.
* src/lisp.h (fatal_error_backtrace, emacs_backtrace): New decls.
* src/sysdep.c: Include <execinfo.h>
(emacs_backtrace): New function, taken partly from the previous
code of the 'die' function.
(emacs_abort): Call fatal_error_backtrace rather than abort.

11 years agoMacro-expand interpreted code during load.
Stefan Monnier [Tue, 4 Sep 2012 17:40:25 +0000 (13:40 -0400)]
Macro-expand interpreted code during load.
* src/lread.c (readevalloop): Call internal-macroexpand-for-load to perform
eager (load-time) macro-expansion.
* src/lisp.mk (lisp): Add macroexp.
* lisp/loadup.el: Load macroexp.  Remove hack.
* lisp/emacs-lisp/macroexp.el (macroexp--eval-if-compile): New function.
(macroexp--expand-all): Use it to get better warnings.
(macroexp--backtrace, macroexp--trim-backtrace-frame)
(internal-macroexpand-for-load): New functions.
(macroexp--pending-eager-loads): New var.
(emacs-startup-hook): New hack to replace one in loadup.el.
* lisp/emacs-lisp/cl-macs.el (cl--compiler-macro-list*)
(cl--compiler-macro-cXXr): Move to top, before they can be used.
(cl-psetf): Simplify.
(cl-defstruct): Add indent rule.

11 years agoSimplify redefinition of 'abort' (Bug#12316).
Paul Eggert [Tue, 4 Sep 2012 17:34:54 +0000 (10:34 -0700)]
Simplify redefinition of 'abort' (Bug#12316).

Do not try to redefine the 'abort' function.  Instead, redo
the code so that it calls 'emacs_abort' rather than 'abort'.
This removes the need for the NO_ABORT configure-time macro
and makes it easier to change the abort code to do a backtrace.
* configure.ac (NO_ABRT): Remove.
* admin/CPP-DEFINES (NO_ABORT): Remove.
* nt/inc/ms-w32.h (w32_abort) [HAVE_NTGUI]: Remove.
* src/.gdbinit: Just stop at emacs_abort, not at w32_abort or abort.
* src/emacs.c (abort) [!DOS_NT && !NO_ABORT]:
Remove; sysdep.c's emacs_abort now takes its place.
* src/lisp.h (emacs_abort): New decl.  All calls from Emacs code to
'abort' changed to use 'emacs_abort'.
* src/msdos.c (dos_abort) [defined abort]: Remove; not used.
(abort) [!defined abort]: Rename to ...
(emacs_abort): ... new name.
* src/sysdep.c (emacs_abort) [!HAVE_NTGUI]: New function, taking
the place of the old 'abort' in emacs.c.
* src/w32.c, src/w32fns.c (abort): Do not #undef.
* src/w32.c (emacs_abort): Rename from w32_abort.

11 years agoFix display of Arabic diacriticals on Windows, per bug #11860.
Eli Zaretskii [Tue, 4 Sep 2012 17:15:45 +0000 (20:15 +0300)]
Fix display of Arabic diacriticals on Windows, per bug #11860.

 src/w32uniscribe.c (uniscribe_shape): Reverse the sign of
 offsets[j].dv, since the y axis of the screen coordinates points
 down, while the y axis of the font definition coordinates points
 up.  This fixes display of Arabic diacritics such as KASRA and
 KASRATAN.

11 years agoHave smtpmail.el prefer the From: header for the MAIL FROM envelope
Lars Ingebrigtsen [Tue, 4 Sep 2012 16:00:10 +0000 (18:00 +0200)]
Have smtpmail.el prefer the From: header for the MAIL FROM envelope

* mail/smtpmail.el (smtpmail-send-it): Prefer the From: header
over `user-mail-address' for the SMTP MAIL FROM envelope.
(smtpmail-via-smtp): Ditto.

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

11 years agoBe more systematic about _setjmp vs setjmp.
Paul Eggert [Tue, 4 Sep 2012 06:34:19 +0000 (23:34 -0700)]
Be more systematic about _setjmp vs setjmp.

* alloc.c (test_setjmp, mark_stack):
* image.c (PNG_LONGJMP) [PNG_LIBPNG_VER < 10500]:
(PNG_JMPBUF) [! (PNG_LIBPNG_VER < 10500)]:
(png_load, my_error_exit, jpeg_load):
* process.c (send_process_trap, send_process):
Uniformly prefer _setjmp and _longjmp to setjmp and longjmp.
The underscored versions are up to 30x faster on some hosts.
Formerly, the code used setjmp+longjmp sometimes and
_setjmp+_longjmp at other times, with no particular reason to
prefer setjmp+longjmp.

11 years ago* configure.ac (_setjmp, _longjmp): Check by compiling
Paul Eggert [Tue, 4 Sep 2012 06:25:44 +0000 (23:25 -0700)]
* configure.ac (_setjmp, _longjmp): Check by compiling

instead of by guessing.  The guesses were wrong for
recent versions of Solaris, such as Solaris 11.

11 years ago* progmodes/ruby-mode.el: Clean up keybindings (ChangeLog entry).
Dmitry Gutov [Tue, 4 Sep 2012 04:44:43 +0000 (08:44 +0400)]
* progmodes/ruby-mode.el: Clean up keybindings (ChangeLog entry).

11 years ago* ruby-mode.el: Clean up keybindings.
Dmitry Gutov [Tue, 4 Sep 2012 04:42:47 +0000 (08:42 +0400)]
* ruby-mode.el: Clean up keybindings.
(ruby-mode-map): Don't bind ruby-electric-brace,
ruby-beginning-of-defun, ruby-end-of-defun, ruby-mark-defun,
backward-kill-word, reindent-then-newline-and-indent.
(ruby-mark-defun): Remove.
(ruby-electric-brace): Remove.  Obsoleted by electric-indent-chars.
(ruby-mode): Set local beginning-of-defun-function and
end-of-defun-function values.

11 years ago[Gnus] Silence XEmacs compilation warnings
Lars Ingebrigtsen [Mon, 3 Sep 2012 22:12:02 +0000 (22:12 +0000)]
[Gnus] Silence XEmacs compilation warnings

11 years agoRevert changes prompted only by gcc -Wjump-misses-init.
Paul Eggert [Mon, 3 Sep 2012 19:36:09 +0000 (12:36 -0700)]
Revert changes prompted only by gcc -Wjump-misses-init.

11 years ago* configure.ac (WARN_CFLAGS): Omit -Wjump-misses-init.
Paul Eggert [Mon, 3 Sep 2012 19:34:49 +0000 (12:34 -0700)]
* configure.ac (WARN_CFLAGS): Omit -Wjump-misses-init.

It generates false alarms in doc.c, regex.c, xdisp.c.  See
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00040.html>.

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

11 years agoMerge from gnulib.
Paul Eggert [Mon, 3 Sep 2012 09:26:56 +0000 (02:26 -0700)]
Merge from gnulib.

This incorporates:
2012-08-29 stdbool: be more compatible with mixed C/C++ compiles
2011-11-30 manywarnings: update the list of "all" warnings

11 years agoFix minor problems found by static checking.
Paul Eggert [Mon, 3 Sep 2012 09:22:43 +0000 (02:22 -0700)]
Fix minor problems found by static checking.

* buffer.c (Fdelete_all_overlays): Return nil.
* doc.c (Fsubstitute_command_keys):
* regex.c (WEAK_ALIAS):
* xdisp.c (redisplay_internal):
Move initialization down, to pacify GCC 4.7.1 -Wjump-misses-init.

11 years agoNew macro with-temp-buffer-window and related fixes.
Martin Rudalics [Mon, 3 Sep 2012 08:54:25 +0000 (10:54 +0200)]
New macro with-temp-buffer-window and related fixes.

* buffer.c (Fdelete_all_overlays): New function.

* window.el (temp-buffer-window-setup-hook)
(temp-buffer-window-show-hook): New hooks.
(temp-buffer-window-setup, temp-buffer-window-show)
(with-temp-buffer-window): New functions.
(fit-window-to-buffer): Remove unused optional argument
OVERRIDE.
(special-display-popup-frame): Make sure the window used shows
BUFFER.

* help.el (temp-buffer-resize-mode): Fix doc-string.
(resize-temp-buffer-window): New optional argument WINDOW.

* files.el (recover-file, save-buffers-kill-emacs):
* dired.el (dired-mark-pop-up): Use with-temp-buffer-window.

11 years ago* gtkutil.c: Add extern decl for Qxft.
Chong Yidong [Mon, 3 Sep 2012 08:13:33 +0000 (16:13 +0800)]
* gtkutil.c: Add extern decl for Qxft.

11 years ago* emacs.c, eval.c: Use bool for boolean.
Paul Eggert [Sun, 2 Sep 2012 17:10:35 +0000 (10:10 -0700)]
* emacs.c, eval.c: Use bool for boolean.

* emacs.c (initialized, inhibit_window_system, running_asynch_code):
(malloc_using_checking) [DOUG_LEA_MALLOC]:
(display_arg) [HAVE_X_WINDOWS || HAVE_NS]:
(noninteractive, no_site_lisp, fatal_error_in_progress, argmatch)
(main, decode_env_path, Fdaemon_initialized):
* eval.c (call_debugger, Finteractive_p, interactive_p):
(unwind_to_catch, Fsignal, wants_debugger, skip_debugger)
(maybe_call_debugger, Fbacktrace):
* process.c (read_process_output, exec_sentinel):
Use bool for booleans.
* emacs.c (shut_down_emacs): Omit unused boolean argument NO_X.
All callers changed.
* eval.c (interactive_p): Omit always-true boolean argument
EXCLUDE_SUBRS_P.  All callers changed.
* dispextern.h, lisp.h: Reflect above API changes.
* firstfile.c (dummy): Use the address of 'main', whose signature
won't change, instead of the address of 'initialize', whose
signature just changed from int to bool.
* lisp.h (fatal_error_in_progress): New decl of boolean, moved here ...
* msdos.c (fatal_error_in_progress): ... from here.
* xdisp.c (redisplaying_p): Now a boolean.  Set it to 1 instead
of incrementing it.
(redisplay_internal, unwind_redisplay): Simply clear
REDISPLAYING_P when unwinding, instead of saving its previous,
always-false value and then restoring it.

11 years agoClean up some extern decls.
Paul Eggert [Sun, 2 Sep 2012 16:56:31 +0000 (09:56 -0700)]
Clean up some extern decls.

Mostly, this hoists extern decls out of .c files and into .h files.
That way, we're more likely to catch errors if the interfaces change.
* alloc.c [USE_GTK]: Include "gtkutil.h" so that we need not
declare xg_mark_data.
* dispextern.h (x_frame_parm_handlers):
* font.h (Qxft):
* lisp.h (Qlexical_binding, Qinternal_interpreter_environment)
(Qextra_light, Qlight, Qsemi_light, Qsemi_bold, Qbold, Qextra_bold)
(Qultra_bold, Qoblique, Qitalic):
Move extern decl here from .c file.
* alloc.c (xg_mark_data) [USE_GTK]:
* doc.c (Qclosure):
* eval.c (Qlexical_binding):
* fns.c (time) [!HAVE_UNISTD_H]:
* gtkutil.c (Qxft, Qnormal, Qextra_light, Qlight, Qsemi_light)
(Qsemi_bold, Qbold, Qextra_bold, Qultra_bold, Qoblique, Qitalic):
* image.c (Vlibrary_cache, QCloaded_from) [HAVE_NTGUI]:
* lread.c (Qinternal_interpreter_environment):
* minibuf.c (Qbuffer):
* process.c (QCfamily, QCfilter):
* widget.c (free_frame_faces):
* xfaces.c (free_frame_menubar) [USE_X_TOOLKIT]:
* xfont.c (x_clear_errors):
* xterm.c (x_frame_parm_handlers):
Remove now-redundant extern decls.
* keyboard.c, keyboard.h (ignore_mouse_drag_p) [USE_GTK || HAVE_NS]:
* xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic):
Now static.
* xfaces.c: Remove unnecessary static decls.
* xterm.c (updating_frame): Remove decl of nonexistent object.

11 years ago* Makefile.in (gl-stamp): Don't scan $(SOME_MACHINE_OBJECTS)
Paul Eggert [Sun, 2 Sep 2012 14:26:47 +0000 (07:26 -0700)]
* Makefile.in (gl-stamp): Don't scan $(SOME_MACHINE_OBJECTS)

when building globals.h, as the objects that are not built on
this host are not needed to compile C files on this host.

11 years ago* configure.ac (HAVE_GOBJECT): Check for gobject-2.0.
Jan Djärv [Sun, 2 Sep 2012 11:13:24 +0000 (13:13 +0200)]
* configure.ac (HAVE_GOBJECT): Check for gobject-2.0.

Fixes: debbugs:12332
11 years agoPrototype for x_wm_set_size_hint restored.
Jan Djärv [Sun, 2 Sep 2012 10:53:46 +0000 (12:53 +0200)]
Prototype for x_wm_set_size_hint restored.

* frame.h: Add missing prototype for x_wm_set_size_hint.

* gtkutil.h: Remove prototype for x_wm_set_size_hint.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 2 Sep 2012 10:19:02 +0000 (06:19 -0400)]
Auto-commit of generated files.

11 years ago* eshell/em-unix.el (eshell/sudo): When we have an ad-hoc
Michael Albinus [Sun, 2 Sep 2012 09:57:19 +0000 (11:57 +0200)]
* eshell/em-unix.el (eshell/sudo): When we have an ad-hoc
remote definition of `default-directory', ensure we can connect.

11 years agoToggle whitespace matching mode with M-s SPC.
Juri Linkov [Sun, 2 Sep 2012 09:31:45 +0000 (12:31 +0300)]
Toggle whitespace matching mode with M-s SPC.
http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html

* lisp/isearch.el (search-whitespace-regexp): Doc fix.
Remove cons cell customization.
(isearch-mode-map): Bind "\M-s " to isearch-toggle-lax-whitespace.
(isearch-lax-whitespace, isearch-regexp-lax-whitespace):
New variables.
(isearch-forward, isearch-forward-regexp): Doc fix.
(isearch-toggle-lax-whitespace): New command.
(search-forward-lax-whitespace, search-backward-lax-whitespace)
(re-search-forward-lax-whitespace)
(re-search-backward-lax-whitespace): New functions.
(isearch-whitespace-regexp): Remove function.
(isearch-query-replace): Let-bind replace-search-function and
replace-re-search-function.
(isearch-occur): Let-bind search-spaces-regexp according to the
value of isearch-lax-whitespace and isearch-regexp-lax-whitespace.
(isearch-quote-char): Check isearch-regexp-lax-whitespace in the
condition for C-q SPC.
(isearch-search-fun-default): Use new functions mentioned above.
(isearch-search-forward, isearch-search-backward): Remove functions.
(isearch-search): Don't let-bind search-spaces-regexp.
(isearch-lazy-highlight-space-regexp): Remove variable.
(isearch-lazy-highlight-lax-whitespace)
(isearch-lazy-highlight-regexp-lax-whitespace): New variables.
(isearch-lazy-highlight-new-loop): Use them.
(isearch-lazy-highlight-search): Don't let-bind search-spaces-regexp.

11 years ago* doc.c, editfns.c, insdel.c, intervals.c: Use bool for boolean.
Paul Eggert [Sun, 2 Sep 2012 07:10:10 +0000 (00:10 -0700)]
* doc.c, editfns.c, insdel.c, intervals.c: Use bool for boolean.

* doc.c (read_bytecode_char, get_doc_string, reread_doc_file)
(Fdocumentation, Fdocumentation_property, Fsnarf_documentation)
(Fsubstitute_command_keys):
* editfns.c (region_limit, find_field, Fconstrain_to_field)
(save_excursion_save, save_excursion_restore)
(disassemble_lisp_time, decode_time_components, emacs_nmemftime)
(format_time_string, general_insert_function)
(make_buffer_string, make_buffer_string_both)
(Fsubst_char_in_region, Ftranslate_region_internal, Fformat):
* insdel.c (check_markers, gap_left, adjust_markers_for_insert)
(copy_text, insert_1, insert_1_both, insert_from_string)
(insert_from_string_before_markers, insert_from_string_1)
(insert_from_buffer, insert_from_buffer_1, replace_range)
(replace_range_2, del_range_1, del_range_byte, del_range_both)
(del_range_2, modify_region):
* intervals.c (intervals_equal, balance_possible_root_interval)
(adjust_intervals_for_insertion, merge_properties_sticky)
(graft_intervals_into_buffer, lookup_char_property)
(adjust_for_invis_intang, set_point_both)
(get_property_and_range, compare_string_intervals)
(set_intervals_multibyte_1, set_intervals_multibyte):
* keyboard.c (decode_timer):
Use bool for boolean.
* intervals.h, lisp.h, systime.h: Reflect above API changes.
* editfns.c (struct info): Use 1-bit unsigned bitfields for booleans.

11 years agoRecommand against save-window-excursion in Lisp manual.
Chong Yidong [Sun, 2 Sep 2012 04:47:28 +0000 (12:47 +0800)]
Recommand against save-window-excursion in Lisp manual.

* windows.texi (Window Configurations): Recommend against using
save-window-excursion.

* control.texi (Catch and Throw):
* positions.texi (Excursions): Don't mention it.

Fixes: debbugs:12075
11 years ago* keymap.c (push_key_description): Print M-TAB as C-M-i.
Chong Yidong [Sun, 2 Sep 2012 03:50:29 +0000 (11:50 +0800)]
* keymap.c (push_key_description): Print M-TAB as C-M-i.

Fixes: debbugs:11758
11 years ago* dired.el (dired-mode-map): Menu string fixes.
Chong Yidong [Sun, 2 Sep 2012 02:47:02 +0000 (10:47 +0800)]
* dired.el (dired-mode-map): Menu string fixes.

Fixes: debbugs:11616
11 years agoExpand on NEWS entry about deletion of `z' from special-mode-map.
Chong Yidong [Sun, 2 Sep 2012 02:30:06 +0000 (10:30 +0800)]
Expand on NEWS entry about deletion of `z' from special-mode-map.

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Sun, 2 Sep 2012 02:22:33 +0000 (04:22 +0200)]
src/makefile.w32-in: Update dependencies.
(CCL_H, W32FONT_H): New macros.
(ATIMER_H, FONT_H, $(BLD)/alloc.$(O), $(BLD)/callproc.$(O))
($(BLD)/editfns.$(O), $(BLD)/ccl.$(O), $(BLD)/chartab.$(O))
($(BLD)/coding.$(O), $(BLD)/sysdep.$(O), $(BLD)/fontset.$(O))
($(BLD)/sysdep.$(O), $(BLD)/w32fns.$(O), $(BLD)/keyboard.$(O))
($(BLD)/w32term.$(O), $(BLD)/w32menu.$(O), $(BLD)/process.$(O))
($(BLD)/w32font.$(O), $(BLD)/w32uniscribe.$(O)): Update.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Sun, 2 Sep 2012 02:00:47 +0000 (04:00 +0200)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_EXECINFO_H, TERM_HEADER): New macros.

11 years ago* lisp/simple.el (undo): Tweak message in undo-only case.
Glenn Morris [Sun, 2 Sep 2012 00:56:03 +0000 (17:56 -0700)]
* lisp/simple.el (undo): Tweak message in undo-only case.

Fixes: debbugs:12283
11 years agoTidy up term.el menu handling
Glenn Morris [Sat, 1 Sep 2012 22:03:06 +0000 (15:03 -0700)]
Tidy up term.el menu handling

* lisp/term.el: (term-mode-map): Use easymenu for In/Out, Complete menus.
(term-pager-break-map): Initialize in the defvar.
(term-terminal-menu, term-signals-menu): Define with easymenu.
(term-terminal-menu): Also show it in line-mode.
(term-pager-menu): New, extracted from term-process-pager.
(term-mode, term-char-mode, term-process-pager): Use easymenu-add.
(term-update-mode-line): Propertize line/char and page items.
(term-process-pager): Move keymap initialization elsewhere.

Fixes: debbugs:11957
11 years ago* configure.ac (_FORTIFY_SOURCE): Define only when optimizing.
Paul Eggert [Sat, 1 Sep 2012 18:54:38 +0000 (11:54 -0700)]
* configure.ac (_FORTIFY_SOURCE): Define only when optimizing.

This ports to glibc 2.15 or later, when configured with
--enable-gcc-warnings.  See Eric Blake in
<http://lists.gnu.org/archive/html/bug-grep/2012-09/msg00000.html>.

11 years agoRewrite switch-to-prev-/next-buffer and quit-window; add display-buffer-below-selected.
Martin Rudalics [Sat, 1 Sep 2012 16:47:09 +0000 (18:47 +0200)]
Rewrite switch-to-prev-/next-buffer and quit-window; add display-buffer-below-selected.

* window.el (switch-to-prev-buffer): Handle additional values of
BURY-OR-KILL argument.  Don't switch in minibuffer window.
(switch-to-next-buffer): Don't switch in minibuffer window.
(quit-restore-window): New function based on quit-window.
Handle additional values of former KILL argument.
(quit-window): Call quit-restore-window with appropriate
interpretation of KILL argument.
(display-buffer-below-selected): New buffer display action
function.

11 years agoFurther fix for bug #11860 with Arabic display on Windows.
Eli Zaretskii [Sat, 1 Sep 2012 13:54:27 +0000 (16:54 +0300)]
Further fix for bug #11860 with Arabic display on Windows.

 src/w32uniscribe.c (uniscribe_shape): Handle correctly the case of
 more than one grapheme cluster passed to the shaper: compute the
 offset adjustment values separately for each cluster.

11 years agoRemove conflict markers and fix entries for 2012-09-01T06:38:52Z!dancol@dancol.org.
Eli Zaretskii [Sat, 1 Sep 2012 12:23:50 +0000 (15:23 +0300)]
Remove conflict markers and fix entries for 2012-09-01T06:38:52Z!dancol@dancol.org.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 1 Sep 2012 11:17:44 +0000 (07:17 -0400)]
Auto-commit of loaddefs files.

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

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

11 years agoFix last changes related to w32 and Cygwin.
Eli Zaretskii [Sat, 1 Sep 2012 09:29:17 +0000 (12:29 +0300)]
Fix last changes related to w32 and Cygwin.

 src/image.c: Restore mistakenly removed inclusion of w32.h.  Without
 it, GCC doesn't see prototypes of w32_delayed_load, and complains
 about implicit conversions from integer to pointer.

11 years agoPrevent crash if w32 used before it's initialized
Daniel Colascione [Sat, 1 Sep 2012 08:22:10 +0000 (00:22 -0800)]
Prevent crash if w32 used before it's initialized

11 years agoMerge from cygw32 branch
Daniel Colascione [Sat, 1 Sep 2012 08:01:36 +0000 (00:01 -0800)]
Merge from cygw32 branch

11 years agoRefactor window-system configuration
Daniel Colascione [Sat, 1 Sep 2012 06:38:52 +0000 (22:38 -0800)]
Refactor window-system configuration

This change streamlines the window system selection code in
configure.in and moves many common function declarations from
window-specific headers to frame.h.  It introduces a new TERM_HEADER
macro in config.h: we set this macro to the right header to use for
the window system for which we're compiling Emacs and have source
files include it indirectly.  This way, we don't have to teach every
file about every window system.

11 years ago* lisp/minibuffer.el (completion-at-point-functions): Complete docstring.
Stefan Monnier [Sat, 1 Sep 2012 04:28:24 +0000 (00:28 -0400)]
* lisp/minibuffer.el (completion-at-point-functions): Complete docstring.

Fixes: debbugs:12254
11 years ago* sysdep.c (seed_random): Fix typo: HAV_LRAND48 -> HAVE_LRAND48.
Paul Eggert [Sat, 1 Sep 2012 01:13:50 +0000 (18:13 -0700)]
* sysdep.c (seed_random): Fix typo: HAV_LRAND48 -> HAVE_LRAND48.

This fixes a bug on old systems that do not have the 'random' function.

11 years agoBetter seed support for (random).
Paul Eggert [Sat, 1 Sep 2012 01:04:26 +0000 (18:04 -0700)]
Better seed support for (random).

* doc/lispref/numbers.texi (Random Numbers): Document new behavior of
the calls (random) and (random STRING).
* etc/NEWS: Document new behavior of (random), (random "string").
* lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
* lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
* lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
* lisp/play/tetris.el, lisp/play/zone.el:
* lisp/calc/calc-comb.el (math-init-random-base):
* lisp/play/blackbox.el (bb-init-board):
* lisp/play/life.el (life):
* lisp/server.el (server-use-tcp):
* lisp/type-break.el (type-break):
Remove unnecessary call to (random t).
* lisp/net/sasl.el (sasl-unique-id-function):
Change (random t) to (random), now that the latter is more random.
* lisp/play/life.el (life-initialized): Remove no-longer-needed var.
* lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
* lisp/gnus/message.el (message-canlock-generate, message-unique-id):
Change (random t) to (random), now that the latter is more random.
* lisp/org/org-id.el (org-id-uuid):
Change (random t) to (random), now that the latter is more random.
* src/emacs.c (main): Call init_random.
* src/fns.c (Frandom): Set the seed from a string argument, if given.
Remove long-obsolete Gentzel cruft.
* src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
(init_random): New function.

11 years agoFix right and left key remapping issue (bug#12317)
Glenn Morris [Fri, 31 Aug 2012 17:38:50 +0000 (13:38 -0400)]
Fix right and left key remapping issue (bug#12317)

* lisp/emulation/cua-rect.el (cua--init-rectangles):
* lisp/textmodes/picture.el (picture-mode-map):
* lisp/play/blackbox.el (blackbox-mode-map):
Remap right-char and left-char like forward-char and backward-char.

11 years agoFixes: debbugs:12306
Andreas Schwab [Fri, 31 Aug 2012 16:53:48 +0000 (18:53 +0200)]
Fixes: debbugs:12306
* etags.c (consider_token): Always zero-terminate token buffer.

11 years agoConsider frame's buffer predicate in switch-to-prev-/next-buffer.
Martin Rudalics [Fri, 31 Aug 2012 16:51:49 +0000 (18:51 +0200)]
Consider frame's buffer predicate in switch-to-prev-/next-buffer.

* window.el (switch-to-prev-buffer, switch-to-next-buffer):
Consider frame's buffer predicate when choosing the buffer.
(Bug#12081)

11 years ago* eshell/esh-ext.el: Explain, why we suppress the check in
Michael Albinus [Fri, 31 Aug 2012 11:11:06 +0000 (13:11 +0200)]
* eshell/esh-ext.el: Explain, why we suppress the check in
  `eshell-external-command'.

11 years agoRemove mark_ttys function and fix tty_display_info initialization.
Dmitry Antipov [Fri, 31 Aug 2012 10:53:19 +0000 (14:53 +0400)]
Remove mark_ttys function and fix tty_display_info initialization.
* lisp.h (mark_ttys): Remove prototype.
* alloc.c (Fgarbage_collect): Remove redundant (and the only) call
to mark_ttys because all possible values of 'top_frame' slot are
the frames which are reachable from Vframe_list.
* term.c (mark_ttys): Remove.
(init_tty): Safely initialize 'top_frame' slot with Qnil.

11 years ago[Gnus] Miscellaneous fixes by Dave Abrahams
Dave Abrahams [Fri, 31 Aug 2012 04:39:30 +0000 (04:39 +0000)]
[Gnus] Miscellaneous fixes by Dave Abrahams

11 years agoChange struct frame bitfields from unsigned char to unsigned.
Dmitry Antipov [Fri, 31 Aug 2012 04:40:52 +0000 (08:40 +0400)]
Change struct frame bitfields from unsigned char to unsigned.
* frame.h (struct frame): Change type of 'display_preempted',
'visible', 'iconified', 'has_minibuffer', 'wants_modeline',
'auto_raise', 'auto_lower', 'no_split', 'explicit_name',
'window_sizes_changed', 'mouse_moved' and 'pointer_invisible'
bitfields from unsigned char to unsigned.

11 years agoRemove unused member of struct x_output and struct w32_output.
Dmitry Antipov [Fri, 31 Aug 2012 04:14:59 +0000 (08:14 +0400)]
Remove unused member of struct x_output and struct w32_output.
* xterm.h (struct x_output): Remove unused field 'needs_exposure'.
* w32term.h (struct w32_output): Likewise.

11 years ago* lisp/gnus/gnus-notifications.el (gnus-notifications-action): Avoid CL-ism.
Stefan Monnier [Fri, 31 Aug 2012 00:46:01 +0000 (20:46 -0400)]
* lisp/gnus/gnus-notifications.el (gnus-notifications-action): Avoid CL-ism.

11 years agognus-notifications.el: Add defcustom for timeout and actions support
Julien Danjou [Thu, 30 Aug 2012 22:14:27 +0000 (22:14 +0000)]
gnus-notifications.el: Add defcustom for timeout and actions support

11 years agoDelete z binding in special-mode-map.
Richard M. Stallman [Thu, 30 Aug 2012 17:09:51 +0000 (13:09 -0400)]
Delete z binding in special-mode-map.

11 years agoDelete `z' in special-mode-map.
Richard M. Stallman [Thu, 30 Aug 2012 17:09:11 +0000 (13:09 -0400)]
Delete `z' in special-mode-map.

11 years ago* gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
Jan Djärv [Thu, 30 Aug 2012 16:07:44 +0000 (18:07 +0200)]
* gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
does not become zero.

Fixes: debbugs:12234
11 years ago* dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow
Paul Eggert [Thu, 30 Aug 2012 15:07:00 +0000 (08:07 -0700)]
* dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow

for GCC 4.7.1 x86-64.

11 years agoqp.el (quoted-printable-decode-region): Decode multiple bytes at once.
Kenichi Handa [Thu, 30 Aug 2012 12:16:38 +0000 (21:16 +0900)]
qp.el (quoted-printable-decode-region): Decode multiple bytes at once.

11 years agomerge trunk
Kenichi Handa [Thu, 30 Aug 2012 12:07:42 +0000 (21:07 +0900)]
merge trunk

11 years agoExtract "^[wW]arning" into a new var flymake-warning-re
Leo Liu [Thu, 30 Aug 2012 11:41:40 +0000 (19:41 +0800)]
Extract "^[wW]arning" into a new var flymake-warning-re

11 years ago* progmodes/compile.el (compilation-always-kill): Doc fix.
Andreas Schwab [Thu, 30 Aug 2012 08:22:24 +0000 (10:22 +0200)]
* progmodes/compile.el (compilation-always-kill): Doc fix.

11 years agoImprove obsolescence message of display-buffer-reuse-frames.
Chong Yidong [Thu, 30 Aug 2012 03:45:51 +0000 (11:45 +0800)]
Improve obsolescence message of display-buffer-reuse-frames.

* lisp/window.el (display-buffer-reuse-frames): Make the obsolescence
message more informative.

11 years ago* lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297)
Glenn Morris [Thu, 30 Aug 2012 01:44:11 +0000 (21:44 -0400)]
* lisp/paren.el (show-paren-delay): Add a :set function.  Doc fix.  (Bug#12297)