]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoAllow splat operator before percent literal
Dmitry Gutov [Mon, 7 Mar 2016 02:02:34 +0000 (04:02 +0200)]
Allow splat operator before percent literal

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Allow splat operator before percent literal.

8 years agoDon't apply the return value of goto-char as syntax class
Dmitry Gutov [Mon, 7 Mar 2016 01:19:09 +0000 (03:19 +0200)]
Don't apply the return value of goto-char as syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Don't
apply the return value of goto-char as syntax class.

8 years agoGuard against nested percent literals
Dmitry Gutov [Mon, 7 Mar 2016 00:58:49 +0000 (02:58 +0200)]
Guard against nested percent literals

* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-percent-literal):
Don't check the syntax status.
(ruby-syntax-propertize): Check it here.  And also guard against
being in a larger percent literal.

* test/automated/ruby-mode-tests.el
(ruby-no-nested-percent-literals): New test.

8 years agoRecognize iuwu-mod after an escaped newline
Dmitry Gutov [Sun, 6 Mar 2016 21:18:06 +0000 (23:18 +0200)]
Recognize iuwu-mod after an escaped newline

* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Check if the
newline is escaped.
(ruby-smie-rules): Indent iuwu-mod after an escaped newline
correctly.

8 years agoFix symbolic mode string conversion for s and t
Andreas Schwab [Sun, 6 Mar 2016 23:20:40 +0000 (00:20 +0100)]
Fix symbolic mode string conversion for s and t

* lisp/files.el (file-modes-char-to-right): Fix values for ?s and
?t.
(file-modes-symbolic-to-number): Default to a for ts permissions.

8 years agoUpdate 'ucs-names' database
Eli Zaretskii [Sun, 6 Mar 2016 20:22:53 +0000 (22:22 +0200)]
Update 'ucs-names' database

* lisp/international/mule-cmds.el (ucs-names): Update used and
unused ranges from the latest UnicodeData.txt.

8 years agoImprove doc string of 'shell-command'
Eli Zaretskii [Sun, 6 Mar 2016 17:36:57 +0000 (19:36 +0200)]
Improve doc string of 'shell-command'

