Stefan Kangas [Thu, 9 Dec 2021 13:53:51 +0000 (14:53 +0100)]
Merge from origin/emacs-28
1821844357 Add missing K key documentation for Cangjie input methods be860c1385 Fix manual entry of 'quit-restore-window' (Bug#52328) 35a96139df Clarify a comment in xdisp.c 6ba2f028cf Revert "Grep alias `all' shall not match parent directory" eb9e33e238 ; * etc/NEWS: Non-nil repeat-keep-prefix is not the defaul... 538fc1d0e0 Fix mode-line display in Calendar mode
Po Lu [Thu, 9 Dec 2021 09:57:25 +0000 (17:57 +0800)]
Make precision scrolling up work over display strings
* lisp/pixel-scroll.el
(pixel-point-and-height-at-unseen-line): Use
`window-text-pixel-size'.
(pixel-scroll-precision-scroll-up-page): Use delta as vscroll
directly.
Stefan Kangas [Thu, 9 Dec 2021 02:28:19 +0000 (03:28 +0100)]
image-dired: Show image info in header line
* lisp/image-dired.el
(image-dired-update-header-line): New function to show image
information in the header line.
(image-dired-display-thumb-properties): Make obsolete.
(image-dired-track-thumbnail)
(image-dired--display-thumb-properties-fun)
(image-dired-forward-image, image-dired-next-line)
(image-dired-previous-line, image-dired-beginning-of-buffer)
(image-dired-end-of-buffer, image-dired-read-comment): Use
image-dired-update-header-line instead of
image-dired-display-thumb-properties.
Stefan Kangas [Wed, 8 Dec 2021 23:57:34 +0000 (00:57 +0100)]
image-dired: Go to next image when marking
* lisp/image-dired.el
(image-dired-marking-shows-next): New user option to show the next
image after marking, unmarking or flagging an image.
(image-dired--do-mark-command): New macro.
(image-dired-mark-thumb-original-file)
(image-dired-unmark-thumb-original-file)
(image-dired-flag-thumb-original-file)
(image-dired-toggle-mark-thumb-original-file)
(image-dired-unmark-all-marks): Use above new macro.
Stefan Kangas [Wed, 8 Dec 2021 23:01:23 +0000 (00:01 +0100)]
image-dired: Remove some TODOs
To the extent that these TODOs are relevant or useful, it would be
better to add such features to image-mode directly.
* lisp/image-dired.el: Remove some TODOs.
Emacs got better at quoting shell arguments and the original value
works correctly for vc-git-grep. At the same time, the value
introduced on that commit caused a regression on lgrep.
* lisp/progmodes/grep.el (grep-files-aliases): Use previous value for
`all'. Fixes bug#52367
Stefan Monnier [Wed, 8 Dec 2021 21:14:03 +0000 (16:14 -0500)]
lisp/mouse.el: Fix some lambdas quoted with ` or '
Also prefer #' to quote named functions.
* lisp/mouse.el (minor-mode-menu-from-indicator, context-menu-entry)
([C-down-mouse-3]): Don't abuse lambda lists for functions.
(context-menu-mode): Remove redundant `:group`.
(mouse-drag-line): Remove unused var `draggable`.
(mouse-yank-primary): Make it work for non-mouse events.
Juri Linkov [Wed, 8 Dec 2021 20:31:55 +0000 (22:31 +0200)]
* lisp/mouse.el (context-menu-entry): Bind to make-sparse-keymap, not ignore.
Then where-is-internal does not run context-menu-map from the :filter,
and no context menu functions are called by e.g. describe-mode in wrong buffer
(bug#9923)
Stefan Kangas [Wed, 8 Dec 2021 16:15:28 +0000 (17:15 +0100)]
Define some more keymaps in one step
* lisp/calc/calc-store.el (calc-var-name-map):
* lisp/mail/rmailsum.el (rmail-summary-edit-map):
* lisp/speedbar.el (speedbar-buffers-key-map): Define in one step.
* lisp/progmodes/ebrowse.el (ebrowse-global-submap-4)
(ebrowse-global-submap-5): Define in one step and use defvar-keymap.
Eli Zaretskii [Wed, 8 Dec 2021 14:22:10 +0000 (16:22 +0200)]
Fix mode-line display in Calendar mode
* lisp/help.el (substitute-command-keys): New optional argument
NO-FACE, to avoid putting the 'help-key-binding' face on the key
bindings.
* lisp/calendar/calendar.el (calendar-mode-line-entry): Call
'substitute-command-keys' with the new optional argument non-nil.
(Bug#52366)
* doc/lispref/help.texi (Keys in Documentation): Document the new
optional argument of 'substitute-command-keys'.
* etc/NEWS: Announce the addition of a new argument to
'substitute-command-keys'.
Stefan Kangas [Wed, 8 Dec 2021 12:04:14 +0000 (13:04 +0100)]
Merge from origin/emacs-28
ce5bca4913 Document native-comp-async-report-warning-errors more 1933cd5307 Doc fix; Epiphany has been renamed to GNOME Web b80d7568e4 * lisp/dired-aux.el (dired-check-process): Doc fix. (Bug#... 0f30227f97 ; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo. d34009db66 Remove dead link from newsticker
Po Lu [Wed, 8 Dec 2021 05:02:16 +0000 (13:02 +0800)]
Allow customizing precision scroll interpolation
* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-total-time)
(pixel-scroll-precision-interpolation-factor): New user
options.
(pixel-scroll-precision-interpolate): Use these new options.
(pixel-scroll-precision-mode): Set
`make-cursor-line-fully-visible' to nil.
Miha Rihtaršič [Tue, 7 Dec 2021 20:16:23 +0000 (21:16 +0100)]
Improve yanking in the middle of comint process output
* lisp/comint.el
(comint--unmark-string-as-output): New function to remove unwanted
properties from text yanked from comint buffers.
(comint-mode): Use it as a 'filter-buffer-substring-function'.
(comint-output-filter): Set 'insert-in-front-hooks' text property on
process output such that text yanked by the user in the middle of
process output is marked as process output (Bug#3735).
(comint--mark-as-output): New function.
(comint--mark-yanked-as-output): New function.
Robert Pluim [Tue, 7 Dec 2021 17:43:01 +0000 (18:43 +0100)]
Document native-comp-async-report-warning-errors more
The docstring has a description of how fix problems in lisp code
detected by native compilation, but not the Emacs Lisp manual, so
document it there as well.
* doc/lispref/compile.texi (Native-Compilation Functions): Refer to
'native-comp-async-report-warning-errors'
(Native-Compilation Variables): Explain potential cause of warnings
from native compilation.
Stefan Kangas [Tue, 7 Dec 2021 18:31:21 +0000 (19:31 +0100)]
browse-url: Remove support for Galeon
* lisp/net/browse-url.el (browse-url-galeon-program)
(browse-url-galeon-arguments)
(browse-url-galeon-startup-arguments)
(browse-url-galeon-new-window-is-tab, browse-url-galeon)
(browse-url-galeon-sentinel): Delete, thus removing support for the long
defunct Galeon web browser.
* etc/NEWS: Announce its removal.
Eli Zaretskii [Tue, 7 Dec 2021 17:57:14 +0000 (19:57 +0200)]
Improve before-make-frame-hook and after-make-frame-functions docs.
* lisp/frame.el (before-make-frame-hook)
(after-make-frame-functions):
* doc/lispref/frames.texi (Creating Frames): Mention that these
functions will be run for the initial frame only if added to the
hook in early-init file. (Bug#38143)
Stefan Kangas [Tue, 7 Dec 2021 17:27:41 +0000 (18:27 +0100)]
browse-url: Remove support for Netscape
* lisp/net/browse-url.el (browse-url-netscape-program)
(browse-url-netscape-arguments)
(browse-url-netscape-startup-arguments)
(browse-url-netscape-new-window-is-tab)
(browse-url-netscape-version, browse-url-netscape)
(browse-url-netscape-sentinel, browse-url-netscape-reload)
(browse-url-netscape-send): Delete, thus removing support for the long
defunct Netscape web browser.
* etc/NEWS: Announce its removal.
Lele Gaifax [Tue, 7 Dec 2021 06:42:04 +0000 (07:42 +0100)]
Add the new packages section to the Italian tutorial
* etc/tutorials/TUTORIAL.it (INSTALLAZIONE DI ULTERIORI PACCHETTI):
Translate from recently added INSTALLING PACKAGES section in the English
version. (Bug#52345)
(CONCLUSIONI): Reword paragraph, to better convey the original intent.
Stefan Kangas [Tue, 7 Dec 2021 11:31:21 +0000 (12:31 +0100)]
Remove obsolete values from image-mode-auto-resize
* lisp/image-mode.el (image-auto-resize): Remove obsolete options
fit-height and fit-width.
(image-transform-resize): Document that fit-height and fit-width
are obsolete.
Eric Abrahamsen [Mon, 6 Dec 2021 21:43:24 +0000 (13:43 -0800)]
When registering Gnus message ids, guard against no registry
* lisp/gnus/gnus-registry.el (gnus-registry-register-message-ids):
There are situations where this code is called without a full Gnus
startup (eg, debbugs). If the registry doesn't exist, just skip this
process.
Eli Zaretskii [Mon, 6 Dec 2021 17:36:07 +0000 (19:36 +0200)]
Fix mode-line display on TTY frames
* lisp/bindings.el (mode-line-frame-control): Remove the leading
'-' before '%F' on TTY frames. It has no real purpose, and looks
ugly nowadays, since it's preceded by a blank, due to the new
min-width feature.
Juri Linkov [Mon, 6 Dec 2021 17:24:09 +0000 (19:24 +0200)]
Select the right buffer for event in context-menu functions (bug#9923)
* lisp/mouse.el (context-menu-region):
* lisp/progmodes/prog-mode.el (prog-context-menu):
Switch to the buffer displayed by the window of the event
before using syntax-ppss, char-after.
Paul Eggert [Mon, 6 Dec 2021 07:00:10 +0000 (23:00 -0800)]
Fix minor clock skew issues
* lisp/midnight.el (clean-buffer-list):
* lisp/progmodes/vhdl-mode.el (vhdl-template-replace-header-keywords):
* lisp/net/rcirc.el (rcirc-connect):
Don’t assume that getting the current time twice in rapid
succession will yield the same date and time.
Paul Eggert [Mon, 6 Dec 2021 03:30:27 +0000 (19:30 -0800)]
Fix image load timekeeping bug
* lisp/image.el (image-animate-timeout): Fix bug that caused the
local variable time-to-load-image to be practically zero, instead
of the time it actually took to load the image. I think
this bug was introduced in 2013-02-16T03:29:30Z!rgm@gnu.org.
Paul Eggert [Mon, 6 Dec 2021 03:11:59 +0000 (19:11 -0800)]
Use time-convert in with-decoded-time-value
* lisp/calendar/time-date.el (with-decoded-time-value):
Prefer time-convert to current-time on the off chance that code
will use this obsolete macro even after current-time returns pairs.
Paul Eggert [Mon, 6 Dec 2021 02:39:28 +0000 (18:39 -0800)]
Simplify message-make-expires
* lisp/gnus/message.el (message-make-expires):
Use time-add instead of doing it by hand. This also calculates the
expiration time more accurately than the old code did.