Dmitry Antipov [Fri, 15 Feb 2013 12:26:42 +0000 (16:26 +0400)]
* composite.c (fill_gstring_header): Remove useless prototype.
Break long line.
* lisp.h (message_dolog, compile_pattern): Adjust prototype.
* print.c (PRINTDECLARE, print_object):
* search.c (compile_pattern, fast_looking_at, search_buffer):
(simple_search, boyer_moore, Freplace_match):
* xdisp.c (c_string_pos, number_of_chars, message_dolog):
(get_overlay_arrow_glyph_row, display_mode_element):
(decode_mode_spec_coding, message3):
* xfaces.c (face_at_string_position): Use bool for booleans.
Adjust comments.
Glenn Morris [Fri, 15 Feb 2013 11:17:38 +0000 (06:17 -0500)]
Auto-commit of generated files.
Paul Eggert [Fri, 15 Feb 2013 06:35:54 +0000 (22:35 -0800)]
Merge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.de
Glenn Morris [Fri, 15 Feb 2013 01:30:11 +0000 (20:30 -0500)]
* lisp/play/fortune.el (fortune-compile): Simplify and fix previous change.
Since file-newer-than-p returns non-nil if FILE2 does not exist,
the actual fix for bug#5338 is just a one-liner. But there is no test
case or explanation of what the issue actually is in bug#5338, so one
has to wonder if the initial (file-exists-p fortune-dat) test was
there for a reason...
Paul Eggert [Thu, 14 Feb 2013 22:08:38 +0000 (14:08 -0800)]
Backport GCPRO fix from trunk.
The bug was reported for AIX before today's changes.
I reproduced the problem on Fedora 17 x86-64 when setting
GC_MARK_STACK by hand, and I presume it occurs with default
configurations on HP-UX and Unixware.
Trunk fix on 2013-01-14 by Dmitry Antipov <dmantipov@yandex.ru>:
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
* eval.c (eval_sub): Protect `form' from being GCed before its
car and cdr becomes protected with the backtrace entry.
Fixes: debbugs:13650
Paul Eggert [Thu, 14 Feb 2013 20:05:10 +0000 (12:05 -0800)]
Fix AIX port.
* configure.ac (DATA_START, DATA_SEG_BITS): Set to 0x20000000 on AIX.
(GC_MARK_STACK): Do not set to GC_USE_GCPROS_AS_BEFORE, as that
runs afoul of some other bug in Emacs, and the default value
GC_MAKE_GCPROS_NOOPS has been tested and works.
* src/lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
Fix bug introduced in 2012-07-27 change. DATA_SEG_BITS, if set,
was #undeffed earlier, so it cannot be used as a macro here.
Use the constant and not the macro. Tested on AIX.
* src/unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
file. They're almost surely OK but we're just before a release so
we should avoid changes unless they're clearly needed. Instead,
make the following minor change:
(ADDR_CORRECT): New macro.
Fixes: debbugs:13650
Jan Djärv [Thu, 14 Feb 2013 19:01:12 +0000 (20:01 +0100)]
* gtkutil.c (tb_size_cb): New function.
(xg_create_tool_bar): Connect size-allocate to tb_size_cb.
Fixes: debbugs:13512
Glenn Morris [Thu, 14 Feb 2013 17:16:47 +0000 (09:16 -0800)]
* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf.
Stefan Monnier [Thu, 14 Feb 2013 15:53:46 +0000 (10:53 -0500)]
* lisp/net/goto-addr.el (goto-address-fontify): Add start and end args.
(goto-address-fontify-region): Use them instead of narrowing, so
syntax-ppss has access to the whole buffer.
Stefan Monnier [Thu, 14 Feb 2013 14:40:54 +0000 (09:40 -0500)]
* src/keyboard.c (active_maps): Fcurrent_active_maps expects a position, not
an event.
Michael Albinus [Thu, 14 Feb 2013 13:32:04 +0000 (14:32 +0100)]
* net/tramp.el (tramp-debug-message): Add
`tramp-condition-case-unless-debug'.
(tramp-debug-on-error): New defvar.
(tramp-condition-case-unless-debug): New defun.
(tramp-file-name-handler): Use it.
Michael Albinus [Thu, 14 Feb 2013 12:36:44 +0000 (13:36 +0100)]
* NEWS: Tramp methods "scpc" and "rsyncc" are discontinued.
Juri Linkov [Thu, 14 Feb 2013 09:15:55 +0000 (11:15 +0200)]
* lisp/info.el (Info-isearch-filter): Treat non-nil values of
`search-invisible' including its default value `open'
like the value `t' to match hidden text.
Fixes: debbugs:13402
Glenn Morris [Thu, 14 Feb 2013 08:05:26 +0000 (00:05 -0800)]
* help-fns.el (find-lisp-object-file-name): Give special treatment
to all ~/.foo.elc files, not just ~/.emacs.
Fixes: debbugs:9007
David Biesack [Thu, 14 Feb 2013 07:50:57 +0000 (23:50 -0800)]
* net/quickurl.el (quickurl-save-urls): Ensure quickurl-urls is not truncated
on printing.
Fixes: debbugs:9276
Dmitry Gutov [Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)]
(ruby-add-log-current-method): Improve performance at the expense
of accuracy. `ruby-block-contains-point' is relatively slow, so
only use it for method and singleton class blocks.
* test/automated/ruby-mode-tests.el
(ruby-add-log-current-method-after-inner-class): Lower
expectations: move point inside a method, initially.
Dmitry Gutov [Thu, 14 Feb 2013 03:33:55 +0000 (07:33 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-parse-partial): Don't increase
depth for unfinished percent literal. Not using it in the caller.
(ruby-move-to-block): Jump over multiline literals of all types,
ignoring code-looking contents inside them.
* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): Add depth-affecting
bits inside the examples.
(ruby-move-to-block-skips-heredoc): New test.
Glenn Morris [Thu, 14 Feb 2013 01:24:03 +0000 (20:24 -0500)]
* lispref/modes.texi (Basic Major Modes): 'z' no longer bound in special-mode.
Katsumi Yamaoka [Thu, 14 Feb 2013 00:44:38 +0000 (00:44 +0000)]
gnus-util.el (gnus-define-keys): Convert [?\S-\ ] to [(shift space)] for XEmacs
Fabián Ezequiel Gallina [Thu, 14 Feb 2013 00:42:11 +0000 (21:42 -0300)]
* progmodes/python.el: Explain how to restore "cc-mode"-like
forward-sexp movement in header documentation.
(python-nav--forward-sexp): Behave like emacs-lisp-mode in
comments and strings (GH bug 114).
Fixes: debbugs:13642
Fabián Ezequiel Gallina [Wed, 13 Feb 2013 23:09:12 +0000 (20:09 -0300)]
Push ChangeLog entry for previous commit.
Fabián Ezequiel Gallina [Wed, 13 Feb 2013 23:07:59 +0000 (20:07 -0300)]
* progmodes/python.el (python-info-current-defun): Fix current
defun detection.
Fixes: debbugs:13618
Stefan Monnier [Wed, 13 Feb 2013 19:43:06 +0000 (14:43 -0500)]
* src/keyboard.c (syms_of_keyboard): Further tweaks of docstring.
Eli Zaretskii [Wed, 13 Feb 2013 17:04:30 +0000 (19:04 +0200)]
More robust creation of a subprocess, attempt to solve bug #13546.
src/w32proc.c (new_child): If no vacant slots are found in
child_procs[], make another pass looking for slots whose process
has exited or died.
Eli Zaretskii [Wed, 13 Feb 2013 17:00:26 +0000 (19:00 +0200)]
Cleanup related to bug #13546 with subprocesses on MS-Windows.
src/w32.c (sys_pipe): When failing due to file descriptors above
MAXDESC, set errno to EMFILE.
(_sys_read_ahead): Update cp->status when failing to read serial
communications input, so that the status doesn't stay at
STATUS_READ_IN_PROGRESS.
Michael Albinus [Wed, 13 Feb 2013 16:23:15 +0000 (17:23 +0100)]
Use ControlMaster where applicable. (Bug#13677)
* net/tramp.el (tramp-ssh-controlmaster-template): New defvar,
replacing `tramp-detect-ssh-controlmaster'.
(tramp-default-method): Use it.
* net/tramp-sh.el (tramp-methods) [scp, scp1, scp2, scpx, sftp]:
[rsync, ssh, ssh1, ssh2, sshx]: Add ControlPath and ControlMaster
arguments.
[scpc, rsyncc]: Remove methods.
(top): Remove completion functions for "scpc", "rsyncc", "ssh1_old"
and "ssh2_old".
(tramp-do-copy-or-rename-file-out-of-band): Change trace level.
(tramp-maybe-open-connection): Reuse tmpfile for ControlPath.
Stefan Monnier [Wed, 13 Feb 2013 16:02:35 +0000 (11:02 -0500)]
* lisp/emacs-lisp/package.el (package--initialized): Move before first use.
Jambunathan K [Wed, 13 Feb 2013 15:13:22 +0000 (10:13 -0500)]
* lisp/icomplete.el (icomplete-hide-common-prefix): New user option.
(icomplete-first-match): New face.
(icomplete-completions): Correct handling of "complete but not unique".
Fixes: debbugs:12638
YE Qianchuan [Wed, 13 Feb 2013 14:54:59 +0000 (09:54 -0500)]
* lisp/descr-text.el (describe-char): Display the script.
Fixes: debbugs:13698
Stefan Monnier [Wed, 13 Feb 2013 13:40:00 +0000 (08:40 -0500)]
* lisp/tmm.el: Use lexical-binding and current-active-maps.
(tmm-menubar): Use map-keymap and pcase.
(tmm--completion-table): New function.
(tmm-prompt): Use it to fix the menu order.
(tmm-get-keybind): Use current-active-maps.
Christopher Schmidt [Wed, 13 Feb 2013 09:42:31 +0000 (10:42 +0100)]
Add dired-hide-details-mode. (Bug#6799)
* locate.el (locate-mode): Set parent mode property to dired-mode.
* find-dired.el (find-dired): Call dired-insert-set-properties on
initial information line. Set process mark on end of buffer.
(find-dired-sentinel):
Call dired-insert-set-properties on summary.
* dired.el (dired-hide-details-hide-symlink-targets)
(dired-hide-details-hide-information-lines): New options.
(dired-insert-directory):
Set properties after final treatment of output.
(dired-insert-set-properties):
Set dired-hide-details-* properties.
(dired-mode-map): Bind dired-hide-details-mode.
(dired-mode): Set buffer-invisibility-spec to a list.
(dired-next-line): Skip hidden lines.
(dired-previous-line): Use dired-next-line.
(dired-hide-details-mode): New minor mode.
(dired-hide-details-update-invisibility-spec): New function.
Glenn Morris [Wed, 13 Feb 2013 08:50:44 +0000 (00:50 -0800)]
Make yow.el obsolete
* lisp/play/yow.el: Move to obsolete/.
* doc/emacs/ack.texi (Acknowledgments): Don't mention yow any more.
* doc/misc/message.texi (News Headers): Don't mention yow any more.
* etc/NEWS: Mention this.
Fixes: debbugs:9384
Juri Linkov [Wed, 13 Feb 2013 08:41:56 +0000 (10:41 +0200)]
* vc/ediff-util.el (ediff-recenter): Use `select-frame-set-input-focus'
to select `ediff-control-frame' and set input focus correctly on Xfce.
Fixes: debbugs:12218
Juri Linkov [Wed, 13 Feb 2013 08:28:47 +0000 (10:28 +0200)]
Add more keymaps where S-SPC scrolls in the opposite direction to SPC.
* lisp/image-mode.el (image-mode-map):
* lisp/doc-view.el (doc-view-mode-map):
* lisp/vc/ediff-util.el (ediff-setup-keymap):
Make S-SPC scroll in the opposite sense to SPC.
* lisp/gnus/gnus-art.el (gnus-article-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-article-map):
Make S-SPC scroll in the opposite sense to SPC. (Bug#2145)
Dmitry Gutov [Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
performance. Instead of recalculating indentation fully for each
line, sum up indentation depth based only on visited lines.
(ruby-parse-partial): Increase the depth after "do" even when END
is right after it.
(ruby-parse-partial): When END is in the middle of a percent
literal, increase the depth if the delimiter chars belong to the
paren syntax class.
* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): New test.
Kirill A. Korinskiy [Wed, 13 Feb 2013 08:10:41 +0000 (00:10 -0800)]
fortune-compile tiny change
* lisp/play/fortune.el (fortune-compile):
Also make the compiled file if it does not exist at all, not just if it is old.
Fixes: debbugs:5338
Chong Yidong [Wed, 13 Feb 2013 07:24:11 +0000 (15:24 +0800)]
* xml.el (xml-parse-string): Fix typo in handling of bad character references.
Dmitry Antipov [Wed, 13 Feb 2013 07:14:38 +0000 (11:14 +0400)]
* font.c (font_range): Add pos_byte argument. Adjust comment
and break long line.
* font.h (font_range): Adjust prototype.
* composite.c (autocmp_chars): Pass byte position to font_range.
Break long line. Remove useless prototype and format comment.
Glenn Morris [Wed, 13 Feb 2013 05:00:45 +0000 (21:00 -0800)]
* emacs-lisp/package.el (package-menu-execute): Doc fix.
Yves Baumes [Wed, 13 Feb 2013 04:59:06 +0000 (20:59 -0800)]
* package.el (package-menu-execute): Add optional noquery argument (tiny change)
Fixes: debbugs:13625
Glenn Morris [Wed, 13 Feb 2013 04:31:09 +0000 (20:31 -0800)]
Merge from emacs-24; up to 2012-12-17T11:17:34Z!rgm@gnu.org
Glenn Morris [Wed, 13 Feb 2013 04:26:43 +0000 (20:26 -0800)]
* src/keyboard.c (input-decode-map, key-translation-map): Doc fixes.
Aidan Gauland [Wed, 13 Feb 2013 04:02:11 +0000 (23:02 -0500)]
* lisp/erc/erc-match.el (erc-match-message): Fix last commit.
Glenn Morris [Wed, 13 Feb 2013 02:25:02 +0000 (21:25 -0500)]
* doc/lispref/objects.texi (Char-Table Type): Add footnote about #^^.
Glenn Morris [Wed, 13 Feb 2013 02:20:52 +0000 (21:20 -0500)]
* doc/lispref/modes.texi (Minor Mode Conventions): Fix typo.
Paul Eggert [Wed, 13 Feb 2013 02:10:36 +0000 (18:10 -0800)]
Minor getenv-related fixes.
* callproc.c (Fcall_process_region) [!DOS_NT]:
Avoid unnecessary duplicate call to getenv.
* callproc.c (init_callproc):
* dispnew.c (init_display):
* sysdep.c (sys_subshell):
Omit unnecessary cast of getenv or egetenv.
Juanma Barranquero [Wed, 13 Feb 2013 00:53:07 +0000 (01:53 +0100)]
lisp/progmodes/js.el: Silence byte-compiler warning.
Juanma Barranquero [Wed, 13 Feb 2013 00:52:04 +0000 (01:52 +0100)]
nt/config.nt: Sync with autogen/config.in.
(GC_MARK_STACK): Remove.
(GNULIB_FDOPENDIR, HAVE_DECL_FDOPENDIR, HAVE_DECL_MEMRCHR)
(HAVE_DIRENT_H, HAVE_FDOPENDIR, HAVE_FSTATAT, HAVE_MEMRCHR)
(HAVE_WORKING_FSTATAT_ZERO_FLAG, _NETBSD_SOURCE): New macros.
Juanma Barranquero [Wed, 13 Feb 2013 00:50:38 +0000 (01:50 +0100)]
src/makefile.w32-in: Update dependencies.
Paul Eggert [Wed, 13 Feb 2013 00:42:56 +0000 (16:42 -0800)]
* cmdargs.texi (General Variables):
Fix TMPDIR documentation to match the code's behavior.
Paul Eggert [Tue, 12 Feb 2013 18:43:11 +0000 (10:43 -0800)]
Improve AIX port some more.
With this, it should be as good as it was in 23.3, though it's
still pretty bad: the dumped emacs does not run. See Mark Fleishman in
http://lists.gnu.org/archive/html/help-gnu-emacs/2011-04/msg00287.html
* unexaix.c (start_of_text): Remove.
(_data, _text): Declare as char[], not int, as AIX manual suggests.
(bias, lnnoptr, text_scnptr, data_scnptr, load_scnptr)
(orig_load_scnptr, orig_data_scnptr):
Now off_t, not long, since they are file offsets.
(make_hdr): Use _data, not start_of_data ().
This is the key part of the fix.
(make_hdr, unrelocate_symbols): Use off_t for file offsets.
(unrelocate_symbols): Cast pointers to intptr_t, not to ulong.
Fixes: debbugs:13650
Paul Eggert [Tue, 12 Feb 2013 18:33:42 +0000 (10:33 -0800)]
* pre-crt0.c (data_start): Initialize to 1.
This ports to compilers that optimize the external declaration
'int x = 0;' as if it were 'int x;' to shrink the executable.
Paul Eggert [Tue, 12 Feb 2013 17:36:54 +0000 (09:36 -0800)]
In doc, use standard American English style for e.g., etc., i.e.
Eli Zaretskii [Tue, 12 Feb 2013 16:43:09 +0000 (18:43 +0200)]
Fix cursor positioning near scroll margin at top of window.
src/xdisp.c (try_scrolling): Scroll text up more if point is too close
to ZV and inside the scroll margin. This makes sure point is moved
outside the scroll margin in these cases.
Eli Zaretskii [Tue, 12 Feb 2013 16:36:55 +0000 (18:36 +0200)]
Minor additional fix in the wake of bugs #13623 and 13626.
src/xdisp.c (redisplay_internal): Don't set w->region_showing to the
marker's position.
(display_line): Set w->region_showing to the value of
it->region_beg_charpos, not to -1. This fixes redisplay
optimization when cursor is moved up after M->.
src/window.h (struct window): region_showing can no longer be negative.
Michael Albinus [Tue, 12 Feb 2013 14:35:10 +0000 (15:35 +0100)]
* net/tramp-adb.el (tramp-adb-handle-start-file-process): Rewrite.
* net/tramp-compat.el (top): Declare `remote-file-name-inhibit-cache'
only if it doesn't exist.
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Set
process marker.
Tassilo Horn [Tue, 12 Feb 2013 11:53:34 +0000 (12:53 +0100)]
Improve previous patch to allow for multiple simultaneous ODF->PDF
conversions.
Glenn Morris [Tue, 12 Feb 2013 11:17:35 +0000 (06:17 -0500)]
Auto-commit of generated files.
Tassilo Horn [Tue, 12 Feb 2013 10:52:47 +0000 (11:52 +0100)]
* doc-view.el (doc-view-odf->pdf-converter-soffice): Use separate
UserInstallation when calling soffice to work around LibreOffice
bug 37531.
Glenn Morris [Tue, 12 Feb 2013 08:36:09 +0000 (00:36 -0800)]
* files.el (basic-save-buffer): Offer to create a non-existing directory.
Fixes: debbugs:3016
Glenn Morris [Tue, 12 Feb 2013 07:38:54 +0000 (23:38 -0800)]
ChangeLog fixes
Glenn Morris [Tue, 12 Feb 2013 04:46:18 +0000 (20:46 -0800)]
Make S-SPC scroll in the opposite direction to SPC
* lisp/calc/calc-graph.el (calc-graph-show-dumb):
* lisp/calendar/calendar.el (calendar-mode-map):
* lisp/cus-edit.el (custom-mode-map):
* lisp/ehelp.el (electric-help-map):
* lisp/emulation/vip.el (vip-mode-map):
* lisp/epa.el (epa-key-list-mode-map):
* lisp/info.el (Info-mode-map):
* lisp/mail/rmail.el (rmail-mode-map):
* lisp/mail/rmailsum.el (rmail-summary-mode-map):
* lisp/man.el (Man-mode-map):
* lisp/net/newst-plainview.el (newsticker-mode-map):
* lisp/progmodes/cpp.el (cpp-edit-mode-map):
* lisp/progmodes/grep.el (grep-mode-map):
* lisp/progmodes/idlw-help.el (idlwave-help-mode-map):
* lisp/simple.el (special-mode-map):
* lisp/startup.el (splash-screen-keymap):
* lisp/view.el (view-mode-map):
Make S-SPC scroll in the opposite sense to SPC.
Fixes: debbugs:2145
Eli Zaretskii [Tue, 12 Feb 2013 03:52:04 +0000 (05:52 +0200)]
MS-Windows followup for 2013-02-11T23:37:18Z!eggert@cs.ucla.edu.
lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/memrchr.$(O).
($(BLD)/memrchr.$(O)): New dependency.
nt/inc/ms-w32.h: Add prototype for memrchr.
Glenn Morris [Tue, 12 Feb 2013 00:51:24 +0000 (19:51 -0500)]
Tweak quoting in earlier configure.ac emacs_config_options change
Glenn Morris [Tue, 12 Feb 2013 00:33:18 +0000 (19:33 -0500)]
keymaps.texi small fix for bug#13684
* doc/lispref/keymaps.texi (Scanning Keymaps):
Remove obsolete sentence about meta characters; this changed in 22.1.
Paul Eggert [Mon, 11 Feb 2013 23:37:18 +0000 (15:37 -0800)]
Tune by using memchr and memrchr.
* .bzrignore: Add string.h.
* admin/merge-gnulib (GNULIB_MODULES): Add memrchr.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/memrchr.c, lib/string.in.h, m4/memrchr.m4, m4/string_h.m4:
New files, from gnulib.
* src/doc.c (Fsnarf_documentation):
* src/fileio.c (Fsubstitute_in_file_name):
* src/search.c (find_newline, scan_newline):
* src/xdisp.c (pos_visible_p, display_count_lines):
Use memchr and memrchr rather than scanning byte-by-byte.
* src/search.c (find_newline): Rename from scan_buffer.
Omit first arg TARGET, as it's always '\n'. All callers changed.
Paul Eggert [Mon, 11 Feb 2013 23:15:46 +0000 (15:15 -0800)]
Merge from gnulib.
Stefan Monnier [Mon, 11 Feb 2013 22:53:36 +0000 (17:53 -0500)]
Aidan Gauland <aidalgol@no8wireless.co.nz>
Fixes: debbugs:13689
* lisp/erc/erc-match.el (erc-match-message): Don't truncate action messages.
Paul Eggert [Mon, 11 Feb 2013 20:32:54 +0000 (12:32 -0800)]
Improve AIX port.
This doesn't fix the bug, but it makes progress: Emacs builds now.
* unexaix.c: Include inttypes.h, stdarg.h.
(report_error, report_error_1): Mark as _Noreturn.
(report_error): Don't report the wrong errno.
(report_error_1): Now varargs. All callers changed.
(make_hdr): Use uintptr_t, not unsigned, when converting pointers
to unsigned. Don't use ADDR_CORRECT, as it no longer exists.
(write_ptr): Use %p to print address rather than %lx and a cast
to unsigned long. Grow buffer a bit, to be safer.
Fixes: debbugs:13650
Paul Eggert [Mon, 11 Feb 2013 19:42:04 +0000 (11:42 -0800)]
Clean up read_key_sequence a tiny bit more.
* keyboard.c (read_char_x_menu_prompt) [HAVE_MENUS]:
(read_key_sequence): Remove unused locals.
Elias Pipping [Mon, 11 Feb 2013 19:29:40 +0000 (14:29 -0500)]
* lisp/doc-view.el (doc-view-current-cache-dir): Beware % escapes.
Fixes: debbugs:13679
Stefan Monnier [Mon, 11 Feb 2013 19:21:23 +0000 (14:21 -0500)]
Clean up read_key_sequence a bit; reread active keymaps after first event.
* src/keyboard.c (read_char, read_char_x_menu_prompt)
(read_char_minibuf_menu_prompt):
Replace nmaps+maps with a single `map' arg.
(follow_key): Operate on a single map.
(active_maps): New function.
(test_undefined): Also return true for nil bindings.
(read_key_sequence): Use active_maps to replace the arrays of keymaps with
a single (composed) keymap. Remember `first_event' to choose the right
set of active keymaps. Recompute the set of keymaps after receiving
the first event. Remove GOBBLE_FIRST_EVENT.
(syms_of_keyboard): Remove inhibit_local_menu_bar_menus.
* src/keyboard.h (read_char): Update declaration.
* src/lread.c (read_filtered_event): Adjust call to read_char.
* lisp/cus-start.el (all): Remove inhibit-local-menu-bar-menus.
Eli Zaretskii [Mon, 11 Feb 2013 17:32:32 +0000 (19:32 +0200)]
Fix previous commit for bug #13675.
src/xdisp.c (move_it_vertically_backward, move_it_by_lines): Don't
use the limitation on backwards movement when lines are truncated
in the window.
Eli Zaretskii [Mon, 11 Feb 2013 17:27:48 +0000 (19:27 +0200)]
Fix rare aborts in bidi.c.
src/bidi.c (bidi_resolve_neutral): After finding the next
non-neutral character, accept NEUTRAL_ON type as well, because
directional control characters, such as LRE and RLE, have their
type converted to that by bidi_resolve_weak. This avoids aborts
when LRE/RLE follows a run of neutrals.
(bidi_move_to_visually_next): Assert that return value of
bidi_peek_at_next_level is non-negative. Negative values will
cause an infloop.
Glenn Morris [Mon, 11 Feb 2013 11:17:34 +0000 (06:17 -0500)]
Auto-commit of generated files.
Michael Albinus [Mon, 11 Feb 2013 10:42:58 +0000 (11:42 +0100)]
* NEWS: Add autorevert changes.
Dmitry Antipov [Mon, 11 Feb 2013 10:21:52 +0000 (14:21 +0400)]
* marker.c (set_marker_internal): If desired position is passed
as a marker, avoid call to buf_charpos_to_bytepos.
* window.c (Fset_window_point): Omit redundant type checking.
(Fset_window_start): Likewise. Format comment.
(window_scroll_pixel_based): Use set_marker_restricted_both
with character and byte positions obtained from an iterator.
(Fset_window_configuration): Use set_marker_restricted_both.
* xdisp.c (message_dolog): Likewise.
Glenn Morris [Mon, 11 Feb 2013 08:28:08 +0000 (00:28 -0800)]
Check whether diff supports --label before using it
* lisp/vc/diff.el (diff-use-labels): New variable.
(diff-no-select): Use --label rather than -L, and first
check that it is supported.
Fixes: debbugs:11067
Glenn Morris [Mon, 11 Feb 2013 01:50:45 +0000 (17:50 -0800)]
Add `enable-dir-local-variables'
* lisp/files.el (enable-dir-local-variables): New variable.
(hack-dir-local-variables): Respect enable-dir-local-variables.
* lisp/tutorial.el (help-with-tutorial): Ignore directory-local variables.
Fixes: debbugs:11127
Glenn Morris [Mon, 11 Feb 2013 01:46:52 +0000 (17:46 -0800)]
NEWS copyedit (consistent capitalization for top-level headings)
Glenn Morris [Mon, 11 Feb 2013 01:44:39 +0000 (17:44 -0800)]
NEWS copyedits
Glenn Morris [Mon, 11 Feb 2013 01:21:21 +0000 (17:21 -0800)]
* doc/lispref/objects.texi (Char-Table Type): Add cindex.
Glenn Morris [Mon, 11 Feb 2013 01:16:30 +0000 (17:16 -0800)]
* doc/lispref/keymaps.texi (Key Binding Commands): Trivial rephrasing.
Glenn Morris [Mon, 11 Feb 2013 01:07:05 +0000 (17:07 -0800)]
* vc/vc-svn.el (vc-svn-command): Move --non-interactive from here...
(vc-svn-global-switches): ... to here.
Fixes: debbugs:13513
Glenn Morris [Mon, 11 Feb 2013 00:55:26 +0000 (16:55 -0800)]
ChangeLog for previous
Glenn Morris [Mon, 11 Feb 2013 00:54:48 +0000 (16:54 -0800)]
* configure.ac (emacs_config_options): Record some env vars.
Paul Eggert [Mon, 11 Feb 2013 00:35:37 +0000 (16:35 -0800)]
Remove obsolete references to VAX in comments.
Eli Zaretskii [Sun, 10 Feb 2013 16:49:09 +0000 (18:49 +0200)]
Speed up some redisplay operations with very long lines (Bug#13675).
src/xdisp.c (move_it_vertically_backward, move_it_by_lines): When
text lines are longer than window's screen lines, don't move back
too far. This speeds up some redisplay operations.
Dmitry Antipov [Sun, 10 Feb 2013 16:25:33 +0000 (20:25 +0400)]
* syntax.c (scan_sexps_forward): Fix byte position calculation
Bug#13664 (a.k.a Bug#13667) introduced with 2013-02-08 change.
Christopher Schmidt [Sun, 10 Feb 2013 14:18:48 +0000 (15:18 +0100)]
* minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
"foo (bar, default: xxx): " prompts.
Glenn Morris [Sun, 10 Feb 2013 11:19:05 +0000 (06:19 -0500)]
Auto-commit of generated files.
Michael Albinus [Sun, 10 Feb 2013 10:07:09 +0000 (11:07 +0100)]
* net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
if DIR exists and PARENTS is non-nil.
Paul Eggert [Sun, 10 Feb 2013 08:26:56 +0000 (00:26 -0800)]
* fileio.c (Fexpand_file_name): Omit confusing pointer comparison
that was not needed.
Glenn Morris [Sun, 10 Feb 2013 03:37:48 +0000 (19:37 -0800)]
* configure.ac (emacs_config_options): Strip out the (internal) arguments
--no-create and --no-recursion.
Chong Yidong [Sun, 10 Feb 2013 03:08:21 +0000 (11:08 +0800)]
* files.el (basic-save-buffer-1): Don't set buffer-file-coding-system-explicit.
Fixes: debbugs:4533
Glenn Morris [Sun, 10 Feb 2013 01:56:25 +0000 (17:56 -0800)]
Merge from emacs-24; up to 2012-12-15T12:19:04Z!juri@jurta.org
Glenn Morris [Sun, 10 Feb 2013 01:54:16 +0000 (17:54 -0800)]
* doc/emacs/trouble.texi (Checklist): Update bug keybinding.
Glenn Morris [Sun, 10 Feb 2013 01:49:48 +0000 (17:49 -0800)]
ChangeLog attribution fix
Glenn Morris [Sun, 10 Feb 2013 01:32:14 +0000 (17:32 -0800)]
ChangeLog typo fix
Katsumi Yamaoka [Sun, 10 Feb 2013 00:51:34 +0000 (00:51 +0000)]
lisp/gnus/nnir.el ("nnir"): Add 'virtual ability to nnir backend