1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
Commit graph

66271 commits

Author SHA1 Message Date
Eli Zaretskii
98b8d44892 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.
2016-03-05 14:48:37 +02:00
Dmitry Gutov
dc9d837d02 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).
2016-03-05 14:35:35 +02:00
Lars Ingebrigtsen
6db1a873d5 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 ca4e30058e)
2016-03-04 11:53:58 +00:00
Martin Rudalics
620951fe22 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).
2016-03-04 08:37:53 +01:00
Artur Malabarba
2e78353fab * lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic 2016-03-03 19:03:16 -03:00
Mark Oteiza
66d2717888 Complete temperature units in calc-convert-temperature
* lisp/calc/calc-units.el (calc-convert-temperature): Complete with
temperature units in math-standard-units.
2016-03-03 17:56:44 +00:00
Dmitry Gutov
dbb02bfadc Make sure to use case-sensitive search
* lisp/progmodes/xref.el (xref-collect-references): Make sure to
use case-sensitive search.
2016-03-03 02:36:27 +02:00
Ulf Jasper
8b01e6969f 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.
2016-03-02 19:03:27 +01:00
Alan Third
5aba61ea21 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.
2016-03-02 17:21:38 +00:00
Nicolas Petton
6287381da4 ; Auto-commit of loaddefs files. 2016-03-02 18:03:12 +01:00
Michael Albinus
06da00c6cf Fix Bug#22859
* lisp/filenotify.el (file-notify-callback): Return a `deleted'
event in case of kqueue and file1 is nil.  (Bug#22859)
2016-03-02 10:24:55 +00:00
Glenn Morris
733fb9fdf5 ; Auto-commit of loaddefs files. 2016-03-01 07:19:06 -05:00
Oscar Fuentes
38698b6eaa ; * lisp/vc/vc-hooks.el: corrected docstring of face
Do not merge to master
2016-03-01 04:55:31 +01:00
Leo Liu
b6d6304179 Comment on last change to define-derived-mode
* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.
2016-03-01 11:51:34 +08:00
Lars Ingebrigtsen
7c1e6ebfcb 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 144bb0cf32)
2016-03-01 14:50:01 +11:00
Lars Ingebrigtsen
cb1e3da12e 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").
2016-03-01 11:31:52 +11:00
Lars Ingebrigtsen
dc42d0ca0b 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 cad0bc7055)
2016-02-29 22:21:30 +11:00
Lars Ingebrigtsen
9781dc4da3 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 379a846b85)
2016-02-29 18:06:59 +11:00
Dmitry Gutov
aae436e2d8 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).
2016-02-29 05:16:41 +02:00
Michael Albinus
5a44bfea9d 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)
2016-02-28 10:54:45 +01:00
Friedrich Beckmann
0d60bfc431 Fix ModelSim error parsing
* lisp/progmodes/vhdl-mode.el (vhdl-compiler-alist): Fix
ModelSim error parsing (bug#5768).

Copyright-paperwork-exempt: yes
2016-02-28 17:04:09 +11:00
Lars Ingebrigtsen
5cac11aa06 Make parse-time-string-chars faster
* lisp/calendar/parse-time.el (parse-time-string-chars): Clean
up the code (backport:).
2016-02-28 15:39:33 +10:30
Lars Ingebrigtsen
b13cab683c 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.
2016-02-28 14:52:56 +10:30
Eli Zaretskii
14060a9c16 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.
2016-02-27 13:27:36 +02:00
Leo Liu
098d47bcf7 * lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change. 2016-02-27 13:48:43 +08:00
Kaushal Modi
ec10ef95cf * lisp/apropos.el (apropos-variable): Doc fix. (Bug#22813). 2016-02-26 20:32:12 +02:00
Stefan Monnier
fde0cd1adc * 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.
2016-02-25 13:44:43 -05:00
Alan Mackenzie
95f5a4337c 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.
2016-02-25 09:31:23 +00:00
Magnus Henoch
7d206fc604 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).
2016-02-25 16:11:40 +10:30
Eli Zaretskii
040e0d6b3b Fix 'toggle-save-place'
* lisp/saveplace.el (toggle-save-place): Set up hooks necessary to
support save-place in the buffer.  Autoload the command.
2016-02-24 22:56:32 +02:00
Chris Zheng
9d0b103a45 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
2016-02-24 22:35:18 +02:00
Eli Zaretskii
7c81a0b9c6 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.
2016-02-24 21:54:21 +02:00
Lars Ingebrigtsen
e01c72f8f4 Fix white space in last checkin 2016-02-24 13:55:29 +11:00
Dima Kogan
370eb67604 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).
2016-02-24 13:54:17 +11:00
John F. Trudeau
ce4bdd77b0 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 bbd86c5642)
2016-02-24 12:22:15 +11:00
Jan Tatarik
a1585e18c0 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.
2016-02-23 21:17:41 +11:00
Drew Adams
dfe16506a9 (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 ef52e66efd)
2016-02-23 21:13:35 +11:00
Vaidheeswaran C
42bc065a6a 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 c11e565a6b)
2016-02-23 20:47:24 +11:00
Christopher Wellons
7bc4820ffd 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).
2016-02-23 15:45:08 +11:00
Łukasz Stelmach
1af5e6e0ac 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 3cedbdcc71)
2016-02-23 14:56:11 +11:00
Nicolas Richard
6620944f83 (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).
2016-02-23 14:38:30 +11:00
Lars Ingebrigtsen
17dd3fb4a5 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).
2016-02-23 13:31:32 +11:00
Dmitry Gutov
c1ec7434c3 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.
2016-02-23 02:28:40 +02:00
Dmitry Gutov
e72a26e009 Make find-tag-default-bounds more strict
* lisp/subr.el (find-tag-default-bounds): Delegate to
bounds-of-thing-at-point (bug#22692).
2016-02-23 02:28:40 +02:00
Michael Albinus
1bc0e0a5b7 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.
2016-02-22 22:05:00 +01:00
Michael Albinus
a9c48d5c9e 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.
2016-02-22 18:52:37 +01:00
Daiki Ueno
29757844e5 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'.
2016-02-22 11:49:19 +09:00
Daiki Ueno
5e34c3671a Revert "Change the default socket location for pinentry"
This reverts commit e34fbdee8a.
It turned out that the address is fixed in Pinentry itself.
2016-02-22 10:45:53 +09:00
Dmitry Gutov
e19c1c3017 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.
2016-02-22 00:57:41 +02:00
Dmitry Gutov
5698947ff9 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.
2016-02-22 00:57:40 +02:00