1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

131080 commits

Author SHA1 Message Date
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
b4f67ebb92 Improve discoverability of 'defvar' for suppressing warnings
* doc/lispref/compile.texi (Compiler Errors): Add index entries.
* doc/lispref/variables.texi (Defining Variables): Mention that
defvar with no value is used for suppressing compiler warnings.
(Bug#29400)
2017-11-24 16:36:33 +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
e6e41dac87 Reflect changes in copy-file and rename-file in doc strings
* src/fileio.c (Fcopy_file, Frename_file): Mention in the doc
strings that directory names must end in a slash.  (Bug#29362)
2017-11-24 10:49:29 +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
Eli Zaretskii
1d0dbdff6c Reorder type predicates in ELisp manual
* doc/lispref/objects.texi (Type Predicates): Restore alphabetical
order of listed predicates.  (Bug#29411)
2017-11-24 10:07:40 +02:00
Eli Zaretskii
b081ec9dd7 Fix backward scrolling in buffers with header-line
* src/window.c (window_scroll_pixel_based): Account for the
header-line when comparing Y coordinate with the last_visible_y.
(Bug#29325)
2017-11-23 22:29:59 +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
d82474e452 * src/fns.c (syms_of_fns) <overriding-plist-environment>: Doc fix. 2017-11-22 14:58:55 -05:00
Alan Third
292c09ff6d Fix incorrect interaction of drag/drop and double click (bug#29121)
* src/nsterm.m (EmacsView::performDragOperation): Drag and drop
doesn't use ns-input-file.
2017-11-22 16:46:49 +00: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
Noam Postavsky
7ab7603125 Update nt/INSTALL.W64 (Bug#28601)
* nt/INSTALL.W64 (Download and install MinGW-w64 and MSYS2): Move
suggestion about modifying PATH to...
(Test Emacs): ... here.
(Run configure): Remove the unnecessary setting of PKG_CONFIG_PATH.
(Troubleshooting): New section, includes suggestion to check
PKG_CONFIG_PATH.
2017-11-21 14:43:04 -05:00
Charles A. Roelli
11db253c08 Remove incorrect NEWS item about VC state indicator (Bug#28817)
* etc/NEWS (VC and related modes): Remove news item about the VC
state indicator.  This should have been done with commit 7882dc6
of 2016-03-06 'Revert "Use colors in the VC mode lines"'.
2017-11-21 20:37:19 +01: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
Alan Third
6c312605bf Add window divider faces to NS (bug#29353)
* src/nsterm.m (ns_draw_window_divider): Use
window-divider-first-pixel and window-divider-last-pixel faces.
2017-11-20 20:38:05 +00:00
Stefan Monnier
eb335c97b2 * src/keyboard.c: Undo last change, meant for master only 2017-11-20 12:45:20 -05: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
Michael Albinus
5622b2e263 Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26 2017-11-20 14:16:28 +01:00
Martin Rudalics
4da87999c2 Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353)
* src/xterm.c (x_draw_window_divider):
* src/w32term.c (w32_draw_window_divider): Fix misbehavior when
drawing three-pixel high horizontal dividers (Bug#29353).

The misbehavior was noted by Keith David Bershatsky and analyzed by Alan
Third.
2017-11-20 09:18:59 +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
Michael Albinus
504a56cf32 ; Fix last commit 2017-11-19 12:50:05 +01:00
Michael Albinus
a34e44e8ee ; Fix last commit
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Check for local ACL support.  (Bug#29291)
2017-11-19 12:22:30 +01:00
Michael Albinus
a8892b4e62 Further fix for Bug#29291
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Check for local ACL support.  (Bug#29291)
2017-11-19 12:11:18 +01:00
Alan Third
d14923b4d4 Fix divider frame params on NS (bug#29352)
* src/nsfns.m (Fx_create_frame): Set right-divider-width and
bottom-divider-width parameters.
2017-11-19 11:02:56 +00: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
Olaf Rogalsky
18b2359411 * src/keyboard.c: Make xterm-mouse clicks on mode-line work
(read_key_sequence): Recompute first_event
after replay_sequence, since it might have changed (bug#29104).
2017-11-18 23:23:58 -05:00
Martin Rudalics
6e6bf60eab Don't let delete_frame select a tooltip frame (Bug#27647)
* src/frame.c (delete_frame): Don't select a tooltip
frame. (Bug#27647)
2017-11-18 19:19:32 +01: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
319c2de9da Avoid assertion violations in echo_area_display
* src/xdisp.c (echo_area_display): Don't try redisplaying the echo
area if the selected-frame's mini-window is nil.  (Bug#27647)
2017-11-18 13:41:03 +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
Eli Zaretskii
90add182a4 Prevent aborts in line-move-visual
* src/indent.c (line_number_display_width): Avoid assertion
violations in init_iterator when the window's buffer was
temporarily switched without updating window-start.  (Bug#29326)
2017-11-17 21:37:04 +02:00