* lisp/simple.el (shell-command): Mention that COMMAND is prompted
for.  (Bug#22926)

8 years agoMake the code in movemail_strftime more general
Eli Zaretskii [Sun, 6 Mar 2016 16:27:16 +0000 (18:27 +0200)]
Make the code in movemail_strftime more general

* lib-src/movemail.c (movemail_strftime): Transform the format
string passed by the caller instead of using a separate format
string.

8 years agoSpeed up redisplay of binary files with long series of nulls
Eli Zaretskii [Sun, 6 Mar 2016 16:14:46 +0000 (18:14 +0200)]
Speed up redisplay of binary files with long series of nulls

* src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching
for a character needed for resolving the type of a series of BN
and ET characters, as required by rule W5 of UAX#9, if the results
of the resolution are known in advance, because we are at level
zero, and the previous strong character was L.
(bidi_resolve_neutral): Partially resurrect the optimization for a
long series of control characters in an otherwise strictly L2R
text.
(bidi_level_of_next_char): Don't enter the loop that searches for
a paragraph separator if the current character is already at base
embedding level.  (Bug#22739)

8 years agoRemove the highlighting support for quoting 'like this' inside Lisp docstrings
Dmitry Gutov [Sun, 6 Mar 2016 00:40:49 +0000 (02:40 +0200)]
Remove the highlighting support for quoting 'like this' inside Lisp docstrings

Remove the highlighting support for quoting 'like this' inside
Lisp docstrings.  This part of
c4151ebe15479de4c2e511b068cdf9af6a4576cf seems to have been
unintentional, considering substitute-command-keys gives wrong
output for such usage.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Do not highlight text between two
straight quotes as symbol.

8 years agoRestore leading space in movemail pop output
Paul Eggert [Sat, 5 Mar 2016 19:30:51 +0000 (11:30 -0800)]
Restore leading space in movemail pop output

* lib-src/movemail.c (movemail_strftime) [WINDOWSNT]: New function.
(strftime) [WINDOWSNT]: New macro.
(mbx_delimit_begin): Go back to previous version of this code,
now that there’s a special-purpose WINDOWSNT implementation
that should do the right thing.  That way, the output continues
to use leading space rather than leading zero for day of month.

8 years agoFix bidi-paragraph-direction in Rmail view buffer
Eli Zaretskii [Sat, 5 Mar 2016 12:48:37 +0000 (14:48 +0200)]
Fix bidi-paragraph-direction in Rmail view buffer

* lisp/mail/rmail.el (rmail-show-message-1): Reset
bidi-paragraph-direction to nil before formatting the message for
display.

8 years agoDon't misindent computed property generator methods
Dmitry Gutov [Sat, 5 Mar 2016 12:35:10 +0000 (14:35 +0200)]
Don't misindent computed property generator methods

* lisp/progmodes/js.el (js--looking-at-operator-p):
Don't misindent computed property generator methods
(https://github.com/mooz/js2-mode/issues/317).

8 years agoFix mbox files produced by movemail on MS-Windows
Eli Zaretskii [Sat, 5 Mar 2016 10:57:06 +0000 (12:57 +0200)]
Fix mbox files produced by movemail on MS-Windows

* lib-src/movemail.c (mbx_delimit_begin): Use portable strftime
format specifiers, as at least the MS-Windows version of strftime
doesn't support %e and %T.

8 years agodoc string file descriptor exhaustion fix
Paul Eggert [Sat, 5 Mar 2016 00:29:55 +0000 (16:29 -0800)]
doc string file descriptor exhaustion fix

* src/doc.c (get_doc_string): Move newly-added check to a better
location (Bug#22814).

8 years agoFix Bug#22814
Michael Albinus [Fri, 4 Mar 2016 12:57:43 +0000 (12:57 +0000)]
Fix Bug#22814

* src/doc.c (get_doc_string): Raise an error in case too many
files are open.  (Bug#22814)

8 years agoFix insertion of edited servers in the dribble file
Lars Ingebrigtsen [Fri, 4 Mar 2016 11:52:26 +0000 (11:52 +0000)]
Fix insertion of edited servers in the dribble file

* lisp/gnus/gnus-srvr.el (gnus-server-update-server): Don't
insert explicit newlines, because they're quoted (bug#22903).

Backport:

(cherry picked from commit ca4e30058eba0531f38fff75f14734acffab84ea)

8 years agoFix previous fix of enlarge-/shrink-window
Martin Rudalics [Fri, 4 Mar 2016 07:37:53 +0000 (08:37 +0100)]
Fix previous fix of enlarge-/shrink-window

* lisp/window.el (enlarge-window, shrink-window): Consistently
signal user-error instead of error.  Resize minibuffer window by
delta lines instead of pixels.  When a window cannot be resized,
signal an error only when this function was invoked by a command
in the enlarge-/shrink-window group (this restores the behavior
before the fix of bug#22723 for the non-interactive case).

8 years ago* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic
Artur Malabarba [Thu, 3 Mar 2016 22:03:16 +0000 (19:03 -0300)]
* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic

8 years agoComplete temperature units in calc-convert-temperature
Mark Oteiza [Thu, 3 Mar 2016 17:56:44 +0000 (17:56 +0000)]
Complete temperature units in calc-convert-temperature

* lisp/calc/calc-units.el (calc-convert-temperature): Complete with
temperature units in math-standard-units.

8 years agoMake sure to use case-sensitive search
Dmitry Gutov [Thu, 3 Mar 2016 00:36:27 +0000 (02:36 +0200)]
Make sure to use case-sensitive search

* lisp/progmodes/xref.el (xref-collect-references): Make sure to
use case-sensitive search.

8 years agoPrevent infinite loop on not-well-formed xml. (Bug#16344)
Ulf Jasper [Wed, 2 Mar 2016 18:03:27 +0000 (19:03 +0100)]
Prevent infinite loop on not-well-formed xml. (Bug#16344)

* lisp/xml.el (xml-parse-tag-1): Prevent inifinite loop. (Bug#16344)
* test/automated/xml-parse-tests.el (xml-parse-tests--bad-data): Add
  test cases for Bug#16344.

8 years agoAdd the missing test case for the previous patch
Alan Third [Wed, 2 Mar 2016 17:21:24 +0000 (17:21 +0000)]
Add the missing test case for the previous patch

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years agoUse the correct dabbrev expansion
Alan Third [Wed, 2 Mar 2016 17:20:47 +0000 (17:20 +0000)]
Use the correct dabbrev expansion

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years ago; Auto-commit of loaddefs files. emacs-25.0.92
Nicolas Petton [Wed, 2 Mar 2016 17:03:12 +0000 (18:03 +0100)]
; Auto-commit of loaddefs files.

8 years agoBump version to 25.0.92
Nicolas Petton [Wed, 2 Mar 2016 16:05:22 +0000 (17:05 +0100)]
Bump version to 25.0.92

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.92.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Wed, 2 Mar 2016 16:04:36 +0000 (17:04 +0100)]
* etc/AUTHORS: Update the AUTHORS file

8 years agoauthors.el updates
Nicolas Petton [Wed, 2 Mar 2016 16:03:59 +0000 (17:03 +0100)]
authors.el updates

* admin/authors.el (authors-ignored-files): Addition.

8 years ago; fix changelog entries
Nicolas Petton [Wed, 2 Mar 2016 16:03:21 +0000 (17:03 +0100)]
; fix changelog entries

8 years ago; make change-history-commit
Nicolas Petton [Wed, 2 Mar 2016 12:46:19 +0000 (13:46 +0100)]
; make change-history-commit

8 years agoFix Bug#22859
Michael Albinus [Wed, 2 Mar 2016 10:24:55 +0000 (10:24 +0000)]
Fix Bug#22859

* lisp/filenotify.el (file-notify-callback): Return a `deleted'
event in case of kqueue and file1 is nil.  (Bug#22859)

8 years ago; * src/w32proc.c: Update the commentary to sys_select.
Eli Zaretskii [Tue, 1 Mar 2016 18:18:10 +0000 (20:18 +0200)]
; * src/w32proc.c: Update the commentary to sys_select.

8 years agoFix reordering of bidi text in an isolate inside an override
Eli Zaretskii [Tue, 1 Mar 2016 16:41:04 +0000 (18:41 +0200)]
Fix reordering of bidi text in an isolate inside an override

* src/bidi.c (bidi_resolve_explicit): Override the orig_type value
of FSI with either LRI or RLI, as determined by the first strong
directional character in the isolate.  This prevents failure to
isolate when the FSI...PDI text is inside a directional override.
(Bug#22786)

8 years agoDocument c-guess-basic-syntax in the CC Mode manual.
Alan Mackenzie [Tue, 1 Mar 2016 15:01:46 +0000 (15:01 +0000)]
Document c-guess-basic-syntax in the CC Mode manual.

* doc/misc/cc-mode.texi (Syntactic Analysis): Document the function, adding
pxrefs to Custom Line-Up and Other Indentation.
(Custom Line-Up): Add a note on using c-guess-basic-syntax with a pxref to
Syntactic Analysis.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Mar 2016 12:19:06 +0000 (07:19 -0500)]
; Auto-commit of loaddefs files.

8 years agoFix targets in test/automated/Makefile.in
Michael Albinus [Tue, 1 Mar 2016 09:58:01 +0000 (10:58 +0100)]
Fix targets in test/automated/Makefile.in

* test/automated/Makefile.in: Use $(SELECTOR_DEFAULT) also for
empty target and target all.

8 years ago; * lisp/vc/vc-hooks.el: corrected docstring of face
Oscar Fuentes [Tue, 1 Mar 2016 03:53:03 +0000 (04:53 +0100)]
; * lisp/vc/vc-hooks.el: corrected docstring of face

Do not merge to master

8 years agoComment on last change to define-derived-mode
Leo Liu [Tue, 1 Mar 2016 03:50:11 +0000 (11:50 +0800)]
Comment on last change to define-derived-mode

* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.

8 years agoAllow binding `url-mime-accept-string'
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)]
Allow binding `url-mime-accept-string'

* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).

Backport:

(cherry picked from commit 144bb0cf322b9756d29def3e27a42303e2edce43)

8 years agoAlso allow setting the paragraph direction to nil
Lars Ingebrigtsen [Tue, 1 Mar 2016 00:31:37 +0000 (11:31 +1100)]
Also allow setting the paragraph direction to nil

* lisp/net/eww.el (eww-toggle-paragraph-direction): Also allow
setting the paragraph direction to nil ("auto").

8 years agoMade the new OS X visible bell more visible.
Anders Lindgren [Mon, 29 Feb 2016 20:54:15 +0000 (21:54 +0100)]
Made the new OS X visible bell more visible.

* src/nsterm.m: (EmacsBell:init:) Scaled up the visible bell
  "caution" image five times, as the image in its original size
  was hard to see.

8 years agoUse the correct background color when filling nested <divs>
Lars Ingebrigtsen [Mon, 29 Feb 2016 11:21:11 +0000 (22:21 +1100)]
Use the correct background color when filling nested <divs>

* lisp/net/shr.el (shr-face-background): Return the first
background, because that's the one that's visible (bug#22680).

Backport:

(cherry picked from commit cad0bc70558f9c28c808711c5295dec9fc5ad6e5)

8 years agoMake <div> in <li> not insert extra newlines
Lars Ingebrigtsen [Mon, 29 Feb 2016 07:06:36 +0000 (18:06 +1100)]
Make <div> in <li> not insert extra newlines

* lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert
extra newlines (bug#19587).

Backport:

(cherry picked from commit 379a846b8548dc32a9019ef0a37c02f62cd9bad1)

8 years agoUncomment the next-error-function integration in xref
Dmitry Gutov [Mon, 29 Feb 2016 03:16:41 +0000 (05:16 +0200)]
Uncomment the next-error-function integration in xref

* lisp/progmodes/xref.el (xref--xref-buffer-mode):
Uncomment the next-error-function integration
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20489#110).

8 years agoRemove the word "valid", to avoid ambiguity
Dmitry Gutov [Mon, 29 Feb 2016 02:45:00 +0000 (04:45 +0200)]
Remove the word "valid", to avoid ambiguity

* doc/emacs/maintaining.texi (Identifier Search)
(Looking Up Identifiers): Remove the word "valid" (bug#22692).

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Michael Albinus [Sun, 28 Feb 2016 10:09:12 +0000 (11:09 +0100)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoSet auto-revert-use-notify to nil in global-auto-revert-mode. (Bug#22814)
Michael Albinus [Sun, 28 Feb 2016 09:54:45 +0000 (10:54 +0100)]
Set auto-revert-use-notify to nil in global-auto-revert-mode.  (Bug#22814)

* etc/NEWS:
* etc/PROBLEMS: Mention this.

* lisp/autorevert.el (global-auto-revert-mode): Set
`auto-revert-use-notify' to nil.  (Bug#22814)

8 years ago* etc/TODO: Minor quoting and grammar fixes.
Paul Eggert [Sun, 28 Feb 2016 09:26:52 +0000 (01:26 -0800)]
* etc/TODO: Minor quoting and grammar fixes.

8 years agoFix ModelSim error parsing
Friedrich Beckmann [Sun, 28 Feb 2016 06:04:09 +0000 (17:04 +1100)]
Fix ModelSim error parsing

* lisp/progmodes/vhdl-mode.el (vhdl-compiler-alist): Fix
ModelSim error parsing (bug#5768).

Copyright-paperwork-exempt: yes

8 years agoMake parse-time-string-chars faster
Lars Ingebrigtsen [Sun, 28 Feb 2016 05:09:33 +0000 (15:39 +1030)]
Make parse-time-string-chars faster

* lisp/calendar/parse-time.el (parse-time-string-chars): Clean
up the code (backport:).

8 years agoAdd a eww command to toggle paragraph direction
Lars Ingebrigtsen [Sun, 28 Feb 2016 04:22:56 +0000 (14:52 +1030)]
Add a eww command to toggle paragraph direction

* lisp/net/eww.el (eww-toggle-paragraph-direction): New
command and keystroke.

* doc/misc/eww.texi (Advanced): Mention the `D' command.

8 years ago* nextstep/WISHLIST: Merge into etc/TODO and remove.
Glenn Morris [Sat, 27 Feb 2016 19:05:10 +0000 (11:05 -0800)]
* nextstep/WISHLIST: Merge into etc/TODO and remove.

* etc/TODO: Merge in items from nextstep/WISHLIST.
* nextstep/README: Update for this change.

8 years agoFix char signedness issue in bidi code
Andreas Schwab [Sat, 27 Feb 2016 15:53:03 +0000 (16:53 +0100)]
Fix char signedness issue in bidi code

* src/dispextern.h (struct bidi_t): Change type of resolved_level
and isolate_level to signed char.  (Bug#22830)

8 years ago* lib-src/pop.c (socket_connection): Fix format string.
Andreas Schwab [Sat, 27 Feb 2016 13:19:06 +0000 (14:19 +0100)]
* lib-src/pop.c (socket_connection): Fix format string.

8 years agoAvoid inflooping in thing-at-point-looking-at
Eli Zaretskii [Sat, 27 Feb 2016 11:27:36 +0000 (13:27 +0200)]
Avoid inflooping in thing-at-point-looking-at

* lisp/thingatpt.el (thing-at-point-looking-at): Avoid inflooping
with regular expressions whose matching doesn't move point.
(Bug#22756)
Describe the argument DISTANCE in the doc string.

8 years ago* lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change.
Leo Liu [Sat, 27 Feb 2016 05:48:01 +0000 (13:48 +0800)]
* lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change.

8 years agoetc/PROBLEMS: Mention problems with using file descriptors
Michael Albinus [Fri, 26 Feb 2016 20:00:28 +0000 (21:00 +0100)]
etc/PROBLEMS: Mention problems with using file descriptors

* etc/PROBLEMS: Mention problems with using file descriptors
of kqueue file notification library.

8 years ago* lisp/apropos.el (apropos-variable): Doc fix. (Bug#22813).
Kaushal Modi [Fri, 26 Feb 2016 18:32:12 +0000 (20:32 +0200)]
* lisp/apropos.el (apropos-variable): Doc fix.  (Bug#22813).

8 years agoRemove unneeded workaround in xftfont.c
Eli Zaretskii [Thu, 25 Feb 2016 19:59:57 +0000 (21:59 +0200)]
Remove unneeded workaround in xftfont.c

* src/xftfont.c (xftfont_open): Remove "dirty workaround" for
XftTextExtents8 behavior, as it is no longer needed.  Suggested by
Fangwen Yu <yynyygy@gmail.com>.  (Bug#22383)

8 years ago; * etc/NEWS: Reflect latest changes in saveplace.
Eli Zaretskii [Thu, 25 Feb 2016 19:22:58 +0000 (21:22 +0200)]
; * etc/NEWS: Reflect latest changes in saveplace.

8 years ago* lisp/saveplace.el (save-place-local-mode): New minor mode
Stefan Monnier [Thu, 25 Feb 2016 18:44:43 +0000 (13:44 -0500)]
* lisp/saveplace.el (save-place-local-mode): New minor mode

(toggle-save-place): Define as obsolete alias.
(save-place--setup-hooks): New function.
(save-place-mode): Use it.

8 years agoFix redisplay on a TTY after 'make-frame'
Eli Zaretskii [Thu, 25 Feb 2016 17:57:47 +0000 (19:57 +0200)]
Fix redisplay on a TTY after 'make-frame'

* src/xdisp.c (clear_garbaged_frames): Don't clear/redraw a
garbaged TTY frame if it is not the selected frame.  (Bug#22794)

8 years agoMake double-click-1 work with unbalanced parens in CC Mode. Fixes bug#5560.
Alan Mackenzie [Thu, 25 Feb 2016 09:31:23 +0000 (09:31 +0000)]
Make double-click-1 work with unbalanced parens in CC Mode.  Fixes bug#5560.

* lisp/mouse.el (mouse-start-end): check the syntax of alleged parens with
`syntax-after' to ensure syntax-table text properties are respected.

8 years agoInput method polish-slash should not use keyboard translation
Magnus Henoch [Thu, 25 Feb 2016 05:40:19 +0000 (16:10 +1030)]
Input method polish-slash should not use keyboard translation

* lisp/leim/quail/latin-pre.el ("polish-slash"): Input method
polish-slash should not use keyboard translation (bug#19081).

8 years agoFix an assertion
Chris Feng [Thu, 25 Feb 2016 01:34:55 +0000 (09:34 +0800)]
Fix an assertion

* src/dispnew.c (clear_glyph_matrix_rows): Test matrix->nrows == 0 (which
implies start == 0) separately.

8 years agoFix 'toggle-save-place'
Eli Zaretskii [Wed, 24 Feb 2016 20:56:32 +0000 (22:56 +0200)]
Fix 'toggle-save-place'

* lisp/saveplace.el (toggle-save-place): Set up hooks necessary to
support save-place in the buffer.  Autoload the command.

8 years ago* src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)
Stefan Monnier [Wed, 24 Feb 2016 20:50:54 +0000 (15:50 -0500)]
* src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)

* src/keyboard.c (read_key_sequence): Don't inadvertently set
immediate_echo when we don't want any echo-keystrokes.
(echo_keystrokes_p): Move earlier.

8 years agoMinor fixes in calculator.el
Chris Zheng [Wed, 24 Feb 2016 20:35:18 +0000 (22:35 +0200)]
Minor fixes in calculator.el

* lisp/calculator.el (calculator-mode-map): Bind `E' for
`calculator-exp'.
(calculator-last-input): Fix a bug with pressing F1.
(Bug#20764)

Copyright-paperwork-exempt: yes

8 years agoUpdate HISTORY section in readme for the NextStep interface.
Anders Lindgren [Wed, 24 Feb 2016 20:25:09 +0000 (21:25 +0100)]
Update HISTORY section in readme for the NextStep interface.

* nextstep/README: Update HISTORY after suggestion
from former maintainer Adrian Robert.

8 years ago; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording.
Eli Zaretskii [Wed, 24 Feb 2016 20:00:45 +0000 (22:00 +0200)]
; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording.

8 years agoImprove documentation of 'save-place-mode'
Eli Zaretskii [Wed, 24 Feb 2016 19:54:21 +0000 (21:54 +0200)]
Improve documentation of 'save-place-mode'

* lisp/saveplace.el (toggle-save-place): Update the doc string wrt
turning on 'save-place-mode' globally.

* etc/NEWS: Mention the need to call 'save-place-mode' for turning
on the mode in all buffers.

8 years agoAllocate glyph matrices for the initial frame
Chris Feng [Wed, 24 Feb 2016 07:58:02 +0000 (08:58 +0100)]
Allocate glyph matrices for the initial frame

* src/frame.c (make_initial_frame): Allocate glyph matrices (Bug#22787).

* src/dispnew.c (clear_glyph_matrix_rows): matrix->nrows can be 0.

Copyright-paperwork-exempt: yes

8 years agoFix white space in last checkin
Lars Ingebrigtsen [Wed, 24 Feb 2016 02:55:29 +0000 (13:55 +1100)]
Fix white space in last checkin

8 years agoMake `insert-pair' always leave the cursor where documented
Dima Kogan [Wed, 24 Feb 2016 02:54:17 +0000 (13:54 +1100)]
Make `insert-pair' always leave the cursor where documented

* lisp/emacs-lisp/lisp.el (insert-pair): The docstring of
insert-pair states that after insertion, the point ends up
after the opening character. This was not true if the pair was
inserted to surround a region (bug#16949).

8 years agoetc/NEWS: Mention the new second parameter to `package-install'
Kaushal Modi [Wed, 24 Feb 2016 02:30:30 +0000 (13:30 +1100)]
etc/NEWS: Mention the new second parameter to `package-install'

* etc/NEWS: Mention the new second parameter to
`package-install' (bug#22784).

8 years agoHighlight assignments in Makefiles more correctly
John F. Trudeau [Wed, 24 Feb 2016 01:21:06 +0000 (12:21 +1100)]
Highlight assignments in Makefiles more correctly

* lisp/progmodes/make-mode.el (makefile-macroassign-regex):
Highlight assignments preceded by a TAB character correctly
(bug#20787).

Copyright-paperwork-exempt: yes

Backport:

(cherry picked from commit bbd86c5642bd62c43d72391669f28eaa14459fd5)

8 years agoImprove documentation of focus-related hooks
Eli Zaretskii [Tue, 23 Feb 2016 17:42:14 +0000 (19:42 +0200)]
Improve documentation of focus-related hooks

* doc/lispref/commands.texi (Focus Events): Mention focus-related
hooks.  (Bug#21728)

8 years agoFurther improve doc string of 'disable-point-adjustment'
Eli Zaretskii [Tue, 23 Feb 2016 17:35:21 +0000 (19:35 +0200)]
Further improve doc string of 'disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard): <disable-point-adjustment>
<global-disable-point-adjustment>: Clarify doc strings.  (Bug#22771)

8 years agoFurther adaptions in file-notify-tests.el for w32notify
Michael Albinus [Tue, 23 Feb 2016 12:51:36 +0000 (13:51 +0100)]
Further adaptions in file-notify-tests.el for w32notify

* test/automated/file-notify-tests.el
(file-notify--test-read-event-timeout, file-notify--test-timeout):
Decrease values.
(file-notify-test03-autorevert)
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity): Run tests also for w32notify.
(file-notify-test08-watched-file-in-watched-dir):
Adapt expected events for w32notify.

8 years agoDon't bug out on localised dates in gnus-icalendar
Jan Tatarik [Tue, 23 Feb 2016 10:17:41 +0000 (21:17 +1100)]
Don't bug out on localised dates in gnus-icalendar

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:org-timestamp): Don't bug out on
localised dates.

8 years ago(ls-lisp-insert-directory): Make -B work
Drew Adams [Tue, 23 Feb 2016 10:12:55 +0000 (21:12 +1100)]
(ls-lisp-insert-directory): Make -B work

* lisp/ls-lisp.el (ls-lisp-insert-directory): Make -B work
(bug#20776).

Backport:

(cherry picked from commit ef52e66efd78aac4c4e5bd5e11870e5ba3b37a1e)

8 years agoMake buttons in header lines work
Vaidheeswaran C [Tue, 23 Feb 2016 09:46:00 +0000 (20:46 +1100)]
Make buttons in header lines work

* lisp/help-mode.el (help-button-action): `help-xref-button' in
header line doesn't work (bug#21024).

Backport:

(cherry picked from commit c11e565a6b6d09fa39d4c3ef65bef08190eaecc1)

8 years agoMake setf for frame-height/width work again
Christopher Wellons [Tue, 23 Feb 2016 04:45:08 +0000 (15:45 +1100)]
Make setf for frame-height/width work again

* lisp/emacs-lisp/cl-lib.el (frame-height): Make setf for
frame-height/width work again (bug#21979).

8 years agoEncode header strings before printing
Łukasz Stelmach [Tue, 23 Feb 2016 03:54:30 +0000 (14:54 +1100)]
Encode header strings before printing

* lisp/ps-print.el (ps-generate-header-line): Encode the
header strings to avoid problems with non-ASCII headers
(bug#22611).

Backport:

(cherry picked from commit 3cedbdcc71ebefc12bd20ec84f74251fe99ee7d0)

8 years ago(cl-union): Do not ignore :test argument when lists are equal.
Nicolas Richard [Tue, 23 Feb 2016 03:38:30 +0000 (14:38 +1100)]
(cl-union): Do not ignore :test argument when lists are equal.

* cl-seq.el (cl-union): Do not ignore :test argument when lists are equal.

* test/automated/cl-seq-tests.el: New file (bug#22729).

8 years agoAdd `isearch' to `basic-faces'
Lars Ingebrigtsen [Tue, 23 Feb 2016 02:31:25 +0000 (13:31 +1100)]
Add `isearch' to `basic-faces'

* doc/lispref/display.texi (Basic Faces): Mention the isearch
and lazy-highlight faces.

* lisp/replace.el (match): Add `isearch' to the `basic-faces'
group, too (bug#22760).

8 years agoMake $, : and @ "prefix characters" in ruby-mode
Dmitry Gutov [Tue, 23 Feb 2016 00:27:49 +0000 (02:27 +0200)]
Make $, : and @ "prefix characters" in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Change the
syntax classes of $, : and @ to "prefix character"
(http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00272.html).
(ruby-syntax-propertize): Undo that specifically for colons
followed by an opening paren or bracket.
(ruby-font-lock-keyword-beg-re): Include colon character.
(ruby-font-lock-keywords): Adjust the constants matcher for `:'
not being a symbol constituent anymore.

8 years agoMake find-tag-default-bounds more strict
Dmitry Gutov [Mon, 22 Feb 2016 22:56:51 +0000 (00:56 +0200)]
Make find-tag-default-bounds more strict

* lisp/subr.el (find-tag-default-bounds): Delegate to
bounds-of-thing-at-point (bug#22692).

8 years agoMinor fixes in filenotify.el
Michael Albinus [Mon, 22 Feb 2016 21:05:00 +0000 (22:05 +0100)]
Minor fixes in filenotify.el

* lisp/filenotify.el (top): Require 'cl-lib.
(file-notify--rm-descriptor)
(file-notify--event-watched-file): Use cl-caadr.
(file-notify-callback): Handle also `ignore' events from inotify.

8 years agoAdditional fixes for file notification
Michael Albinus [Mon, 22 Feb 2016 17:52:37 +0000 (18:52 +0100)]
Additional fixes for file notification

* lisp/filenotify.el (top): Require 'cl when compiling.
(file-notify--event-watched-file): New defun.
(file-notify--rm-descriptor, file-notify-callback):
Handle case of several monitors running in parallel.

* test/automated/file-notify-tests.el
(file-notify--test-event-test): Simplify test.
(file-notify--test-with-events): Get rid of outer definition.
Check also results of tests performed in callbacks.
(file-notify-test02-events): No wrapping when calling
`file-notify-rm-watch'.  No special checking for callback tests.
(file-notify-test07-backup): Adapt expected events for gfilenotify.
(file-notify-test08-watched-file-in-watched-dir): Improve.

8 years agoFix documentation of 'global-disable-point-adjustment'
Eli Zaretskii [Mon, 22 Feb 2016 17:30:01 +0000 (19:30 +0200)]
Fix documentation of 'global-disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard) <disable-point-adjustment>
<global-disable-point-adjustment>: Doc fixes.  (Bug#22771)

8 years ago; Spelling fix
Paul Eggert [Mon, 22 Feb 2016 15:44:01 +0000 (07:44 -0800)]
; Spelling fix

8 years agoSet file modes of pinentry socket for extra safety
Daiki Ueno [Mon, 22 Feb 2016 02:28:11 +0000 (11:28 +0900)]
Set file modes of pinentry socket for extra safety

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoClarify GnuPG version compatibility chapter
Daiki Ueno [Mon, 22 Feb 2016 01:40:42 +0000 (10:40 +0900)]
Clarify GnuPG version compatibility chapter

* doc/misc/epa.texi (GnuPG version compatibility): Make the gpg-agent
description a bit clearer.

8 years agoRevert "Change the default socket location for pinentry"
Daiki Ueno [Mon, 22 Feb 2016 01:45:53 +0000 (10:45 +0900)]
Revert "Change the default socket location for pinentry"

This reverts commit e34fbdee8aca84b98393b06b2450837d175999ca.
It turned out that the address is fixed in Pinentry itself.

8 years agoKill off xref--display-history
Dmitry Gutov [Sun, 21 Feb 2016 22:40:53 +0000 (00:40 +0200)]
Kill off xref--display-history

Now that the core workflow keeps the xref window visible, there's
less value in storing this history.  And it never was
comprehensive enough to undo scrolling changes.
* lisp/progmodes/xref.el (xref--display-history)
(xref--save-to-history, xref-quit): Remove.
(xref--show-pos-in-buf): Update accordingly.
(xref--xref-buffer-mode-map): Remove xref-quit binding.

8 years agoKeep the xref buffer visible until the user quits it explicitly
Dmitry Gutov [Sun, 21 Feb 2016 22:26:24 +0000 (00:26 +0200)]
Keep the xref buffer visible until the user quits it explicitly

* lisp/progmodes/xref.el (xref--pop-to-location):
Rename WINDOW argument to ACTION.
(xref--with-dedicated-window): New macro.
(xref--show-pos-in-buf): Rename from `xref--display-position'.
Add and handle new argument, SELECTED.  Use the above macro.
(xref--show-location): Add SELECTED argument.
(xref-show-location-at-point): Make an effort to avoid the
original window when showing the location.
(xref-goto-xref): Don't quit the xref window (bug#20487 and
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01133.html).
(xref--query-replace-1): Use xref--with-dedicated-window as well.
(xref--next-error-function): Call xref--show-location instead of
xref--pop-to-location.
(xref--show-xrefs): Rename WINDOW argument to DISPLAY-ACTION.
Only pass that value to xref--pop-to-location.  Pass the current
selected window to xref-show-xrefs-function as the `window'
property.
(xref--find-xrefs, xref--find-definitions): Rename WINDOW argument
to DISPLAY-ACTION as well.

8 years agoChange the default socket location for pinentry
Daiki Ueno [Sun, 21 Feb 2016 21:06:50 +0000 (06:06 +0900)]
Change the default socket location for pinentry

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry--socket-dir): Change the default from /tmp/emacsXXX to
~/.emacs.d/pinentry.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoMention how to enable pinentry feature
Daiki Ueno [Sun, 21 Feb 2016 21:05:14 +0000 (06:05 +0900)]
Mention how to enable pinentry feature

* etc/NEWS: Mention "gpgconf --reload gpg-agent".
* lisp/net/pinentry.el: Likewise.

8 years agoSync with gnulib
Paul Eggert [Sun, 21 Feb 2016 20:34:00 +0000 (12:34 -0800)]
Sync with gnulib

This incorporates:
2016-02-10 stdalign: port to older HP and IBM cc
* doc/misc/texinfo.tex, lib/stdalign.in.h: Copy from gnulib.