* lisp/register.el (register-preview-default): New function,
split from register-preview.
(register-preview-function): Rename from register-preview-functions,
make it not a hook.
(register-preview): Use register-preview-function.
(register-read-with-preview): Error on non-character event.
Dmitry Gutov [Sat, 1 Feb 2014 17:06:08 +0000 (19:06 +0200)]
Fix bug#16610
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): For built-ins
that require arguments, check that they're followed by something that
looks like argument.
Dmitry Gutov [Sat, 1 Feb 2014 14:54:58 +0000 (16:54 +0200)]
Fix bug#16609
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Check for
`:' before binary operators. Don't check for `:'
before `[' and `(', or their syntax status. A percent literal
can't end with either.
Eli Zaretskii [Sat, 1 Feb 2014 11:53:10 +0000 (13:53 +0200)]
Fix bug #16448 with non-ASCII error messages in batch mode.
src/print.c (Fexternal_debugging_output): If the argument character
is non-ASCII, encode it with the current locale's encoding before
writing the result to the terminal.
Dmitry Gutov [Fri, 31 Jan 2014 17:13:49 +0000 (19:13 +0200)]
Implement user option ruby-align-chained-calls
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): New option.
(ruby-smie-grammar): Make "." right-associative. Make its priority
lower than the ternary and all binary operators.
(ruby-smie-rules): Indent "(" relative to the first non-"."
parent, or the first "." parent at indentation. Use
`ruby-align-chained-calls' for indentation of "." tokens.
* test/automated/ruby-mode-tests.el (ruby-align-chained-calls):
New test.
Darren Hoo [Fri, 31 Jan 2014 01:58:51 +0000 (20:58 -0500)]
Fix for fancy-splash image inconsistency
* lisp/startup.el (fancy-splash-image-file): New function,
split from fancy-splash-head.
(fancy-splash-head, use-fancy-splash-screens-p): Use it,
so that we are both using the same image.
Gnus developers [Fri, 31 Jan 2014 01:56:00 +0000 (01:56 +0000)]
Misc bugfixes made in Gnus master
2014-01-31 Alex Schroeder <alex@gnu.org> (tiny change)
* gnus-tut.txt (Message-ID): Typo fix (bug#15556).
2014-01-31 Dave Abrahams <dave@boostpro.com>
* gnus-salt.el (gnus-tree-highlight-article): Don't move point around
in the summary buffer (bug#13769).
2014-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-setup-buffer): Refresh the summary buffer
name if we're using a single article buffer. Otherwise, it may point
to a killed buffer (bug#13756).
2014-01-30 Lars Ingebrigtsen <larsi@gnus.org>
* nnmail.el (nnmail-split-it): Instead of redoing the search to restore
the match data, just save and restore it explictly (bug#12375).
* gnus-sum.el (gnus-summary-read-group-1): Initialize the spam code if
that's needed.
* spam.el (spam-initialize): Allow calling repeatedly, but only run the
the code once (bug#9069).
Eli Zaretskii [Wed, 29 Jan 2014 17:52:16 +0000 (19:52 +0200)]
Fix bug #16576 with PRINTCHARFUN that conses output a lot.
src/print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE, not
STRING_CHAR_AND_LENGTH, so that if the string is relocated by GC,
we still use correct addresses.
Glenn Morris [Wed, 29 Jan 2014 08:31:50 +0000 (00:31 -0800)]
* lisp/hippie-exp.el: Header comment changes.
Remove pointless+wrong "last change" header.
Set Maintainer to FSF, since original author has made no changes in 16+ years.
Martin Rudalics [Tue, 28 Jan 2014 09:45:37 +0000 (10:45 +0100)]
Fix Fwindow_text_pixel_size and fit-frame-to-buffer.
* xdisp.c (last_max_ascent): Re-remove after erroneously
reintroducing it on 2013-11-30 and abolishing Dmitry's removal
from 2013-03-29.
(move_it_to): Re-remove reference to last_max_ascent.
(Fwindow_text_pixel_size): Add iterator's max_ascent and
max_descent here instead of calling line_bottom_y. Fix
doc-string.
* window.el (fit-frame-to-buffer): Fix calculations for margins and
height constraints.
Dmitry Antipov [Tue, 28 Jan 2014 05:55:06 +0000 (09:55 +0400)]
* terminal.c (initial_free_frame_resources): New function.
(init_initial_terminal): Install new hook to free face cache
on initial frame and avoid memory leak. For details, see
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01974.html>.
Glenn Morris [Mon, 27 Jan 2014 19:56:13 +0000 (14:56 -0500)]
* etc/NEWS: Small calc edits.
In general, it is not necessary for NEWS to repeat information from an
option's doc-string. All NEWS really has to do is advertise that the
option exists.
Michael Albinus [Mon, 27 Jan 2014 19:10:02 +0000 (20:10 +0100)]
* automated/file-notify-tests.el (file-notify--deftest-remote):
Do not skip when the local test has failed. They are unrelated.
(file-notify--wait-for-events): Use `sit-for'. Let-bind
`noninteractive' to nil, otherwise `sit-for' could be degraded to
`sleep-for'.
(file-notify-test02-events): Check for `file-remote-p' instead of
`file-notify--test-remote-enabled'.
Glenn Morris [Sun, 26 Jan 2014 03:39:34 +0000 (19:39 -0800)]
Doc updates for opascal.el
* lisp/progmodes/opascal.el (opascal-tab-always-indents, opascal-tab):
Doc fix. Make obsolete.
(opascal-mode): No longer mention opascal-tab-always-indents in doc.
Fabrice Popineau [Sat, 25 Jan 2014 13:04:48 +0000 (15:04 +0200)]
Fix bug #16517 with display change on MS-Windows while in full-screen mode.
src/w32term.c (w32_read_socket): When the WM_DISPLAYCHANGE message
arrives, call x_check_fullscreen, in case the new display has a
different resolution.
Eli Zaretskii [Sat, 25 Jan 2014 08:25:51 +0000 (10:25 +0200)]
Fix bug #16479 with client connections while TTY menu is open.
src/term.c (read_menu_input): If the selected frame changes, exit
the menu.
(tty_menu_show): If the selected frame changes while we displayed
a menu, throw to top level.