Commit graph

70480 commits

Author SHA1 Message Date
Tom Tromey
cfa2a944d4 Change font-lock-extend-region-multiline handling in mhtml-mode
Bug#29159
* lisp/textmodes/mhtml-mode.el (mhtml-mode): Remove
font-lock-extend-region-multiline from
font-lock-extend-region-functions.
(mhtml--extend-font-lock-region): Call font-lock-extend-region-multiline.
2017-11-25 13:25:37 -07:00
Michael Albinus
a8664cc998 Minor cleanup in tramp-gvfs-handle-file-local-copy
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy):
Move error message up.
2017-11-25 16:09:55 +01:00
Michael Albinus
55c5b12fa0 Add test for Bug#29423 in Tramp.
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Add test for Bug#29423.
2017-11-25 16:03:53 +01:00
Eli Zaretskii
3198a1646e Avoid jumbled order in HTML rendered by shr.el
* lisp/net/shr.el (shr-render-td): Preserve point, as
shr-render-td-1 might move it as a side effect of
save-window-excursion.  (Bug#29348)
2017-11-25 13:31:51 +02:00
Eli Zaretskii
23bfc2d2db Make sure 'dired-filename' property is always put by ls-lisp
* lisp/ls-lisp.el (ls-lisp-classify): Do not put the
'dired-filename' text property on the file name here...
(ls-lisp-classify-file): ...put it here instead.  (Bug#29423)
2017-11-25 12:35:09 +02:00
Eli Zaretskii
d7fc719ff1 Improve the doc string of 'list-packages'
* lisp/emacs-lisp/package.el (list-packages): Describe in the doc
string the columns shown by the command.  (Bug#29420)
2017-11-24 16:49:10 +02:00
Eli Zaretskii
8a2b204e64 Improve discoverability of 'read-buffer-completion-ignore-case'
* lisp/window.el (switch-to-buffer)
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Mention 'read-buffer' in the doc string.  (Bug#29389)

* doc/emacs/buffers.texi (Select Buffer): Add a cross-reference to
where 'read-buffer-completion-ignore-case' is documented.
2017-11-24 15:58:00 +02:00
Eli Zaretskii
eea4e9194c Improve documentation of self-insert-uses-region-functions
* lisp/simple.el (self-insert-uses-region-functions): Clarify the
doc string.
* lisp/delsel.el (delete-selection-uses-region-p): Mention
'self-insert-command' in the doc string.  (Bug#29373)

* doc/lispref/text.texi (Commands for Insertion): Mention
'self-insert-uses-region-functions'.
* doc/lispref/modes.texi (Keymaps and Minor Modes): Add a
cross-reference to "Commands for Insertion".
2017-11-24 12:49:04 +02:00
Eli Zaretskii
0ec534070f * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (Bug#29407) 2017-11-24 10:41:49 +02:00
Glenn Morris
8e40429c96 ; Fix some doc typos 2017-11-22 17:52:11 -05:00
Glenn Morris
ed2c542920 * lisp/bindings.el (buffer-file-coding-system):
Add explicit permanent-local mark.

; * src/buffer.c (init_buffer_once): Comment.
2017-11-22 16:36:07 -05:00
Glenn Morris
d6fadb1d26 * lisp/menu-bar.el (menu-bar-options-save):
Add display-line-numbers-type.
2017-11-21 20:18:01 -05:00
Glenn Morris
daa959efbc * lisp/menu-bar.el (menu-bar-options-save):
Add global-display-line-numbers-mode.  (Bug#28396)
2017-11-21 19:42:32 -05:00
Glenn Morris
17fc74d1b9 * lisp/follow.el (follow-mode): Restore mode line lighter. (Bug#28495) 2017-11-21 19:23:52 -05:00
Dmitry Gutov
f20c2e2f3d ; Compare process status against 127 exactly 2017-11-22 01:56:13 +02:00
Dmitry Gutov
2d203ffb7e Extract the common part of ruby-flymake-simple and ruby-flymake-rubocop
* lisp/progmodes/ruby-mode.el (ruby-flymake-simple)
(ruby-flymake-rubocop):
Extract the common part as ruby-flymake--helper.
(ruby--rubocop-flymake-proc): Remove.  Use the first proc
variable instead.
2017-11-22 01:56:13 +02:00
Dmitry Gutov
09944d499a Add Rubocop Flymake backend
* lisp/progmodes/ruby-mode.el (ruby-flymake-command):
Inline the value.  There are no known substitutes.
(ruby-flymake): Rename to `ruby-flymake-simple' and simplify
the docstring.
(ruby-flymake-use-rubocop-if-available): New option.
(ruby--rubocop-flymake-proc): New variable.
(ruby-rubocop-config): New option.
(ruby-flymake-rubocop, ruby-flymake-auto): New functions.
(ruby-mode): Use `ruby-flymake-auto'.
2017-11-22 01:53:37 +02:00
Dmitry Gutov
c65a0ae7c4 ; Fix a typo 2017-11-22 01:51:48 +02:00
Glenn Morris
2fdc01c036 * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. 2017-11-21 13:28:00 -05:00
Alan Mackenzie
735c8b516e Make c-defun-name analyze more thoroughly a function type which is a struct
This fixes bug #29293.

* lisp/progmodes/cc-cmds.el (c-defun-name): When a struct (etc.) type is
encountered, check whether it is the return type of a function rather than a
declaration of the struct itself.  Similarly adapt the cond arm which deals
with functions properly to recognize struct return types.
2017-11-21 18:06:11 +00:00
Glenn Morris
92f0c4cd56 Avoid bogus abbreviated file names if HOME changes
* lisp/files.el (abbreviate-file-name):
If HOME changes, ignore `abbreviated-home-dir'.  (Bug#19657#20)
* test/lisp/files-tests.el (files-test-abbreviated-home-dir): New.
2017-11-21 12:27:36 -05:00
Glenn Morris
8d450453fa * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. 2017-11-21 08:53:31 -08:00
Jay Kamat
37a3b4ea40 Fix erc keep-place module with new defaults (Bug#29111)
* lisp/erc/erc-goodies.el (erc-keep-place): Allow erc
keep-place to continue working with
switch-to-buffer-preserve-window-point set to t, the new default.

Copyright-paperwork-exempt: yes
2017-11-21 08:31:40 +01:00
Michael Albinus
fc5b8f1055 Fix Bug#29149
* lisp/net/tramp.el (tramp-drop-volume-letter): Handle also
backup file names.
(tramp-handle-find-backup-file-name):
Call `tramp-drop-volume-letter' on the results.  (Bug#29149)
2017-11-20 14:28:22 +01:00
Mike Kupfer
1b082c886c MH-E: don't automatically download external-body parts
* lisp/mh-e/mh-mime.el (mh-mime-display-single): Use
mm-automatic-display-p to verify that a part should be
displayed before doing the inline checks (SF#475).
2017-11-19 10:34:58 -08:00
Eli Zaretskii
069f978484 ; * lisp/emacs-lisp/byte-run.el: Fix a typo in a comment. 2017-11-19 17:51:08 +02:00
Paul Eggert
b2518ac750 Spelling fixes
* lisp/help-fns.el (help-fns--analyze-function):
Rename from help-fns--analyse-function.
All uses changed.
2017-11-19 00:21:09 -08:00
Alan Mackenzie
e9dd580cc8 Filter obtrusive events in help-read-key-sequence.
This fixes most of bug #29272.

* lisp/help.el (help-read-key-sequence): After a mouse event, pause for 0.01s,
discarding any events (such as <help-echo>) received in this time, before
polling for the double-click (etc.) events which may follow.  This fixes the
infinite loop which occurred whwn <help-echo> events triggered a sit-for
whilst handling menu events.
2017-11-18 14:52:39 +00:00
Michael Albinus
90075e8e1e Fix symlink flag in tramp-gvfs-handle-file-attributes
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
Set proper symlink file mode flag.
2017-11-18 15:08:32 +01:00
Michael Albinus
c355529bae Fix bug in tramp-handle-file-truename
* lisp/net/tramp.el (tramp-handle-file-truename): Expand localname.

* test/lisp/net/tramp-tests.el (tramp-test21-file-links): Check also
relative symbolic links.
2017-11-18 14:24:03 +01:00
Eli Zaretskii
4c21d04057 Fix a typo in doc string of electric-indent-functions-without-reindent
* lisp/electric.el (electric-indent-functions-without-reindent):
Doc fix.  (Bug#29304)
2017-11-18 13:46:13 +02:00
Eli Zaretskii
63c773399e ; * lisp/ido.el (ido-find-alternate-file): Doc fix. (Bug#29278) 2017-11-18 13:14:52 +02:00
Eli Zaretskii
cbd319a351 Fix case-folding in Occur
* lisp/replace.el (occur-engine): Bind case-fold-search in each
buffer we search.  (Bug#29254)
2017-11-18 13:06:22 +02:00
OGAWA Hirofumi
29520b083f Fix quick-calc in C mode with hex values
* lisp/calc/calc-aent.el (math-read-token): Make sure the match
against "0[xX][0-9a-fA-F]+" is found at math-exp-pos.  See
http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00174.html
for the details.

Copyright-paperwork-exempt: yes
2017-11-18 12:29:41 +02:00
Eli Zaretskii
3e80124098 Improve documentation of dired-next/prev-marked-file
* lisp/dired.el (dired-next-marked-file, dired-prev-marked-file):
Doc fixes.  (Bug#29340)
2017-11-18 11:42:06 +02:00
Robert Pluim
104f3e51fe Document how to enter whitespace when using grep-read-files
* lisp/progmodes/grep.el (lgrep, rgrep, grep-read-files): Explain
how to enter whitespace when using grep-read-files.  (Bug#29303)
* lisp/progmodes/project.el (project-find-regexp): Likewise.
* lisp/vc/vc-git.el (vc-git-grep): Likewise.
2017-11-17 15:39:02 +02:00
Paul Eggert
720322aab8 ; Spelling fixes 2017-11-16 00:01:00 -08:00
Charles A. Roelli
617c556813 * lisp/simple.el (shell-command): Doc fixes. 2017-11-15 20:35:18 +01:00
Noam Postavsky
1faade8821 Fix marker adjustment for undo (Bug#29118)
* lisp/simple.el (primitive-undo): Compare marker against absolute
value of POS, because the sign of POS is irrelevant to markers.
2017-11-15 07:05:35 -05:00
Martin Rudalics
796c7f7a94 ; Fix last fix of 'mouse-drag-and-drop-region'
* lisp/mouse.el (mouse-drag-and-drop-region): Use 'car-safe'
instead of 'car' to ignore 'select-window' events.  Thanks to
Stefan Monnier for spotting this.
2017-11-14 18:36:12 +01:00
Daniel Pittman
40d41dd497 Fix Bug#28139
* tramp-sh.el: Set TERM and INSIDE_EMACS environment earlier.
(tramp-remote-process-environment): Remove TERM and INSIDE_EMACS.
(tramp-remote-process-environment): Document their special handling.
(tramp-open-shell): Set TERM and INSIDE_EMACS prior to starting the
initial remote shell, so that it is also aware of the environment
in which it is operating.  (Bug#28139)
2017-11-14 11:38:30 +01:00
Martin Rudalics
ff7bd84b23 Make 'mouse-drag-and-drop-region' work with 'mouse-autoselect-window' non-nil
* lisp/mouse.el (mouse-drag-and-drop-region): Ignore
'select-window' events to make it work with
'mouse-autoselect-window'.
2017-11-14 10:09:24 +01:00
Katsumi Yamaoka
caa39f495c Fix cookie handling (bug#29282)
* lisp/url/url-cookie.el (url-cookie-handle-set-cookie):
Regard a Set-Cookie header as it contains a single cookie;
prefer Max-Age to Expires and convert it to Expires;
remove support for old time string styles (bug#29282).
2017-11-13 23:56:26 +00:00
Tom Tromey
6aa0a26b46 Don't enable cursor-sensor-mode in mhtml-mode
* lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc
string.
(mhtml-mode): Don't call cursor-sensor-mode.
2017-11-12 11:56:05 -07:00
Eli Zaretskii
2b8ef8dddf * lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267) 2017-11-12 15:25:06 +02:00
Alan Mackenzie
42daf83f08 CC Mode: Fix defun-open being recognized as brace-list-open at EOB.
* lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Add handling
for an open brace at EOB and nested braces inside an unclosed brace block.
2017-11-12 11:49:03 +00:00
Eli Zaretskii
49450d0951 * lisp/find-dired.el (find-grep-dired): Doc fix. (Bug#29262) 2017-11-12 07:03:48 +02:00
João Távora
e286b3381f Fix more flymake-diag-region eob corner cases and add tests (bug#29201)
* lisp/progmodes/flymake.el (flymake-diag-region): Correct
more eob corner cases.

* test/lisp/progmodes/flymake-tests.el
(eob-region-and-trailing-newline): New test.
2017-11-11 23:44:52 +00:00
Basil L. Contovounesios
9533d76b0b Keep Man sections in natural order (bug#28998)
* lisp/man.el (Man-build-section-alist): Reverse sections.
2017-11-11 10:46:43 -05:00
Stefan Monnier
d63c9a96f5 * lisp/minibuffer.el: Install a workaround for bug#16274
* lisp/minibuffer.el (completion--nth-completion): Avoid signaling an
error when `md` is applied to another table.
2017-11-11 10:25:20 -05:00