Harald Jörg
a92167674f
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).
2021-02-04 20:52:29 +01:00
Eli Zaretskii
d1455027e0
Initialize signal descriptions after pdumping
...
* src/sysdep.c (init_signals) [!HAVE_DECL_SYS_SIGLIST]: Reinit
sys_siglist also after pdumping. (Bug#46284)
2021-02-04 20:21:18 +02:00
Eli Zaretskii
a2d7f3f171
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)
2021-02-04 19:35:07 +02:00
Lars Ingebrigtsen
3bf21f52b6
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.
2021-02-04 18:24:34 +01:00
Eli Zaretskii
a304b22bc9
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
2021-02-04 18:02:27 +02:00
Eli Zaretskii
914cb7a1d6
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>.
2021-02-04 18:00:29 +02:00
Lars Ingebrigtsen
256356a36f
Clarify the "Sentinels" node in the lispref manual
...
* doc/lispref/processes.texi (Sentinels): Mention "run" and that
the strings can be anything (bug#30461).
(cherry picked from commit 859a4cb6b2 )
2021-02-04 17:18:49 +02:00
Lars Ingebrigtsen
9bf367e184
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).
2021-02-04 16:12:41 +01:00
Lars Ingebrigtsen
e1d54bb638
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).
2021-02-04 15:22:40 +01:00
Lars Ingebrigtsen
bd795dd659
Fix previous ibuffer patch
...
* lisp/ibuffer.el (ibuffer-last-sorting-mode): Restore variable
removed by mistake in previous change.
2021-02-04 14:36:58 +01:00
Lars Ingebrigtsen
d3cb07d784
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).
2021-02-04 12:59:16 +01:00
Lars Ingebrigtsen
3b27f2e464
Revert "Tweak how ibuffer-invert-sorting updates the buffer"
...
This reverts commit b8b3263eab .
This doesn't fix other instances of ibuffer-redisplay
2021-02-04 12:32:08 +01:00
Lars Ingebrigtsen
b8b3263eab
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).
2021-02-04 12:26:00 +01:00
Lars Ingebrigtsen
b12d22f6af
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.
2021-02-04 12:08:46 +01:00
Lars Ingebrigtsen
859a4cb6b2
Clarify the "Sentinels" node in the lispref manual
...
* doc/lispref/processes.texi (Sentinels): Mention "run" and that
the strings can be anything (bug#30461).
2021-02-04 12:02:53 +01:00
Lars Ingebrigtsen
828b3d93ec
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.
2021-02-04 11:55:47 +01:00
Robert Pluim
2f3df36be8
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.
2021-02-04 11:25:31 +01:00
Lars Ingebrigtsen
517e123f90
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.
2021-02-04 11:23:26 +01:00
Juri Linkov
5666955379
* 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.
2021-02-04 11:17:54 +02:00
Lars Ingebrigtsen
a8958640c4
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).
2021-02-04 09:25:32 +01:00
Alexandre Duret-Lutz
89f1634afc
Fix problem with non-ASCII characters in nnmaildir
...
* lisp/gnus/nnmaildir.el (nnmaildir-request-article): Enable
multipart 8bit-content-transfer-encoded files to be displayed
correctly by reading as `raw-text' instead of having Emacs
(incorrectly) decode the files (bug#44307).
Copyright-paperwork-exempt: yes
2021-02-04 09:03:22 +01:00
Stefan Kangas
e4cafc5430
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.
2021-02-04 08:16:33 +01:00
Stefan Kangas
b01ee9a114
* lisp/man.el (Man-notify-method): Remove Emacs 19.28 compat code.
2021-02-04 08:12:22 +01:00
Stefan Kangas
7febfe1c2b
Use require instead of boundp+load-library in double.el
...
* lisp/double.el (isearch): Use require instead of
boundp+load-library.
2021-02-04 05:28:00 +01:00
Stefan Kangas
0d8e15757e
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.
2021-02-04 05:28:00 +01:00
Stefan Kangas
fd9516238a
Remove XEmacs compat code from edebug.el
...
* lisp/emacs-lisp/edebug.el (edebug-window-live-p, edebug-mark):
Make obsolete. Update callers.
2021-02-04 05:27:45 +01:00
Dmitry Gutov
c07ebfcbe0
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.
2021-02-04 03:38:42 +02:00
Andrea Corallo
1f626e9662
* Remove `system-configuration' from eln filename
...
* src/comp.c (hash_native_abi): Remove `system-configuration'
from eln filename. Add `system-configuration' and
`emacs-version' into `comp-abi-hash'.
2021-02-03 21:17:31 +01:00
Andrea Corallo
41509d873e
* Short eln filename hashes
...
* src/comp.c (HASH_LENGTH): New macro.
(comp_hash_string, comp_hash_source_file): Trim the hash before
returning.
2021-02-03 21:15:18 +01:00
Michael Albinus
b81516c7fb
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.
2021-02-03 18:48:09 +01:00
Glenn Morris
bd5b4b35bc
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
2021-02-03 08:11:08 -08:00
Glenn Morris
1ef8d5e0da
; Merge from origin/emacs-27
...
The following commit was skipped:
0bc4b003d7 ; emacs-26 → emacs-27
2021-02-03 08:11:08 -08:00
Glenn Morris
7e86357b42
Merge from origin/emacs-27
...
9c75434173 Fix build failure on macOS 10.7 (bug#46036)
ca44ea18ef Improve documentation of auto-resize-tool/tab-bars
2021-02-03 08:11:08 -08:00
Glenn Morris
0d1e96ac95
; Merge from origin/emacs-27
...
The following commit was skipped:
9e45c29224 (xref-revert-buffer): Also 'erase-buffer' when handling a ...
2021-02-03 08:11:08 -08:00
Glenn Morris
17f2be08f8
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
2021-02-03 08:11:08 -08:00
Glenn Morris
b099f1d774
; Merge from origin/emacs-27
...
The following commit was skipped:
86a2207d92 Bump Emacs version to 27.1.91
2021-02-03 08:11:04 -08:00
Lars Ingebrigtsen
ca55e4d898
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
2021-02-03 14:36:17 +01:00
Wilson Snyder
20e48b6fd6
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.
2021-02-02 23:22:44 -05:00
Alan Mackenzie
9a67da98a2
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).
2021-02-02 20:34:42 +00:00
Stefan Monnier
04ab3904ed
* 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.
2021-02-02 14:39:28 -05:00
Stefan Monnier
c2b3a1d414
* 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`.
2021-02-02 14:12:17 -05:00
Eli Zaretskii
7355209f53
* lisp/window.el (recenter-top-bottom): Clarify doc string.
2021-02-02 18:25:31 +02:00
Lars Ingebrigtsen
97ef20e250
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).
2021-02-02 16:11:18 +01:00
Stefan Monnier
5f612d8a1f
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Also set comment-end-skip
2021-02-02 10:08:44 -05:00
chuntaro
a2de694d8a
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
2021-02-02 10:18:28 +01:00
Lars Ingebrigtsen
a35b796c99
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).
2021-02-02 10:10:39 +01:00
Stefan Kangas
e0fc879c0c
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.
2021-02-02 09:57:07 +01:00
Stefan Kangas
cfe8d9e0f7
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.
2021-02-02 09:57:07 +01:00
Stefan Kangas
78744f5168
; 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.
2021-02-02 09:57:07 +01:00
Sean Whitton
7d15fa008a
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).
2021-02-02 09:44:44 +01:00