Stefan Kangas
4d635ceffb
Prefer defvar-local in allout
...
* lisp/allout.el (allout-just-did-undo, allout-mode)
(allout-layout, allout-regexp, allout-bullets-string)
(allout-bullets-string-len, allout-depth-specific-regexp)
(allout-depth-one-regexp, allout-line-boundary-regexp)
(allout-bob-regexp, allout-header-subtraction)
(allout-plain-bullets-string-len, allout-mode-prior-settings)
(allout-outside-normal-auto-fill-function)
(allout-encryption-plaintext-sanitization-regexps)
(allout-encryption-ciphertext-rejection-regexps)
(allout-explicitly-deactivated, allout-recent-prefix-beginning)
(allout-recent-prefix-end, allout-recent-depth)
(allout-recent-end-of-subtree, allout-post-goto-bullet)
(allout-command-counter, allout-this-command-hid-text):
* lisp/allout-widgets.el (allout-widgets-mode)
(allout-widgets-tally, allout-widgets-mode-inhibit)
(allout-inhibit-body-modification-hook)
(allout-widgets-changes-record)
(allout-widgets-undo-exposure-record)
(allout-escaped-prefix-regexp, allout-item-icon-keymap)
(allout-item-body-keymap, allout-cue-span-keymap)
(allout-widgets-last-decoration-timing)
(allout-container-item-widget): Prefer defvar-local.
2021-01-31 14:35:44 +01:00
Stefan Kangas
035ef9f5ae
Prefer defvar-local in cua
...
* lisp/emulation/cua-base.el (cua-inhibit-cua-keys)
(cua--status-string):
* lisp/emulation/cua-rect.el (cua--rectangle)
(cua--rectangle-overlays): Prefer defvar-local.
2021-01-31 14:17:16 +01:00
Stefan Kangas
d7405e474b
Obsolete viper-deflocalvar for defvar-local
...
* lisp/emulation/viper-init.el (viper-deflocalvar): Make obsolete.
Use defvar-local.
* lisp/emulation/viper-cmd.el (viper--undo-change-group-handle):
* lisp/emulation/viper-init.el (viper-vi-intercept-minor-mode)
(viper-vi-basic-minor-mode, viper-vi-local-user-minor-mode)
(viper-vi-global-user-minor-mode)
(viper-vi-state-modifier-minor-mode)
(viper-vi-diehard-minor-mode, viper-vi-kbd-minor-mode)
(viper-insert-intercept-minor-mode)
(viper-insert-basic-minor-mode)
(viper-insert-local-user-minor-mode)
(viper-insert-global-user-minor-mode)
(viper-insert-state-modifier-minor-mode)
(viper-insert-diehard-minor-mode, viper-insert-kbd-minor-mode)
(viper-replace-minor-mode, viper-emacs-intercept-minor-mode)
(viper-emacs-local-user-minor-mode)
(viper-emacs-global-user-minor-mode, viper-emacs-kbd-minor-mode)
(viper-emacs-state-modifier-minor-mode)
(viper-vi-minibuffer-minor-mode)
(viper-insert-minibuffer-minor-mode)
(viper-automatic-iso-accents, viper-special-input-method)
(viper-intermediate-command, viper-began-as-replace)
(viper-replace-overlay, viper-last-posn-in-replace-region)
(viper-last-posn-while-in-insert-state)
(viper-sitting-in-replace, viper-replace-chars-to-delete)
(viper-replace-region-chars-deleted, viper-current-state)
(viper-cted, viper-current-indent, viper-preserve-indent)
(viper-auto-indent, viper-electric-mode, viper-insert-point)
(viper-pre-command-point, viper-com-point)
(viper-ex-style-motion, viper-ex-style-editing)
(viper-ESC-moves-cursor-back, viper-delete-backwards-in-replace)
(viper-related-files-and-buffers-ring)
(viper-local-search-start-marker, viper-search-overlay)
(viper-last-jump, viper-last-jump-ignore)
(viper-minibuffer-current-face, viper-minibuffer-overlay):
* lisp/emulation/viper-keym.el (viper-vi-local-user-map)
(viper-insert-local-user-map, viper-emacs-local-user-map)
(viper--key-maps, viper-need-new-vi-local-map)
(viper-need-new-insert-local-map)
(viper-need-new-emacs-local-map):
* lisp/emulation/viper-mous.el (viper-mouse-click-search-noerror)
(viper-mouse-click-search-limit):
* lisp/emulation/viper-util.el (viper-non-word-characters)
(viper-ALPHA-char-class):
* lisp/emulation/viper.el: Use defvar-local instead of now obsolete
macro viper-deflocalvar.
2021-01-31 14:11:11 +01:00
Alan Mackenzie
686caed4af
Don't attempt to display input method guidance in expired minibuffers
...
This caused infinite waits in circumstances involving setting an input method
in a global minor mode. This commit fixes bug #45792 .
* lisp/international/quail.el (quail-show-guidance): Test the major mode is
not minibuffer-inactive-mode before proceding with the function.
2021-01-31 11:20:50 +00:00
Lars Ingebrigtsen
5cf9b915fa
execute-kbd-macro doc string clarification
...
* src/macros.c (Fexecute_kbd_macro): Mention that the buffer is
(potentially) changed (bug#37396).
2021-01-31 08:46:02 +01:00
Lars Ingebrigtsen
d88e12aa19
Make operating-system-release obsolete
...
* lisp/subr.el (operating-system-release): Make obsolete
(bug#39940). There are no in-tree usages any more, and the data
doesn't seem all that interesting on its own.
2021-01-31 08:22:12 +01:00
Lars Ingebrigtsen
21c4a3dfb4
Doc string improvements around `default-korean-keyboard'
...
* lisp/language/korea-util.el (default-korean-keyboard): Mention
"Hangul" here for easier discoverability.
(toggle-korean-input-method, quail-hangul-switch-symbol-ksc)
(quail-hangul-switch-hanja): Mention the variable.
2021-01-31 08:12:10 +01:00
Lars Ingebrigtsen
867b99d68f
Revert "Improve fontifying of #| ... |# in `lisp-mode'"
...
This reverts commit 1275dc4711 .
Setting comment-end isn't the correct thing to do -- it makes M-; insert that string.
2021-01-31 07:59:40 +01:00
Stefan Kangas
a0b743da19
; Fix my previous commit
...
* lisp/play/5x5.el (5x5-solver-output): Prefer defvar-local.
* lisp/play/gamegrid.el (gamegrid-display-table): Provide default
value.
2021-01-31 05:50:10 +01:00
Stefan Kangas
31ec1a7d32
Prefer defvar-local in play/*.el
...
* lisp/play/5x5.el
(5x5-grid, 5x5-x-pos, 5x5-y-pos, 5x5-moves, 5x5-cracking):
* lisp/play/decipher.el (decipher-alphabet)
(decipher-stats-buffer, decipher-undo-list-size)
(decipher-undo-list):
* lisp/play/gamegrid.el (gamegrid-use-glyphs)
(gamegrid-use-color, gamegrid-font, gamegrid-face)
(gamegrid-display-options, gamegrid-buffer-width)
(gamegrid-buffer-height, gamegrid-blank, gamegrid-timer)
(gamegrid-display-mode, gamegrid-display-table)
(gamegrid-face-table, gamegrid-buffer-start)
(gamegrid-score-file-length):
* lisp/play/snake.el (snake-length, snake-velocity-x)
(snake-velocity-y, snake-positions, snake-score, snake-paused)
(snake-moved-p, snake-velocity-queue):
* lisp/play/tetris.el (tetris-shape, tetris-rot)
(tetris-next-shape, tetris-n-shapes, tetris-n-rows)
(tetris-score, tetris-pos-x, tetris-pos-y, tetris-paused):
Prefer defvar-local.
* lisp/play/5x5.el (5x5-defvar-local): Make obsolete.
2021-01-31 05:28:40 +01:00
Stefan Kangas
e226357c3b
Remove redundant defvar for artist-mode
...
* lisp/textmodes/artist.el (artist-mode): Remove redundant
defvar; it is defined by define-minor-mode.
2021-01-31 04:44:53 +01:00
Stefan Kangas
fc66ec3322
Prefer defvar-local in erc
...
* lisp/erc/erc-backend.el (erc-server-current-nick)
(erc-server-process, erc-session-server, erc-session-connector)
(erc-session-port, erc-server-announced-name)
(erc-server-version, erc-server-parameters)
(erc-server-connected, erc-server-reconnect-count)
(erc-server-quitting, erc-server-reconnecting)
(erc-server-timed-out, erc-server-banned)
(erc-server-error-occurred, erc-server-lines-sent)
(erc-server-last-peers, erc-server-last-sent-time)
(erc-server-last-ping-time, erc-server-last-received-time)
(erc-server-lag, erc-server-filter-data, erc-server-duplicates)
(erc-server-processing-p, erc-server-flood-last-message)
(erc-server-flood-queue, erc-server-flood-timer)
(erc-server-ping-handler):
* lisp/erc/erc-capab.el (erc-capab-identify-activated)
(erc-capab-identify-sent):
* lisp/erc/erc-dcc.el (erc-dcc-byte-count, erc-dcc-entry-data)
(erc-dcc-file-name):
* lisp/erc/erc-ezbounce.el (erc-ezb-session-list):
* lisp/erc/erc-join.el (erc--autojoin-timer):
* lisp/erc/erc-netsplit.el (erc-netsplit-list):
* lisp/erc/erc-networks.el (erc-network):
* lisp/erc/erc-notify.el (erc-last-ison, erc-last-ison-time):
* lisp/erc/erc-ring.el (erc-input-ring, erc-input-ring-index):
* lisp/erc/erc-stamp.el (erc-timestamp-last-inserted)
(erc-timestamp-last-inserted-left)
(erc-timestamp-last-inserted-right):
* lisp/erc/erc.el (erc-session-password, erc-channel-users)
(erc-server-users, erc-channel-topic, erc-channel-modes)
(erc-insert-marker, erc-input-marker, erc-last-saved-position)
(erc-dbuf, erc-active-buffer, erc-default-recipients)
(erc-session-user-full-name, erc-channel-user-limit)
(erc-channel-key, erc-invitation, erc-channel-list)
(erc-bad-nick, erc-logged-in, erc-default-nicks)
(erc-nick-change-attempt-count, erc-send-input-line-function)
(erc-channel-new-member-names, erc-channel-banlist)
(erc-current-message-catalog): Prefer defvar-local.
2021-01-31 04:44:30 +01:00
Stefan Kangas
44eb87cd0a
Remove redundant requires of 'derived'
...
* lisp/net/newst-backend.el (derived):
* lisp/net/newst-plainview.el (derived):
* lisp/play/gametree.el (derived):
* lisp/textmodes/less-css-mode.el (derived): Remove redundant require;
'define-derived-mode' is autoloaded.
2021-01-31 04:30:48 +01:00
Dmitry Gutov
0f2d87716a
Recompute mode-lines when marking conflicts resolved
...
* lisp/vc/vc.el (vc-mark-resolved):
Recompute the mode lines of the affected files.
2021-01-31 03:09:19 +02:00
Alan Mackenzie
636ef445af
With minibuffer-follows-selected-frame `hybrid', preserve recursive Mbuffers
...
...when enable-recursive-minibuffers is non-nil, and several minibuffers are
activated from different frames. Also set the major mode of a reused active
minibuffer to `fundamental-mode' - up till now it's been
minibuffer-inactive-mode.
* src/minibuf.c (read_minibuf): with the indicated settings of variables,
"stack up" all containing minibuffers on the mini-window of the current
frame. Delete another, now superfluous such stacking up.
(set_minibuffer_mode): New function.
(get_minibuffer): Call the above new function (twice), in place of inline
code, ensuring active minibuffers are never left in minibuffer-inactive-mode.
2021-01-30 21:16:35 +00:00
Eli Zaretskii
419a33eb1d
Fix NS build broken by a recent change
...
* src/nsmenu.m (set_frame_menubar, Fns_reset_menu): Adapt to
recent changes in set_frame_menubar. (Bug#45759)
2021-01-30 21:13:53 +02:00
Juri Linkov
b32d4bf682
Allow the caller to specify own face on suffix in annotation-function
...
* lisp/minibuffer.el (completion--insert-strings):
Don't add 'completions-annotations' face when the caller
specified own face in annotation-function.
Remove no-op code for 'unless prefix' branch.
(completion-metadata, completion-extra-properties):
Update docs of affixation-function.
Suggested by Clemens <clemera@posteo.net> (bug#45780)
* test/lisp/minibuffer-tests.el: Rename package name from
completion-tests.el to minibuffer-tests.el.
Add new test completion--insert-strings-faces.
* doc/lispref/minibuf.texi (Completion Variables)
(Programmed Completion): Update descriptions of
annotation-function and affixation-function.
2021-01-30 21:12:37 +02:00
Basil L. Contovounesios
42f45e52aa
; Improve defcustom :type in last change.
2021-01-30 19:09:46 +00:00
Augusto Stoffel
ece7425c22
Reduce flicker in Isearch mode
...
Lazy highlighting now happens immediately when the search string is at
least as long as the value of the new custom variable
`lazy-highlight-no-delay-length`. Also avoid updating the lazy
count in the echo area too often.
* isearch.el (lazy-highlight-no-delay-length): New defcustom.
* isearch.el (lazy-lazy-count-format): Avoid a momentarily incorrect
count when reversing search direction.
* isearch.el (isearch-lazy-highlight-new-loop): Avoid a call to
`isearch-message` that is quickly succeed by a second echo area
update, thus causing flicker.
* isearch.el (isearch-lazy-highlight-new-loop):
Start lazy highlight immediately if appropriate.
* etc/NEWS: Announce the change.
* doc/emacs/search.texi: Document `lazy-highlight-no-delay-length'.
Copyright-paperwork-exempt: yes
2021-01-30 20:48:28 +02:00
Stefan Kangas
3555657585
Remove unused argument from set_frame_menubar (Bug#45759)
...
* src/w32menu.c (set_frame_menubar):
* src/xmenu.c (set_frame_menubar): Remove unused argument.
All callers updated.
2021-01-30 15:59:13 +01:00
Dmitry Gutov
96f20120c9
Also highlight 'conflict' with the warning face
...
* lisp/vc/vc-git.el (vc-git-dir-printer):
Also highlight 'conflict' with the warning face, like
vc-default-dir-printer does already.
2021-01-30 15:42:19 +02:00
Basil L. Contovounesios
f7b9b9a85e
; Use American spelling in etc/NEWS.
2021-01-30 13:26:29 +00:00
Lars Ingebrigtsen
ed2f2cc557
auth-source-search doc string fix
...
* lisp/auth-source.el (auth-source-search): Fix example (bug#36286).
2021-01-30 11:18:01 +01:00
Jared Finder
0e2e1caa0b
* lisp/tab-line.el (tab-line-new-tab): Use tty menus when supported.
2021-01-30 11:31:47 +02:00
Eli Zaretskii
bb652f68fd
New Rmail option 'rmail-show-message-set-modified'
...
* lisp/mail/rmail.el (rmail-show-message-set-modified): New
option.
(rmail-show-message-1): If 'rmail-show-message-set-modified' is
non-nil, don't reset the buffer's modified state. (Bug#45941)
* etc/NEWS: Announce the new option.
2021-01-30 11:26:07 +02:00
Lars Ingebrigtsen
32dc433dbb
Fix vc-hg-rename-file on file names like ~/foo/bar
...
* lisp/vc/vc-hg.el (vc-hg-rename-file): Use absolute file names,
because hg doesn't like getting file names like "~/foo/bar"
(bug#36932).
2021-01-30 08:59:48 +01:00
Jeff Spencer
cc2d3a62c2
Fix interaction between two dired cleanup variables
...
* lisp/dired.el (dired-clean-up-after-deletion): Kill the buffers
if you have `dired-clean-up-buffers-too' set and
`dired-clean-confirm-killing-deleted-buffers' nil (bug#38037).
Copyright-paperwork-exempt: yes
2021-01-30 08:12:57 +01:00
Lars Ingebrigtsen
0fa2a715d4
Improve :foreground description in the manual
...
* doc/lispref/frames.texi (Font and Color Parameters): Make the
description less confusing (bug#38710).
2021-01-30 07:59:30 +01:00
Mauro Aranda
5644ac41c4
Add source to sgml-empty-tags
...
* lisp/textmodes/sgml-mode.el (html-mode): Add "source" as an empty
tag to fix indentation when this element is present (bug#46181).
2021-01-30 07:47:34 +01:00
Lars Ingebrigtsen
90ce2b8034
rmail-summary-mark-deleted optional argument fix
...
* lisp/mail/rmailsum.el (rmail-summary-mark-deleted): Argument N
is optional, so don't assume that it's a number (bug#39076).
2021-01-30 06:58:49 +01:00
Dmitry Gutov
bbad7904e2
vc-dir-mode-map: Remove the mouse-2 binding
...
* lisp/vc/vc-dir.el (vc-dir-mode-map):
Remove the mouse-2 binding (bug#13692).
(vc-dir-mode): Update the docstring accordingly.
(vc-dir-status-mouse-map): New variable.
(vc-default-dir-printer): Use it on the state buttons.
* lisp/vc/vc-git.el (vc-git-dir-printer): Same.
2021-01-30 03:56:47 +02:00
Stefan Kangas
f3f6e84ca6
Use lexical-binding in mpuz.el
...
* lisp/play/mpuz.el: Use lexical-binding. Remove redundant :group
args.
(mpuz-switch-to-window): Minor cleanup.
2021-01-30 00:33:15 +01:00
Stefan Kangas
1a4bb1e2f2
Use lexical-binding in handwrite.el
...
* lisp/play/handwrite.el: Use lexical-binding. Remove redundant
:group args. Minor cleanups.
(handwrite): Minor cleanups.
(handwrite-set-pagenumber-off, handwrite-set-pagenumber-on): Make
comments into docstrings.
2021-01-30 00:32:52 +01:00
Stefan Monnier
295de50329
* test/lisp/electric-tests.el: Fix switch to lexical-binding.
...
(define-electric-pair-test): Don't presume that function values are
self-evaluating.
2021-01-29 16:49:12 -05:00
Mattias Engdegård
7415c66d8b
; * src/process.c (child_signal_read): Don't report EAGAIN as error
2021-01-29 22:28:41 +01:00
Stefan Kangas
47147db9b0
; Silence byte-compiler
...
* lisp/net/sasl-ntlm.el (sasl-ntlm-request):
* lisp/net/sasl.el (sasl-plain-response, sasl-login-response-1)
(sasl-login-response-2, sasl-anonymous-response): Fix warnings
introduced by my previous commit.
2021-01-29 21:06:02 +01:00
Stefan Kangas
c7a86cb7ec
Use lexical-binding in sasl.el and add tests
...
* lisp/net/sasl.el:
* lisp/net/sasl-digest.el:
* lisp/net/sasl-cram.el:
* lisp/net/sasl-ntlm.el: Use lexical-binding.
* test/lisp/net/sasl-tests.el:
* test/lisp/net/sasl-cram-tests.el: New files.
2021-01-29 20:11:38 +01:00
Dmitry Gutov
e86b30d6fd
(xref-revert-buffer): Also 'erase-buffer' when handling a user-error
...
* lisp/progmodes/xref.el (xref-revert-buffer):
Also 'erase-buffer' when handling a user-error (bug#46042).
2021-01-29 15:53:28 +02:00
Eli Zaretskii
75eb2d0e85
Support 'operating-system-release' on MS-Windows
...
* src/w32fns.c (w32_version_string) [WINDOWSNT]: New function.
* src/w32common.h (w32_version_string) [WINDOWSNT]: Add prototype.
* src/editfns.c (init_editfns) [WINDOWSNT]: Produce a non-nil
string with the OS version.
2021-01-29 13:52:31 +02:00
Michael Albinus
83591e1aec
* test/lisp/net/tramp-tests.el (tramp--test-special-characters):
...
Adapt test for docker.
2021-01-29 12:25:36 +01:00
Juri Linkov
840b1c66b4
Use save-mark-and-excursion in query-replace-read-args (bug#45617)
2021-01-29 10:55:16 +02:00
Michael Albinus
4ce5646d59
Fix Bug#45518 in compile.el
...
* lisp/progmodes/compile.el (compilation-get-file-structure):
Avoid call of `file-truename' for remote files. (Bug#45518)
2021-01-29 09:44:31 +01:00
Eli Zaretskii
ae2e2b6acd
Improve doc string of 'operating-system-release'
...
* src/editfns.c (syms_of_editfns) <operating-system-release>: Doc
fix. (Bug#39940)
2021-01-29 09:45:13 +02:00
Sean Whitton
19afd6de25
Fix previous commit regarding revert-buffer-function
...
* simple.el (shell-command, shell-command-on-region): Set
revert-buffer-function buffer-locally, not globally. Also, avoid an
unnecessary call to (current-buffer) by taking advantage of the
closure (bug#46151).
2021-01-29 08:18:52 +01:00
Lars Ingebrigtsen
4e27a260e5
Describe pointer shapes in the manual
...
* doc/lispref/frames.texi (Pointer Shape): Describe what the
typical pointer shapes are (and add `nhdrag') (bug#39246).
2021-01-29 08:16:04 +01:00
Marco Wahl
d4e9d191ae
Add a command for redisplay during keyboard macros
...
* doc/emacs/kmacro.texi (Basic Keyboard Macro): Document it
(bug#39252).
* lisp/kmacro.el (kdb-macro-redisplay): New function.
(kmacro-keymap): Bind it.
2021-01-29 08:01:12 +01:00
Lars Ingebrigtsen
1275dc4711
Improve fontifying of #| ... |# in `lisp-mode'
...
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Fontify the end
delimiter in #| ... |# correctly (bug#39820).
2021-01-29 07:40:06 +01:00
Lars Ingebrigtsen
3f92d00932
operating-system-release doc string improvement
...
* src/editfns.c (syms_of_editfns): Be more precise about what
`operating-system-release' is (bug#39940).
2021-01-29 07:22:14 +01:00
Lars Ingebrigtsen
9fb859010f
flymake-diagnostic-beg/end doc string and error reporting improvement
...
* lisp/progmodes/flymake.el (flymake-diagnostic-beg):
(flymake-diagnostic-end): Improve doc string and error reporting
(bug#39971).
2021-01-29 07:15:35 +01:00
Lars Ingebrigtsen
0b80935d37
Fix position in empty buffers in checkdoc-file-comments-engine
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
Don't give invalid positions on empty buffers (bug#39987).
2021-01-29 07:04:47 +01:00