]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; * src/xdisp.c (Fwindow_text_pixel_size): Another minor fix.
Eli Zaretskii [Fri, 5 Feb 2021 12:27:46 +0000 (14:27 +0200)]
; * src/xdisp.c (Fwindow_text_pixel_size): Another minor fix.

3 years agoFix last change in 'window-text-pixel-size'
Eli Zaretskii [Fri, 5 Feb 2021 12:24:01 +0000 (14:24 +0200)]
Fix last change in 'window-text-pixel-size'

* src/xdisp.c (Fwindow_text_pixel_size): Fix last change: preserve
the original Y coordinate after start_display, instead of zeroing
it out.  Reported by martin rudalics <rudalics@gmx.at>.

3 years agoFontize more automatic variables in makefile-gmake-mode
Lars Ingebrigtsen [Fri, 5 Feb 2021 12:08:50 +0000 (13:08 +0100)]
Fontize more automatic variables in makefile-gmake-mode

* lisp/progmodes/make-mode.el (makefile-gmake-font-lock-keywords):
Fontize the $ in more automatic variables (bug#27842).

3 years agoProtect against killed buffers in term-emulate-terminal
Lars Ingebrigtsen [Fri, 5 Feb 2021 09:13:23 +0000 (10:13 +0100)]
Protect against killed buffers in term-emulate-terminal

* lisp/term.el (term-emulate-terminal): Ensure that the buffer is
still alive before selecting it (bug#46323).  This avoids an error
when saying `C-x k' in an ansi-term buffer.

3 years agoFix repeating complex commands
Sean Whitton [Fri, 5 Feb 2021 09:06:22 +0000 (10:06 +0100)]
Fix repeating complex commands

* lisp/repeat.el (repeat): Fix repeating complex commands
(bug#46290).  This makes `M-: date RET C-x z' work again (like in
Emacs 21, apparently).

3 years agoMake octave-send-region deactivate the region
Lars Ingebrigtsen [Fri, 5 Feb 2021 08:45:49 +0000 (09:45 +0100)]
Make octave-send-region deactivate the region

* lisp/progmodes/octave.el (octave-send-region): Deactivate mark
after sending the region (bug#32282), since this is how these commands
usually work.

3 years agoCorrect the lispref manual about flushing ppss info
Lars Ingebrigtsen [Fri, 5 Feb 2021 08:36:58 +0000 (09:36 +0100)]
Correct the lispref manual about flushing ppss info

* doc/lispref/syntax.texi (Syntax Properties): Correct the
information about flushing the state by copying the text from the
doc string (bug#46274).

3 years ago* lisp/emacs-lisp/checkdoc.el: Doc fix; don't mention built-ins.
Stefan Kangas [Fri, 5 Feb 2021 01:39:49 +0000 (02:39 +0100)]
* lisp/emacs-lisp/checkdoc.el: Doc fix; don't mention built-ins.

3 years agoRemove some unnecessary references to Emacs 18
Stefan Kangas [Fri, 5 Feb 2021 01:27:57 +0000 (02:27 +0100)]
Remove some unnecessary references to Emacs 18

* lisp/progmodes/cmacexp.el:
* lisp/progmodes/f90.el:
* lisp/shell.el: Doc fix; don't mention Emacs 18.

3 years agoRemove Emacs 19 compat code from dcl-mode.el
Stefan Kangas [Fri, 5 Feb 2021 01:21:50 +0000 (02:21 +0100)]
Remove Emacs 19 compat code from dcl-mode.el

* lisp/progmodes/dcl-mode.el: Doc fix.
(dcl-mode-map, dcl-mode): Remove compat code for Emacs 19.

3 years agoRemove Emacs 20 compat code for header-line-format
Stefan Kangas [Fri, 5 Feb 2021 00:33:25 +0000 (01:33 +0100)]
Remove Emacs 20 compat code for header-line-format

* lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-mode):
* lisp/erc/erc.el (erc-update-mode-line-buffer):
* lisp/ibuffer.el (ibuffer-use-header-line): Remove Emacs 20 compat
code; header-line-format is always defined starting with Emacs 21.

3 years ago* lisp/color.el: Remove Emacs 23.2 compat code.
Stefan Kangas [Fri, 5 Feb 2021 00:29:20 +0000 (01:29 +0100)]
* lisp/color.el: Remove Emacs 23.2 compat code.

3 years ago* lisp/textmodes/rst.el (rst-directive): Remove XEmacs compat code.
Stefan Kangas [Fri, 5 Feb 2021 00:27:14 +0000 (01:27 +0100)]
* lisp/textmodes/rst.el (rst-directive): Remove XEmacs compat code.

3 years agoAssume font-lock-mode variable is not void
Stefan Kangas [Fri, 5 Feb 2021 00:14:17 +0000 (01:14 +0100)]
Assume font-lock-mode variable is not void

* lisp/align.el (align-rules-list):
* lisp/cedet/semantic/idle.el
(semantic-idle-summary-useful-context-p):
* lisp/org/org-table.el (org-table-edit-field):
* lisp/org/org.el (org-restart-font-lock):
* lisp/progmodes/antlr-mode.el (antlr-language-option-extra):
* lisp/progmodes/idlwave.el (idlwave-choose):
* lisp/progmodes/sql.el (sql-product-font-lock):
* lisp/progmodes/verilog-mode.el
(verilog-save-font-no-change-functions, verilog-preprocess):
* lisp/vc/cvs-status.el:
* lisp/vc/smerge-mode.el (smerge-mode):
* lisp/woman.el (woman-decode-buffer): Assume font-lock-mode variable
is not void; it is preloaded.

3 years agocperl-mode: eliminate dead code
Harald Jörg [Thu, 4 Feb 2021 19:52:20 +0000 (20:52 +0100)]
cperl-mode: eliminate dead code

* lisp/progmodes/cperl-mode.el (cperl-update-syntaxification):
Eliminate check for `syntax-propertize-rules` (always true)
and eliminate unused first parameter.
(cperl-mode): Eliminate obsolete `font-lock-syntactic-keywords`,
Eliminate check for `syntax-propertize-rules` (always true).
(cperl-fontify-syntaxically): Eliminate call to
no-longer-existing function `edebug-backtrace` (bug#46302).

3 years agoAvoid overwriting minibuffer prompt by keystrokes echo
Eli Zaretskii [Thu, 4 Feb 2021 17:35:07 +0000 (19:35 +0200)]
Avoid overwriting minibuffer prompt by keystrokes echo

* src/lread.c (Fread_char, Fread_event, Fread_char_exclusive):
Call cancel_echoing to make sure the prompt is not obscured by
keystrokes echo.  (Bug#46243)

3 years agoDeactivate region in `C-c C-r' in python-mode
Lars Ingebrigtsen [Thu, 4 Feb 2021 17:24:28 +0000 (18:24 +0100)]
Deactivate region in `C-c C-r' in python-mode

* lisp/progmodes/python.el (python-shell-send-region): Deactivate
mark after executing (bug#28789).  This is how this command worked
in Emacs 24, apparently.

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 4 Feb 2021 16:02:27 +0000 (18:02 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoFix 'window-text-pixel-size' for short spans of text
Eli Zaretskii [Thu, 4 Feb 2021 16:00:29 +0000 (18:00 +0200)]
Fix 'window-text-pixel-size' for short spans of text

* src/xdisp.c (Fwindow_text_pixel_size): Support the use case
where FROM and TO belong to the same screen line.  Reported by
Yuan Fu <casouri@gmail.com>.

3 years agoImprove filling of Emacs Lisp doc strings
Lars Ingebrigtsen [Thu, 4 Feb 2021 15:12:41 +0000 (16:12 +0100)]
Improve filling of Emacs Lisp doc strings

* lisp/emacs-lisp/lisp-mode.el (lisp-fill-paragraph): When filling
a Lisp string, try to avoid filling bits that follow it
(bug#28937).

3 years agoAllow a :variable keyword in define-globalized-minor-mode
Lars Ingebrigtsen [Thu, 4 Feb 2021 14:22:40 +0000 (15:22 +0100)]
Allow a :variable keyword in define-globalized-minor-mode

* doc/lispref/modes.texi (Defining Minor Modes): Document it.
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Allow specifying a :variable to be used if the underlying mode has
a divergent variable to store the state (bug#29081).

3 years agoFix previous ibuffer patch
Lars Ingebrigtsen [Thu, 4 Feb 2021 13:36:58 +0000 (14:36 +0100)]
Fix previous ibuffer patch

* lisp/ibuffer.el (ibuffer-last-sorting-mode): Restore variable
removed by mistake in previous change.

3 years agoMake the recency sorting stable when we have inverted sorting
Lars Ingebrigtsen [Thu, 4 Feb 2021 11:59:16 +0000 (12:59 +0100)]
Make the recency sorting stable when we have inverted sorting

* lisp/ibuffer.el (recency): Remove.
(recency): New macro function so that sorting by recency is
stable when inverted sorting is switched on (bug#30129).

3 years agoRevert "Tweak how ibuffer-invert-sorting updates the buffer"
Lars Ingebrigtsen [Thu, 4 Feb 2021 11:32:08 +0000 (12:32 +0100)]
Revert "Tweak how ibuffer-invert-sorting updates the buffer"

This reverts commit b8b3263eab688b97530a7bf7d565b084df56ea08.

This doesn't fix other instances of ibuffer-redisplay

3 years agoTweak how ibuffer-invert-sorting updates the buffer
Lars Ingebrigtsen [Thu, 4 Feb 2021 11:26:00 +0000 (12:26 +0100)]
Tweak how ibuffer-invert-sorting updates the buffer

* lisp/ibuf-ext.el (ibuffer-invert-sorting): Enable calling this
function repeatedly with more predictable results (bug#30129).

3 years agoDon't ask the user to make a bug report on missing arglists
Lars Ingebrigtsen [Thu, 4 Feb 2021 11:08:46 +0000 (12:08 +0100)]
Don't ask the user to make a bug report on missing arglists

* lisp/help-fns.el (help-fns--signature): Don't ask the user to
make a bug report (bug#30223) because the symbol may very well be
one that the user has defined themselves.
(help-fns-function-description-header): Ditto.

3 years agoClarify the "Sentinels" node in the lispref manual
Lars Ingebrigtsen [Thu, 4 Feb 2021 11:02:53 +0000 (12:02 +0100)]
Clarify the "Sentinels" node in the lispref manual

* doc/lispref/processes.texi (Sentinels): Mention "run" and that
the strings can be anything (bug#30461).

3 years agoAllow eshell to have an "erasedups"-like history
Lars Ingebrigtsen [Thu, 4 Feb 2021 10:55:44 +0000 (11:55 +0100)]
Allow eshell to have an "erasedups"-like history

* lisp/eshell/em-hist.el (eshell-add-input-to-history): Use the
new value (bug#30466).
(eshell-hist-ignoredups): Allow "erasedups"-like value.

3 years agoUpdate description of 'tramp-crypt-remove-directory'
Robert Pluim [Thu, 4 Feb 2021 10:24:13 +0000 (11:24 +0100)]
Update description of 'tramp-crypt-remove-directory'

* doc/misc/tramp.texi (Keeping files encrypted): Correct name of
function to use to indicate files should no longer be encrypted,
and update its description.

3 years agoBe stricter when going back to the previous node in Info-find-node-2
Lars Ingebrigtsen [Thu, 4 Feb 2021 10:23:21 +0000 (11:23 +0100)]
Be stricter when going back to the previous node in Info-find-node-2

* lisp/info.el (Info-find-node-2): When going back to the previous
node, be strict (bug#31137) since we have the exact node name.

3 years ago* lisp/replace.el (occur-rename-buffer): Check for overlay (bug#46268).
Juri Linkov [Thu, 4 Feb 2021 09:17:54 +0000 (11:17 +0200)]
* lisp/replace.el (occur-rename-buffer): Check for overlay (bug#46268).

(occur-1): Don't use occur--garbage-collect-revert-args
when reverting the Occur buffer with same bufs.

3 years agoFix epg filtering out keys that contain revoked IDs
Lars Ingebrigtsen [Thu, 4 Feb 2021 08:25:28 +0000 (09:25 +0100)]
Fix epg filtering out keys that contain revoked IDs

* lisp/epg.el (epg--filter-revoked-keys): Only filter out the
revoked user ids, not the entire key that contains revoked user
ids (bug#46138).

3 years agoDon't set removed variable facemenu-unlisted-faces
Stefan Kangas [Thu, 4 Feb 2021 07:16:33 +0000 (08:16 +0100)]
Don't set removed variable facemenu-unlisted-faces

* lisp/vc/ediff-init.el (ediff-hide-face): Redefine as obsolete
function alias for 'ignore'; the variable 'facemenu-unlisted-faces'
was removed in Emacs 22.  Remove all calls.

* lisp/mh-e/mh-e.el: Add comment saying that the variable
'facemenu-unlisted-faces' is removed.

3 years ago* lisp/man.el (Man-notify-method): Remove Emacs 19.28 compat code.
Stefan Kangas [Thu, 4 Feb 2021 07:12:22 +0000 (08:12 +0100)]
* lisp/man.el (Man-notify-method): Remove Emacs 19.28 compat code.

3 years agoUse require instead of boundp+load-library in double.el
Stefan Kangas [Thu, 4 Feb 2021 04:02:42 +0000 (05:02 +0100)]
Use require instead of boundp+load-library in double.el

* lisp/double.el (isearch): Use require instead of
boundp+load-library.

3 years agoRemove some unnecessary references to Emacs 19
Stefan Kangas [Thu, 4 Feb 2021 03:53:02 +0000 (04:53 +0100)]
Remove some unnecessary references to Emacs 19

* lisp/emacs-lisp/elp.el:
* lisp/mouse-copy.el:
* lisp/mouse-drag.el:
* lisp/progmodes/simula.el (simula-mode-map):
* lisp/term.el (term-matching-input-from-input-string):
* lisp/vcursor.el: Doc fix; don't mention Emacs 19.

3 years agoRemove XEmacs compat code from edebug.el
Stefan Kangas [Thu, 4 Feb 2021 03:30:03 +0000 (04:30 +0100)]
Remove XEmacs compat code from edebug.el

* lisp/emacs-lisp/edebug.el (edebug-window-live-p, edebug-mark):
Make obsolete.  Update callers.

3 years agoBind default-directory to the project root
Dmitry Gutov [Thu, 4 Feb 2021 01:38:27 +0000 (03:38 +0200)]
Bind default-directory to the project root

* lisp/progmodes/project.el (project-find-regexp):
Bind default-directory to the project root, to save this value
in the resulting buffer (esp. if the project selector was used,
(https://lists.gnu.org/archive/html/emacs-devel/2021-02/msg00140.html).
(project-or-external-find-regexp): Same.

3 years agoTramp code cleanup
Michael Albinus [Wed, 3 Feb 2021 17:48:09 +0000 (18:48 +0100)]
Tramp code cleanup

* lisp/net/tramp.el (tramp-signal-hook-function)
(tramp-handle-access-file, tramp-handle-copy-directory)
(tramp-handle-directory-files, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-load):
* lisp/net/tramp-adb.el (tramp-adb-handle-directory-files-and-attributes)
(tramp-adb-handle-make-directory)
(tramp-adb-handle-file-local-copy, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-crypt.el (tramp-crypt-do-copy-or-rename-file)
(tramp-crypt-handle-directory-files)
(tramp-crypt-handle-make-directory):
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error)
(tramp-gvfs-do-copy-or-rename-file)
(tramp-gvfs-handle-make-directory):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
(tramp-rclone-handle-directory-files):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
(tramp-sh-handle-directory-files-and-attributes)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-make-directory)
(tramp-sh-handle-file-local-copy)
(tramp-sh-inotifywait-process-filter):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-directory-files)
(tramp-smb-handle-file-local-copy)
(tramp-smb-handle-make-directory, tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Unify error report.

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler): Sync args
with other `tramp-*-file-name-handler'.

* lisp/net/tramp-compat.el (tramp-error): Declare.
(tramp-compat-file-missing): New defsubst.

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Handle volatile files.
(tramp-gvfs-set-attribute): New defun.
(tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-times)
(tramp-gvfs-handle-set-file-uid-gid): Use it.

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
Use `msg-operation'.

* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Remove superfluous `format:
(tramp-smb-maybe-open-connection): Simplify loop.

* lisp/net/tramp.el (tramp-handle-file-truename): Drop volume letter from
symlinked files.

* test/lisp/net/tramp-tests.el (tramp--test-gdrive-p): New defun.
(tramp--test-nextcloud-p): Remove.
(tramp-test40-special-characters-with-ls): Do not skip on MS Windows.
(tramp-test41-utf8): Skip if needed.

3 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:08 +0000 (08:11 -0800)]
Merge from origin/emacs-27

7355209f53 (origin/emacs-27) * lisp/window.el (recenter-top-bottom): ...
dc78f8a4ea (emacs-27) url-http.el: Special-case NTLM authentication
85b0137858 * lisp/isearch.el (isearch-lazy-highlight): Fix defcustom ...
cbeda21083 Sync latest SKK-JISYO.L

3 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:08 +0000 (08:11 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

0bc4b003d7 ; emacs-26 → emacs-27

3 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:08 +0000 (08:11 -0800)]
Merge from origin/emacs-27

9c75434173 Fix build failure on macOS 10.7 (bug#46036)
ca44ea18ef Improve documentation of auto-resize-tool/tab-bars

3 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:08 +0000 (08:11 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

9e45c29224 (xref-revert-buffer): Also 'erase-buffer' when handling a ...

3 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:08 +0000 (08:11 -0800)]
Merge from origin/emacs-27

74a71c41e0 (tag: emacs-27.1.91) Update files for 27.1.91 pretest

# Conflicts:
# ChangeLog.3
# etc/AUTHORS
# lisp/ldefs-boot.el

3 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 3 Feb 2021 16:11:04 +0000 (08:11 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

86a2207d92 Bump Emacs version to 27.1.91

3 years agoMake backslash characters no longer escape in `f90-mode'
Lars Ingebrigtsen [Wed, 3 Feb 2021 13:36:17 +0000 (14:36 +0100)]
Make backslash characters no longer escape in `f90-mode'

* lisp/progmodes/f90.el (f90-backslash-not-special): Make obsolete
(bug#32766).
(f90-mode-syntax-table): Make the backslash be a normal
(non-escape) character, which is the default since about 2007 (and
F2K): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34203

3 years agoUpdate lisp/progmodes/verilog-mode.el
Wilson Snyder [Wed, 3 Feb 2021 04:22:44 +0000 (23:22 -0500)]
Update lisp/progmodes/verilog-mode.el

* lisp/progmodes/verilog-mode.el: Cleanup compile-time warning
suppression.  Use underscore for unused arguments and other style
cleanups.  Use '# for function references.  By Stefan Monnier.
(verilog-auto-reset, verilog-sig-tieoff):
Fix AUTORESET '0 (#1714). Reported by Paul Adams.
(verilog-simplify-range-expression):
Fix AUTOWIRE simplifying X/Y where there is a remainder (#1712).
Reported by Joachim Lechner.
(verilog-read-sub-decls-expr):
Fix multiplication in multidimensional AUTOINST output (#1698).
Reported by alanamckee.
(verilog-at-constraint-p, verilog-at-streaming-op-p, verilog-streaming-op-re):
Add streaming operator support (#1692) (#1516),
(verilog-auto-assign-modport, verilog-auto-inout-modport):
Support adding prefix to AUTOASSIGNMODPORT and AUTOINOUTMODPORT (#1690).
(verilog-signals-matching-dir-re):
Fix error when matching regexp with 2D packed memory.
Reported by Chris DeMarco.
(verilog-declaration-core-re): Allow parameter
declaration statements to align like any other declaration (#1683).
Suggested by Vinam Arora.
(verilog-auto-inout, verilog-auto-inout-in)
(verilog-auto-inout-module, verilog-auto-input, verilog-auto-inst)
(verilog-auto-inst-param, verilog-auto-output-every)
(verilog-signals-matching-regexp)
(verilog-signals-not-matching-regexp):
When "?!" is at the front of a signal-matching regexp, invert it.
(verilog-declaration-varname-matcher)
(verilog-highlight-max-lookahead, verilog-mode)
(verilog-single-declaration-end) (verilog-font-lock-keywords-1):
Improve syntax highlighting in declaration statements, and support
multi-line declarations, #1681.  Reported by Vinam Arora.

3 years agoCC Mode: Prevent "const" inside an identifier being recognized as the keyword
Alan Mackenzie [Tue, 2 Feb 2021 20:34:42 +0000 (20:34 +0000)]
CC Mode: Prevent "const" inside an identifier being recognized as the keyword

This fixes bug #45560.

* lisp/progmodes/cc-engine.el (c-forward-declarator)
(c-forward-decl-or-cast-1): Amend certain regexp match numbers on account of
the change below.  Surround some looking-at calls with save-match-data.

* lisp/progmodes/cc-langs.el (c-type-decl-prefix-keywords-key): New lang
const.
(c-type-decl-prefix-key): Reformulate to match operators and keywords
separately, using the new lang const (above).

3 years ago* lisp/gnus/gnus-art.el: Fix misuse of `standard-value`.
Stefan Monnier [Tue, 2 Feb 2021 19:39:28 +0000 (14:39 -0500)]
* lisp/gnus/gnus-art.el: Fix misuse of `standard-value`.

* lisp/custom.el (custom--standard-value): New function.

* lisp/gnus/gnus-art.el: (gnus-article-browse-html-parts)
(gnus-article-browse-html-article):
* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
* lisp/startup.el (command-line): Use it.

3 years ago* lisp/gnus/gnus-group.el: Fix a regression due to lexical scoping
Stefan Monnier [Tue, 2 Feb 2021 19:12:17 +0000 (14:12 -0500)]
* lisp/gnus/gnus-group.el: Fix a regression due to lexical scoping

(gnus-group-highlight): Improve docstring.
(gnus-group-update-eval-form): Add `group` and `method` to the vars
provided to `eval`.

3 years ago* lisp/window.el (recenter-top-bottom): Clarify doc string.
Eli Zaretskii [Tue, 2 Feb 2021 16:25:31 +0000 (18:25 +0200)]
* lisp/window.el (recenter-top-bottom): Clarify doc string.

3 years agoHandle errors in `comint-strip-ctrl-m' in some cases
Lars Ingebrigtsen [Tue, 2 Feb 2021 15:11:13 +0000 (16:11 +0100)]
Handle errors in `comint-strip-ctrl-m' in some cases

* lisp/comint.el (comint-strip-ctrl-m): Don't signal errors when
used noninteractively (bug#33115).

3 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Also set `comment-end-skip`
Stefan Monnier [Tue, 2 Feb 2021 15:08:44 +0000 (10:08 -0500)]
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Also set `comment-end-skip`

3 years agoFix |# fontification in lisp-mode
chuntaro [Tue, 2 Feb 2021 09:18:28 +0000 (10:18 +0100)]
Fix |# fontification in lisp-mode

* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Give the |# the
correct (font-lock-comment-delimited-face) face (bug#39820).

Copyright-paperwork-exempt: yes

3 years agoHave `dired-mode' refer to Customize instead of listing some variables
Lars Ingebrigtsen [Tue, 2 Feb 2021 09:10:39 +0000 (10:10 +0100)]
Have `dired-mode' refer to Customize instead of listing some variables

* lisp/dired.el (dired-mode): Punt to Customize instead of listing
some of the dired variables (bug#46239).

3 years agoPrefer defvar-local in remaining libraries
Stefan Kangas [Tue, 2 Feb 2021 08:55:40 +0000 (09:55 +0100)]
Prefer defvar-local in remaining libraries

* lisp/align.el (align-mode-rules-list)
(align-mode-exclude-rules-list):
* lisp/bookmark.el (bookmark-current-bookmark)
(bookmark-annotation-name)
(bookmark--annotation-from-bookmark-list):
* lisp/calc/calc-embed.el (calc-embedded-all-active)
(calc-embedded-some-active):
* lisp/comint.el (comint-password-function):
* lisp/completion.el (completion-syntax-table):
* lisp/dframe.el (dframe-track-mouse-function)
(dframe-help-echo-function, dframe-mouse-click-function)
(dframe-mouse-position-function, dframe-timer)
(dframe-attached-frame, dframe-controlled):
* lisp/ehelp.el (electric-help-orig-major-mode):
* lisp/eshell/esh-util.el (eshell-path-env):
* lisp/expand.el (expand-pos, expand-index, expand-point):
* lisp/face-remap.el (text-scale-mode-remapping)
(text-scale-mode-lighter, text-scale-mode-amount)
(text-scale-remap-header-line, buffer-face-mode-remapping):
* lisp/ffap.el (ffap-menu-alist):
* lisp/files-x.el (connection-local-variables-alist):
* lisp/foldout.el (foldout-fold-list, foldout-mode-line-string):
* lisp/follow.el (follow-start-end-invalid):
* lisp/forms.el (forms--mode-setup):
* lisp/gnus/message.el (message-cross-post-old-target)
(message-options):
* lisp/help-mode.el (help-xref-stack, help-xref-forward-stack)
(help-xref-stack-item, help-xref-stack-forward-item):
* lisp/hexl.el (hexl-mode--old-var-vals, hexl-ascii-overlay):
* lisp/hilit-chg.el (hilit-chg-string):
* lisp/ido.el (ido-eoinput):
* lisp/imenu.el (imenu-generic-expression)
(imenu-create-index-function, imenu-default-goto-function)
(imenu-prev-index-position-function)
(imenu-extract-index-name-function, imenu-name-lookup-function)
(imenu-syntax-alist, imenu-case-fold-search):
* lisp/jka-compr.el (jka-compr-really-do-compress):
* lisp/language/ethio-util.el (ethio-prefer-ascii-space):
* lisp/leim/quail/hangul.el (hangul-input-method-help-text):
* lisp/leim/quail/japanese.el (quail-japanese-package-saved):
* lisp/linum.el (linum-overlays, linum-available):
* lisp/man.el (Man-original-frame, Man-arguments, Man--sections)
(Man--refpages, Man-page-list, Man-current-page)
(Man-page-mode-string):
* lisp/pcomplete.el (pcomplete-current-completions)
(pcomplete-last-completion-length)
(pcomplete-last-completion-stub, pcomplete-last-completion-raw)
(pcomplete-last-window-config, pcomplete-window-restore-timer):
* lisp/reveal.el (reveal-open-spots, reveal-last-tick):
* lisp/ruler-mode.el (ruler-mode):
* lisp/scroll-lock.el (scroll-lock-preserve-screen-pos-save):
* lisp/server.el (server-buffer-clients, server-existing-buffer):
* lisp/tab-line.el (tab-line-exclude):
* lisp/tar-mode.el (tar-data-buffer, tar-data-swapped):
* lisp/thumbs.el (thumbs-current-tmp-filename)
(thumbs-current-image-filename, thumbs-extra-images)
(thumbs-image-num, thumbs-buffer, thumbs-marked-list):
* lisp/tutorial.el (tutorial--point-before-chkeys)
(tutorial--point-after-chkeys, tutorial--lang):
* lisp/url/url-vars.el (url-current-object)
(url-current-mime-headers, url-current-lastloc):
* lisp/view.el (view-mode, view-old-buffer-read-only)
(view-old-Helper-return-blurb, view-page-size)
(view-half-page-size, view-last-regexp, view-return-to-alist)
(view-exit-action, view-overlay):
* lisp/wid-edit.el (widget-global-map, widget-field-new)
(widget-field-list, widget-field-last, widget-field-was):
* lisp/woman.el (woman-imenu-done): Prefer defvar-local.

3 years agoRemove redundant :group args in play/*.el
Stefan Kangas [Mon, 1 Feb 2021 15:35:48 +0000 (16:35 +0100)]
Remove redundant :group args in play/*.el

* lisp/play/bubbles.el:
* lisp/play/cookie1.el:
* lisp/play/decipher.el:
* lisp/play/dunnet.el:
* lisp/play/gametree.el:
* lisp/play/gomoku.el:
* lisp/play/hanoi.el: Remove redundant :group args.

3 years ago; Move obsolete version variables further down
Stefan Kangas [Mon, 1 Feb 2021 15:03:10 +0000 (16:03 +0100)]
; Move obsolete version variables further down

* lisp/dframe.el:
* lisp/speedbar.el: Move obsolete variables from the top of the file
to the bottom, where they don't obscure the license information.

3 years agoBind 'revert-buffer' to 'C-x g' globally
Sean Whitton [Tue, 2 Feb 2021 08:44:44 +0000 (09:44 +0100)]
Bind 'revert-buffer' to 'C-x g' globally

* lisp/bindings.el: Bind 'revert-buffer' to 'C-x g' globally.
* doc/emacs/files.texi: Replace 'M-x revert-buffer' with 'C-x g'.
* etc/NEWS: Document the change (bug#46151).

3 years agoFix up invalid_syntax error signalling
Lars Ingebrigtsen [Tue, 2 Feb 2021 08:26:02 +0000 (09:26 +0100)]
Fix up invalid_syntax error signalling

* src/lread.c (invalid_syntax_lisp): Instead of putting the
line/column in a string, signal an error containing the numbers as
data.  This allows for easier post-processing and is how other
similar errors (like (forward-sexp 1)) do it.

3 years agoruby-syntax-propertize: Fix certain cases following ::
Dmitry Gutov [Tue, 2 Feb 2021 01:47:46 +0000 (03:47 +0200)]
ruby-syntax-propertize: Fix certain cases following ::

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Make sure to backtrack if the "symbols with special characters"
rule is aborted because of preceding colon.

3 years agoMake syntax errors say the line/column they appear at
Lars Ingebrigtsen [Mon, 1 Feb 2021 16:04:17 +0000 (17:04 +0100)]
Make syntax errors say the line/column they appear at

* src/lisp.h: Add count_lines prototype.
* src/lread.c (invalid_syntax_lisp): New function (bug#36970).
(invalid_syntax): Extend function to take a readcharfun parameter.
(read_emacs_mule_char, character_name_to_code): Pass in.
(read_escape, invalid_radix_integer, read1): Ditto.

* src/xdisp.c (count_lines): Add a more succinct shim over
display_count_lines.

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Feb 2021 14:28:21 +0000 (06:28 -0800)]
; Auto-commit of loaddefs files.

3 years ago* test/src/minibuf-tests.el (test-inhibit-interaction): Fix test.
Stefan Kangas [Mon, 1 Feb 2021 05:47:36 +0000 (06:47 +0100)]
* test/src/minibuf-tests.el (test-inhibit-interaction): Fix test.

3 years agoRemove another variable obsolete since Emacs 23.2
Stefan Kangas [Mon, 1 Feb 2021 05:12:15 +0000 (06:12 +0100)]
Remove another variable obsolete since Emacs 23.2

* src/keymap.c (syms_of_keymap, Fdefine_key):
* lisp/subr.el (define-key-rebound-commands): Remove variable obsolete
since Emacs 23.2.

3 years ago* lisp/hi-lock.el (hi-lock-mode): Doc fix; don't mention Emacs 21.
Stefan Kangas [Mon, 1 Feb 2021 04:46:13 +0000 (05:46 +0100)]
* lisp/hi-lock.el (hi-lock-mode): Doc fix; don't mention Emacs 21.

3 years agoMake XEmacs compat alias obsolete in allout-widgets.el
Stefan Kangas [Mon, 1 Feb 2021 04:34:40 +0000 (05:34 +0100)]
Make XEmacs compat alias obsolete in allout-widgets.el

* lisp/allout-widgets.el (allout-frame-property): Redefine compat
alias as obsolete function alias for 'frame-parameter'.
(allout-fetch-icon-image): Update caller.

3 years agoRedefine two functions as regular defuns
Stefan Kangas [Mon, 1 Feb 2021 04:33:02 +0000 (05:33 +0100)]
Redefine two functions as regular defuns

* lisp/dframe.el (dframe-popup-kludge, dframe-mouse-event-p):
Redefine as regular defun.

3 years agoMake two eshell aliases obsolete
Stefan Kangas [Mon, 1 Feb 2021 04:32:16 +0000 (05:32 +0100)]
Make two eshell aliases obsolete

* lisp/eshell/esh-util.el (eshell-user-name): Redefine as obsolete
function alias for 'user-login-name'.
(eshell-copy-tree): Redefine as obsolete function alias for
'copy-tree'.
* lisp/eshell/esh-cmd.el (eshell-do-eval): Don't use above
obsolete alias.

3 years agoAdd cross-references to defvar-local
Stefan Kangas [Mon, 1 Feb 2021 00:43:29 +0000 (01:43 +0100)]
Add cross-references to defvar-local

* src/data.c (Fmake_variable_buffer_local):
* src/eval.c (Fdefvar): Add cross-references to 'defvar-local'.

3 years agoFix indentation of non-comment HTML with -- in it
Lars Ingebrigtsen [Mon, 1 Feb 2021 09:42:22 +0000 (10:42 +0100)]
Fix indentation of non-comment HTML with -- in it

* lisp/textmodes/sgml-mode.el (sgml-comment-indent-new-line): Only
indent as if we're in a comment if syntax-ppss says that we're in
a comment (bug#36227).

3 years ago* lisp/eshell/em-cmpl.el (eshell--complete-commands-list): Fix last fix
Stefan Monnier [Mon, 1 Feb 2021 03:39:45 +0000 (22:39 -0500)]
* lisp/eshell/em-cmpl.el (eshell--complete-commands-list): Fix last fix

Complete `*firef` to `*firefox` rather than to `firefox`.

3 years ago* lisp/eshell/em-cmpl.el: Try and fix bug#41423
Stefan Monnier [Mon, 1 Feb 2021 00:27:10 +0000 (19:27 -0500)]
* lisp/eshell/em-cmpl.el: Try and fix bug#41423

(eshell--complete-commands-list): Rename from `eshell-complete-commands-list`.
Return a (dynamic) completion table rather than a list of completions.
Use `dolist` and `push`.

3 years agourl-http.el: Special-case NTLM authentication
Thomas Fitzsimmons [Sun, 31 Jan 2021 23:36:52 +0000 (18:36 -0500)]
url-http.el: Special-case NTLM authentication

* lisp/url/url-http.el (url-http-handle-authentication): Do not
signal an error on NTLM authorization strings.  (Bug#43566)

3 years ago* admin/*.el: Use lexical-binding
Stefan Monnier [Sun, 31 Jan 2021 23:00:39 +0000 (18:00 -0500)]
* admin/*.el: Use lexical-binding

* admin/admin.el: Use lexical-binding.
(manual-misc-manuals): Pass a limit to `looking-back`.
(reminder-for-release-blocking-bugs): Don't use `_` for a real variable.

* admin/authors.el: Use lexical-binding.
(authors-disambiguate-file-name): Remove unused var `parent`.

* admin/cus-test.el:
* admin/find-gc.el:
* admin/gitmerge.el: Use lexical-binding.

3 years agoMerge remote-tracking branch 'origin/scratch/lexical-gnus' into trunk
Stefan Monnier [Sun, 31 Jan 2021 22:38:38 +0000 (17:38 -0500)]
Merge remote-tracking branch 'origin/scratch/lexical-gnus' into trunk

3 years ago* lisp/gnus/gnus-group.el: Defvar all the `gnus-tmp-*` vars
Stefan Monnier [Sun, 31 Jan 2021 22:32:11 +0000 (17:32 -0500)]
* lisp/gnus/gnus-group.el: Defvar all the `gnus-tmp-*` vars

These were collected via

    sed -n -e 's/.*\(gnus-tmp-[^     ()]*\).*/(defvar \1)/p' \
        lisp/gnus/gnus-group.el

3 years ago* lisp/isearch.el (isearch-lazy-highlight): Fix defcustom type (bug#46208)
Juri Linkov [Sun, 31 Jan 2021 21:47:31 +0000 (23:47 +0200)]
* lisp/isearch.el (isearch-lazy-highlight): Fix defcustom type (bug#46208)

3 years ago; * lisp/double.el: Delete cruft dating back to 1994.
Stefan Kangas [Sun, 31 Jan 2021 18:57:11 +0000 (19:57 +0100)]
; * lisp/double.el: Delete cruft dating back to 1994.

3 years agoPrefer defvar-local in preloaded files
Stefan Kangas [Sun, 31 Jan 2021 18:46:20 +0000 (19:46 +0100)]
Prefer defvar-local in preloaded files

* lisp/abbrev.el:
* lisp/bindings.el (mode-line-mule-info, mode-line-modified)
(mode-line-remote, mode-line-process)
(mode-line-buffer-identification):
* lisp/buff-menu.el (Buffer-menu-files-only):
* lisp/files.el (buffer-file-number, buffer-file-read-only)
(local-write-file-hooks, write-contents-functions)
(file-local-variables-alist, dir-local-variables-alist)
(save-buffer-coding-system, buffer-save-without-query):
* lisp/font-core.el (font-lock-defaults):
* lisp/font-lock.el (font-lock-keywords-case-fold-search)
(font-lock-syntactically-fontified)
(font-lock-extend-after-change-region-function)
(font-lock-extend-region-functions, font-lock-major-mode):
* lisp/menu-bar.el (list-buffers-directory):
* lisp/simple.el (next-error--message-highlight-overlay)
(next-error-buffer, next-error-function)
(next-error-move-function, goto-line-history)
(minibuffer-default-add-done, undo-extra-outer-limit):
* lisp/tab-bar.el (tab-switcher-column):
* lisp/term/ns-win.el (ns-select-overlay):
* lisp/window.el (window-size-fixed, window-area-factor)
(window-group-start-function, window-group-end-function)
(set-window-group-start-function)
(recenter-window-group-function)
(pos-visible-in-window-group-p-function)
(selected-window-group-function)
(move-to-window-group-line-function): Prefer defvar-local.

3 years agoPrefer defvar-local in mail/*.el
Stefan Kangas [Sun, 31 Jan 2021 18:28:22 +0000 (19:28 +0100)]
Prefer defvar-local in mail/*.el

* lisp/mail/emacsbug.el (report-emacs-bug-send-command)
(report-emacs-bug-send-hook):
* lisp/mail/reporter.el (reporter-initial-text):
* lisp/mail/supercite.el (sc-mail-info, sc-attributions):
* lisp/mail/rmail.el (rmail-buffer-swapped, rmail-view-buffer):
Prefer defvar-local.

3 years agoPrefer defvar-local in progmodes/*.el
Stefan Kangas [Sun, 31 Jan 2021 17:46:17 +0000 (18:46 +0100)]
Prefer defvar-local in progmodes/*.el

This skips libraries that might want compatibility with Emacs 24.2.

* lisp/progmodes/compile.el (compilation-auto-jump-to-next)
(compilation--previous-directory-cache, compilation--parsed)
(compilation-gcpro):
* lisp/progmodes/cpp.el (cpp-overlay-list, cpp-edit-buffer)
(cpp-parse-symbols, cpp-edit-symbols):
* lisp/progmodes/ebnf2ps.el (ebnf-eps-upper-x, ebnf-eps-upper-y)
(ebnf-eps-prod-width, ebnf-eps-max-height, ebnf-eps-max-width):
* lisp/progmodes/f90.el (f90-cache-position):
* lisp/progmodes/gud.el (gud-marker-acc):
* lisp/progmodes/js.el (js--quick-match-re)
(js--quick-match-re-func, js--cache-end, js--last-parse-pos)
(js--state-at-last-parse-pos, js--tmp-location):
* lisp/progmodes/octave.el (inferior-octave-directory-tracker-resync):
* lisp/progmodes/sh-script.el (sh-header-marker): Prefer defvar-local.

3 years agoPrefer defvar-local in textmodes/*.el
Stefan Kangas [Sun, 31 Jan 2021 17:45:47 +0000 (18:45 +0100)]
Prefer defvar-local in textmodes/*.el

This skips libraries that might want compatibility with Emacs 24.2.

* lisp/textmodes/artist.el (artist-curr-go)
(artist-line-char-set, artist-line-char, artist-fill-char-set)
(artist-fill-char, artist-erase-char, artist-default-fill-char)
(artist-draw-region-min-y, artist-draw-region-max-y)
(artist-borderless-shapes):
* lisp/textmodes/css-mode.el (css--at-ids, css--bang-ids)
(css--nested-selectors-allowed):
* lisp/textmodes/enriched.el (enriched-old-bindings):
* lisp/textmodes/flyspell.el (flyspell-generic-check-word-predicate)
(flyspell-consider-dash-as-word-delimiter-flag)
(flyspell-dash-dictionary, flyspell-dash-local-dictionary)
(flyspell-word-cache-start, flyspell-word-cache-end)
(flyspell-word-cache-word, flyspell-word-cache-result)
(flyspell-changes, flyspell-auto-correct-pos)
(flyspell-auto-correct-region, flyspell-auto-correct-ring)
(flyspell-auto-correct-word):
* lisp/textmodes/ispell.el (ispell-local-dictionary-overridden)
(ispell-local-pdict, ispell-buffer-session-localwords):
* lisp/textmodes/refill.el (refill-ignorable-overlay)
(refill-doit):
* lisp/textmodes/sgml-mode.el (html--buffer-classes-cache)
(html--buffer-ids-cache):
* lisp/textmodes/table.el (table-mode-indicator):
* lisp/textmodes/tex-mode.el (tex-send-command-modified-tick):
* lisp/textmodes/two-column.el (2C-autoscroll-start, 2C-mode):
Prefer defvar-local.

3 years agoPrefer defvar-local in cedet
Stefan Kangas [Sun, 31 Jan 2021 15:54:54 +0000 (16:54 +0100)]
Prefer defvar-local in cedet

* lisp/cedet/ede.el (ede-object-root-project)
(ede-object-project, ede-object):
* lisp/cedet/mode-local.el (mode-local-symbol-table):
* lisp/cedet/semantic.el (semantic--parse-table)
(semantic-symbol->name-assoc-list)
(semantic-symbol->name-assoc-list-for-type-parts)
(semantic-case-fold, semantic--buffer-cache)
(semantic-unmatched-syntax-cache)
(semantic-unmatched-syntax-cache-check, semantic-parser-name)
(semantic--completion-cache, semantic-parse-tree-state)
(semantic-init-mode-hook, semantic-parser-warnings):
* lisp/cedet/semantic/bovine.el
(semantic-bovinate-nonterminal-check-obarray):
* lisp/cedet/semantic/complete.el (semantic-collector-per-buffer-list):
* lisp/cedet/semantic/ctxt.el (semantic-command-separation-character)
(semantic-function-argument-separation-character):
* lisp/cedet/semantic/db-find.el (semanticdb-find-lost-includes)
(semanticdb-find-scanned-include-tags):
* lisp/cedet/semantic/db.el (semanticdb-new-database-class)
(semanticdb-default-find-index-class)
(semanticdb-current-database, semanticdb-current-table)
(semanticdb-project-system-databases)
(semanticdb-out-of-buffer-create-table-fcn):
* lisp/cedet/semantic/debug.el (semantic-debug-parser-source)
(semantic-debug-parser-class)
(semantic-debug-parser-debugger-source):
* lisp/cedet/semantic/dep.el (semantic-dependency-include-path)
(semantic-dependency-system-include-path):
* lisp/cedet/semantic/format.el (semantic-function-argument-separator)
(semantic-format-parent-separator):
* lisp/cedet/semantic/fw.el (semantic-new-buffer-fcn-was-run):
* lisp/cedet/semantic/grammar.el (semantic-grammar-macros)
(semantic--grammar-macros-regexp-1)
(semantic--grammar-macros-regexp-2):
* lisp/cedet/semantic/idle.el (semantic-idle-scheduler-mode):
* lisp/cedet/semantic/imenu.el (semantic-imenu-expandable-tag-classes):
* lisp/cedet/semantic/lex-spp.el
(semantic-lex-spp-macro-symbol-obarray)
(semantic-lex-spp-project-macro-symbol-obarray)
(semantic-lex-spp-dynamic-macro-symbol-obarray)
(semantic-lex-spp-dynamic-macro-symbol-obarray-stack):
* lisp/cedet/semantic/lex.el (semantic-flex-keywords-obarray)
(semantic-lex-types-obarray, semantic-lex-analyzer)
(semantic-lex-syntax-modifications, semantic-lex-syntax-table)
(semantic-lex-comment-regex, semantic-lex-number-expression)
(semantic-lex-depth, semantic-flex-extensions)
(semantic-flex-syntax-modifications, semantic-ignore-comments)
(semantic-flex-enable-newlines, semantic-flex-enable-whitespace)
(semantic-flex-enable-bol, semantic-number-expression)
(semantic-flex-depth):
* lisp/cedet/semantic/senator.el (senator-isearch-semantic-mode):
* lisp/cedet/semantic/sort.el
(semantic-orphaned-member-metaparent-type):
* lisp/cedet/semantic/tag.el (semantic-tag-expand-function):
* lisp/cedet/semantic/util-modes.el (semantic-show-parser-state-string)
(semantic-stickyfunc-sticky-classes)
(semantic-highlight-func-ct-overlay):
* lisp/cedet/semantic/util.el
(semantic-type-relation-separator-character)
(semantic-equivalent-major-modes):
* lisp/cedet/semantic/wisent.el (wisent-error-function)
(wisent-lexer-function): Prefer defvar-local.

3 years agoPrefer defvar-local in net/*.el
Stefan Kangas [Sun, 31 Jan 2021 15:30:55 +0000 (16:30 +0100)]
Prefer defvar-local in net/*.el

* lisp/net/browse-url.el (browse-url-temp-file-name):
* lisp/net/rcirc.el (rcirc-ignore-buffer-activity-flag)
(rcirc-low-priority-flag, rcirc-parent-buffer)
(rcirc-activity-types, rcirc-last-sender):
* lisp/net/soap-inspect.el (soap-inspect-previous-items)
(soap-inspect-current-item):
* lisp/net/telnet.el (telnet-remote-echoes)
(telnet-interrupt-string, telnet-count): Prefer defvar-local.

3 years agoPrefer defvar-local in vc/*.el
Stefan Kangas [Sun, 31 Jan 2021 15:27:26 +0000 (16:27 +0100)]
Prefer defvar-local in vc/*.el

* lisp/vc/ediff-diff.el (ediff-whitespace, ediff-word-1)
(ediff-word-2, ediff-word-3, ediff-word-4):
* lisp/vc/ediff-init.el (ediff-defvar-local):
* lisp/vc/smerge-mode.el (smerge-check-cache):
* lisp/vc/vc-bzr.el (vc-bzr-annotation-table):
* lisp/vc/vc-dispatcher.el (vc-mode-line-hook): Prefer defvar-local.

3 years ago* etc/MACHINES: Document that we support AArch64 with macOS.
Philipp Stephani [Sun, 31 Jan 2021 18:50:28 +0000 (19:50 +0100)]
* etc/MACHINES: Document that we support AArch64 with macOS.

3 years agoMinimise the time Vminibuffer_list is in an inconsistent state (src/minibuf.c)
Alan Mackenzie [Sun, 31 Jan 2021 17:24:23 +0000 (17:24 +0000)]
Minimise the time Vminibuffer_list is in an inconsistent state (src/minibuf.c)

src/minibuf.c (get_minibuffer): Move the XSETCAR which writes the new
minibuffer into Vminibuffer_list to immediately after the MB's creation, so
that the list is in a consistent state before calling fundamental-mode or
minibuffer-inactive-mode.

3 years agoPrefer defvar-local in international/*.el
Stefan Kangas [Sun, 31 Jan 2021 14:56:53 +0000 (15:56 +0100)]
Prefer defvar-local in international/*.el

* lisp/international/mule-cmds.el (current-input-method)
(current-input-method-title, current-transient-input-method)
(previous-transient-input-method, input-method-history)
(deactivate-current-input-method-function)
(describe-current-input-method-function):
* lisp/international/mule.el (buffer-file-coding-system-explicit):
* lisp/international/quail.el (quail-current-package)
(quail-guidance-str, quail-overlay, quail-conv-overlay)
(quail-current-key, quail-current-str)
(quail-current-translations, quail-current-data):
* lisp/international/robin.el (robin-mode)
(robin-current-package-name): Prefer defvar-local in
international/*.el.

3 years agoPrefer defvar-local in nxml/*.el
Stefan Kangas [Sun, 31 Jan 2021 14:00:41 +0000 (15:00 +0100)]
Prefer defvar-local in nxml/*.el

* lisp/nxml/rng-cmpct.el (rng-c-current-token)
(rng-c-escape-positions, rng-c-file-name):
* lisp/nxml/rng-pttrn.el (rng-current-schema):
* lisp/nxml/rng-valid.el (rng-validate-timer)
(rng-validate-quick-timer, rng-error-count, rng-message-overlay)
(rng-message-overlay-inhibit-point, rng-message-overlay-current)
(rng-validate-up-to-date-end, rng-conditional-up-to-date-start)
(rng-conditional-up-to-date-end, rng-dtd): Prefer defvar-local.

3 years agoPrefer defvar-local in emacs-lisp/*.el
Stefan Kangas [Sun, 31 Jan 2021 13:55:53 +0000 (14:55 +0100)]
Prefer defvar-local in emacs-lisp/*.el

* lisp/emacs-lisp/chart.el (chart-local-object):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
(define-globalized-minor-mode):
* lisp/emacs-lisp/edebug.el:
* lisp/emacs-lisp/generic.el (generic-font-lock-keywords):
* lisp/emacs-lisp/re-builder.el (reb-regexp, reb-regexp-src)
(reb-overlays):
* lisp/emacs-lisp/syntax.el
(syntax-propertize-extend-region-functions): Prefer defvar-local.

3 years agoPrefer defvar-local in allout
Stefan Kangas [Sun, 31 Jan 2021 13:35:44 +0000 (14:35 +0100)]
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.

3 years agoPrefer defvar-local in cua
Stefan Kangas [Sun, 31 Jan 2021 13:17:16 +0000 (14:17 +0100)]
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.

3 years agoObsolete viper-deflocalvar for defvar-local
Stefan Kangas [Sun, 31 Jan 2021 13:10:10 +0000 (14:10 +0100)]
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.

3 years agoDon't attempt to display input method guidance in expired minibuffers
Alan Mackenzie [Sun, 31 Jan 2021 11:20:50 +0000 (11:20 +0000)]
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.

3 years agoexecute-kbd-macro doc string clarification
Lars Ingebrigtsen [Sun, 31 Jan 2021 07:46:02 +0000 (08:46 +0100)]
execute-kbd-macro doc string clarification

* src/macros.c (Fexecute_kbd_macro): Mention that the buffer is
(potentially) changed (bug#37396).

3 years agoMake operating-system-release obsolete
Lars Ingebrigtsen [Sun, 31 Jan 2021 07:22:12 +0000 (08:22 +0100)]
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.

3 years agoDoc string improvements around `default-korean-keyboard'
Lars Ingebrigtsen [Sun, 31 Jan 2021 07:12:10 +0000 (08:12 +0100)]
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.

3 years agoRevert "Improve fontifying of #| ... |# in `lisp-mode'"
Lars Ingebrigtsen [Sun, 31 Jan 2021 06:59:40 +0000 (07:59 +0100)]
Revert "Improve fontifying of #| ... |# in `lisp-mode'"

This reverts commit 1275dc4711af77c9c223063dcd149d782d497463.

Setting comment-end isn't the correct thing to do -- it makes M-; insert that string.

3 years ago; Fix my previous commit
Stefan Kangas [Sun, 31 Jan 2021 04:41:51 +0000 (05:41 +0100)]
; Fix my previous commit

* lisp/play/5x5.el (5x5-solver-output): Prefer defvar-local.
* lisp/play/gamegrid.el (gamegrid-display-table): Provide default
value.