]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sat, 11 Dec 2021 03:00:39 +0000 (11:00 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years ago* etc/TODO: Entry about converting to defvar-keymap.
Stefan Kangas [Fri, 10 Dec 2021 14:47:09 +0000 (15:47 +0100)]
* etc/TODO: Entry about converting to defvar-keymap.

2 years ago; * lisp/dired.el: Remove code commented out since 2000.
Stefan Kangas [Fri, 10 Dec 2021 14:39:23 +0000 (15:39 +0100)]
; * lisp/dired.el: Remove code commented out since 2000.

2 years agoUse defvar-keymap for package-menu-mode-map
Stefan Kangas [Fri, 10 Dec 2021 14:33:54 +0000 (15:33 +0100)]
Use defvar-keymap for package-menu-mode-map

* lisp/emacs-lisp/package.el (package-menu-mode-map): Use
defvar-keymap.

2 years ago; * etc/NEWS: Improve recently added entry.
Stefan Kangas [Fri, 10 Dec 2021 13:11:22 +0000 (14:11 +0100)]
; * etc/NEWS: Improve recently added entry.

2 years agoMake keymap-lookup work for keymap results, too
Lars Ingebrigtsen [Fri, 10 Dec 2021 12:11:26 +0000 (13:11 +0100)]
Make keymap-lookup work for keymap results, too

* lisp/keymap.el (keymap-lookup): Make this function work for
non-symbol lookups, too (bug#52374).

2 years agoMake dired-buffers-for-dir expand the DIR argument
Lars Ingebrigtsen [Fri, 10 Dec 2021 11:32:49 +0000 (12:32 +0100)]
Make dired-buffers-for-dir expand the DIR argument

* lisp/dired.el (dired-buffers-for-dir): Expand DIR argument
(bug#52395).
(dired-find-buffer-nocreate, dired-clean-up-after-deletion):
Adjust callers.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Fri, 10 Dec 2021 06:50:21 +0000 (14:50 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoFurther reduce image-related stutter during precision scrolling
Po Lu [Fri, 10 Dec 2021 06:20:32 +0000 (14:20 +0800)]
Further reduce image-related stutter during precision scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Disable
`scroll-preserve-screen-position' and `auto-window-vscroll'
while scrolling.

2 years agoStop setting `make-cursor-line-fully-visible' in precision scrolling
Po Lu [Fri, 10 Dec 2021 06:01:44 +0000 (06:01 +0000)]
Stop setting `make-cursor-line-fully-visible' in precision scrolling

* lisp/pixel-scroll.el (pixel-scroll-precision-mode): Stop
setting `make-cursor-line-fully-visible'.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 10 Dec 2021 05:30:33 +0000 (06:30 +0100)]
Merge from origin/emacs-28

7a25ba0fde ; * lisp/image-dired.el: Fix typo.
dda6337066 emacsclient takes more care about XDG_RUNTIME_DIR
26fb4168b8 ; Prefer HTTPS in more URLs
6b89578524 ; * lisp/progmodes/flymake.el: Update the minimum Emacs ve...

2 years agoFix bob detection when pixel scrolling upwards
Po Lu [Fri, 10 Dec 2021 03:30:07 +0000 (11:30 +0800)]
Fix bob detection when pixel scrolling upwards

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't go to the beginning-of-visual-line if bobp.

2 years agoFix pixel scrolling upwards in Info buffers
Po Lu [Fri, 10 Dec 2021 03:25:10 +0000 (11:25 +0800)]
Fix pixel scrolling upwards in Info buffers

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't blindly trust window start to be the beginning of a
visual line.

2 years agoRemove unused let-bindings from pixel-scroll.el
Po Lu [Fri, 10 Dec 2021 02:38:24 +0000 (10:38 +0800)]
Remove unused let-bindings from pixel-scroll.el

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Remove unused
bindings.

2 years agoFix precision scrolling for stretch glyphs
Po Lu [Fri, 10 Dec 2021 02:33:00 +0000 (10:33 +0800)]
Fix precision scrolling for stretch glyphs

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Simplify logic.
(pixel-scroll-precision-interpolate): Block throw-on-input
when actually scrolling.

2 years ago* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
Stefan Kangas [Fri, 10 Dec 2021 02:11:49 +0000 (03:11 +0100)]
* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.

2 years ago; * lisp/Makefile.in: Fix typo.
Stefan Kangas [Fri, 10 Dec 2021 02:03:06 +0000 (03:03 +0100)]
; * lisp/Makefile.in: Fix typo.

2 years ago; * lisp/htmlfontify.el: Remove some commented out code.
Stefan Kangas [Fri, 10 Dec 2021 01:56:08 +0000 (02:56 +0100)]
; * lisp/htmlfontify.el: Remove some commented out code.

2 years ago; * lisp/image-dired.el: Fix typo.
Stefan Kangas [Fri, 10 Dec 2021 01:33:48 +0000 (02:33 +0100)]
; * lisp/image-dired.el: Fix typo.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Fri, 10 Dec 2021 00:54:56 +0000 (08:54 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoemacsclient takes more care about XDG_RUNTIME_DIR
Paul Eggert [Thu, 9 Dec 2021 17:03:10 +0000 (09:03 -0800)]
emacsclient takes more care about XDG_RUNTIME_DIR

* lib-src/emacsclient.c (set_local_socket): Revert to the Emacs 27
behavior of not trying TMPDIR if XDG_RUNTIME_DIR is set.
This is one of the suggestions made by Jim Porter and
independently by Ulrich Mueller in Bug#51327.

2 years agoFix logic in 'compute_window_start_on_continuation_line'
Eli Zaretskii [Thu, 9 Dec 2021 19:29:32 +0000 (21:29 +0200)]
Fix logic in 'compute_window_start_on_continuation_line'

* src/xdisp.c (compute_window_start_on_continuation_line): Fix a
thinko in logic.  Patch by dickmao <dick.r.chiang@gmail.com>.
(Bug#52378)

2 years agoFix thinko in Tramp test
Michael Albinus [Thu, 9 Dec 2021 19:11:40 +0000 (20:11 +0100)]
Fix thinko in Tramp test

* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
Fix thinko.

2 years agoImprove lock-pid handling in Tramp
Michael Albinus [Thu, 9 Dec 2021 19:03:16 +0000 (20:03 +0100)]
Improve lock-pid handling in Tramp

* lisp/net/tramp-cache.el: Remove comment.

* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Do not set "lock-pid" connection-property.
(tramp-sudoedit-handle-delete-file): Use "rm -f".

* lisp/net/tramp.el (tramp-test-message): Extend for buffers w/o
remote default-directory.
(tramp-lock-pid): New defvar.
(tramp-get-lock-pid): Reimplement.

2 years ago; Prefer HTTPS in more URLs
Stefan Kangas [Thu, 9 Dec 2021 15:22:17 +0000 (16:22 +0100)]
; Prefer HTTPS in more URLs

2 years ago; * lisp/progmodes/flymake.el: Update the minimum Emacs version.
Eli Zaretskii [Thu, 9 Dec 2021 15:01:57 +0000 (17:01 +0200)]
; * lisp/progmodes/flymake.el: Update the minimum Emacs version.

2 years agoMerge from origin/emacs-28
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

# Conflicts:
# etc/NEWS
# lisp/help.el

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 9 Dec 2021 13:52:46 +0000 (14:52 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

c8c7822c51 * etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.

2 years agoAdd missing K key documentation for Cangjie input methods
Cameron Desautels [Thu, 9 Dec 2021 08:08:14 +0000 (00:08 -0800)]
Add missing K key documentation for Cangjie input methods

* lisp/international/titdic-cnv.el (tsang-quick-converter): Add the
missing K key in input method documentation. (Bug#52264)

2 years agoMake precision scrolling up work over display strings
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.

2 years agoFix pixel scrolling over lines with different sized glyphs
Po Lu [Thu, 9 Dec 2021 09:40:08 +0000 (17:40 +0800)]
Fix pixel scrolling over lines with different sized glyphs

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Calculate desired
vscroll with `window-text-pixel-size'.

2 years agoFix manual entry of 'quit-restore-window' (Bug#52328)
Martin Rudalics [Thu, 9 Dec 2021 09:00:51 +0000 (10:00 +0100)]
Fix manual entry of 'quit-restore-window' (Bug#52328)

* doc/lispref/windows.texi (Quitting Windows): Fix bug in
description of 'quit-restore-window' (Bug#52328).

2 years agoClarify a comment in xdisp.c
Eli Zaretskii [Thu, 9 Dec 2021 07:18:04 +0000 (09:18 +0200)]
Clarify a comment in xdisp.c

* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment.  (Bug#52378)

2 years agoFix jumping cursor during interpolated scrolls
Po Lu [Thu, 9 Dec 2021 03:40:39 +0000 (11:40 +0800)]
Fix jumping cursor during interpolated scrolls

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Go to next position
before setting start or vscroll.

2 years agoAllow customizing step between each interpolated scroll
Po Lu [Thu, 9 Dec 2021 03:11:26 +0000 (11:11 +0800)]
Allow customizing step between each interpolated scroll

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate):
Use new option.
(pixel-scroll-precision-interpolation-between-scroll): New user
option.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Thu, 9 Dec 2021 02:30:18 +0000 (10:30 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoimage-dired: Show image info in header line
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.

2 years agoimage-dired: Go to next image when marking
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.

2 years agoimage-dired: Remove some TODOs
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.

2 years agoRevert "Grep alias `all' shall not match parent directory"
Óscar Fuentes [Wed, 8 Dec 2021 22:49:26 +0000 (23:49 +0100)]
Revert "Grep alias `all' shall not match parent directory"

This reverts commit 856cd948d1a5a016ad36721246a049d33451902f.

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

2 years ago* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-named-let): New test
Stefan Monnier [Wed, 8 Dec 2021 21:58:24 +0000 (16:58 -0500)]
* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-named-let): New test

2 years ago* test/lisp/emacs-lisp/cl-macs-tests.el: Avoid `with-suppressed-warnings`
Stefan Monnier [Wed, 8 Dec 2021 21:22:24 +0000 (16:22 -0500)]
* test/lisp/emacs-lisp/cl-macs-tests.el: Avoid `with-suppressed-warnings`

* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--progv): Use a proper
namespace prefix for the global vars.

2 years agolisp/mouse.el: Fix some lambdas quoted with ` or '
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.

2 years ago* lisp/mouse.el (context-menu-entry): Bind to make-sparse-keymap, not ignore.
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)

2 years ago; * etc/NEWS: Non-nil repeat-keep-prefix is not the default anymore.
Juri Linkov [Wed, 8 Dec 2021 20:20:41 +0000 (22:20 +0200)]
; * etc/NEWS: Non-nil repeat-keep-prefix is not the default anymore.

2 years agoDefine some more keymaps in one step
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.

2 years ago; * lisp/calc/calc-ext.el: Fix warnings in my last commit.
Stefan Kangas [Wed, 8 Dec 2021 16:48:13 +0000 (17:48 +0100)]
; * lisp/calc/calc-ext.el: Fix warnings in my last commit.

2 years agoFix mode-line display in Calendar mode
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'.

2 years ago* etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.
Lele Gaifax [Wed, 8 Dec 2021 08:00:19 +0000 (09:00 +0100)]
* etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.

Don't merge to master.

2 years agoDefine calc-help-map in one step
Stefan Kangas [Wed, 8 Dec 2021 12:30:23 +0000 (13:30 +0100)]
Define calc-help-map in one step

* lisp/calc/calc-ext.el (calc-help-map): Define in one step and
convert to defvar-keymap.

2 years agoConvert shortdoc-mode-map to defvar-keymap
Stefan Kangas [Wed, 8 Dec 2021 12:22:21 +0000 (13:22 +0100)]
Convert shortdoc-mode-map to defvar-keymap

* lisp/emacs-lisp/shortdoc.el (shortdoc-mode-map): Convert to
defvar-keymap.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Wed, 8 Dec 2021 12:04:14 +0000 (13:04 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

0a2507ff90 Backport: Make a more robust check in Tramp using scripts

2 years agoMerge from origin/emacs-28
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

# Conflicts:
# lisp/net/browse-url.el

2 years agoFix coarse scroll deltas on macOS
Po Lu [Wed, 8 Dec 2021 11:44:50 +0000 (19:44 +0800)]
Fix coarse scroll deltas on macOS

* src/nsterm.m (- mouseDown): Multiply deltas as appropriate.

2 years agoClear scroll interpolation when interpolated scroll completes
Po Lu [Wed, 8 Dec 2021 10:36:18 +0000 (18:36 +0800)]
Clear scroll interpolation when interpolated scroll completes

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate): Set
saved interpolation to nil upon completion.

2 years agoImprove precision scroll interpolation
Po Lu [Wed, 8 Dec 2021 10:29:05 +0000 (18:29 +0800)]
Improve precision scroll interpolation

* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-total-time)
(pixel-scroll-precision-interpolation-factor): Add better
default values.

(pixel-scroll-precision-interpolate): Save deltas and run loop
inside `while-no-input' instead.

2 years ago; * etc/NEWS: Fix typos.
Michael Albinus [Wed, 8 Dec 2021 09:20:42 +0000 (10:20 +0100)]
; * etc/NEWS: Fix typos.

2 years agoBackport: Make a more robust check in Tramp using scripts
Michael Albinus [Tue, 7 Dec 2021 15:20:13 +0000 (16:20 +0100)]
Backport: Make a more robust check in Tramp using scripts

* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Check, whether scripts in `tramp-remote-coding-commands' are
expandable.

(cherry picked from commit 1d0a60113fd155c77ef5ea4ea44fcba3504adcbf)

2 years agoFix last change
Po Lu [Wed, 8 Dec 2021 07:52:21 +0000 (15:52 +0800)]
Fix last change

* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-total-time)
(pixel-scroll-precision-interpolation-factor): Fix declared versions.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 8 Dec 2021 06:18:09 +0000 (14:18 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoMake interpolated scrolling work better
Po Lu [Wed, 8 Dec 2021 05:40:12 +0000 (13:40 +0800)]
Make interpolated scrolling work better

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate):
Stop using `while-no-input'.

2 years agoAllow customizing precision scroll interpolation
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.

2 years agoSend scroll stop events to xwidgets correctly
Po Lu [Wed, 8 Dec 2021 02:04:31 +0000 (10:04 +0800)]
Send scroll stop events to xwidgets correctly

* src/xterm.c (handle_one_xevent): Record stop events manually.

* src/xwidget.h (xwidget_scroll):
* src/xwidget.c (xwidget_scroll): New parameter `stop_p'.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 8 Dec 2021 01:03:14 +0000 (09:03 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoConvert etc-authors-mode-map to defvar-keymap
Stefan Kangas [Wed, 8 Dec 2021 00:55:50 +0000 (01:55 +0100)]
Convert etc-authors-mode-map to defvar-keymap

* lisp/textmodes/etc-authors-mode.el (etc-authors-mode-map):
Convert to defvar-keymap.

2 years agoPacify svg_load_image compiler warning
Lars Ingebrigtsen [Wed, 8 Dec 2021 00:52:39 +0000 (01:52 +0100)]
Pacify svg_load_image compiler warning

* src/image.c (svg_load_image): Fix compiler warning from gcc
(Debian 11.2.0-10).

2 years ago; * lisp/textmodes/texinfo.el: Remove stale comment.
Stefan Kangas [Wed, 8 Dec 2021 00:12:10 +0000 (01:12 +0100)]
; * lisp/textmodes/texinfo.el: Remove stale comment.

The referenced variable was removed two decades ago.

2 years agoCheck decoding results in webp_load before using it
Lars Ingebrigtsen [Wed, 8 Dec 2021 00:38:25 +0000 (01:38 +0100)]
Check decoding results in webp_load before using it

* src/image.c (webp_load): Check whether we were able to decode
the image before using it.

2 years agoimage-dired: Navigate from image display buffer
Stefan Kangas [Tue, 7 Dec 2021 22:28:44 +0000 (23:28 +0100)]
image-dired: Navigate from image display buffer

* lisp/image-dired.el
(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)
(image-dired-display-next-thumbnail-original)
(image-dired-display-previous-thumbnail-original): Make commands
usable from image-dired-display-image-mode.
(image-dired-display-image-mode-map): Bind above commands.
(image-dired--with-thumbnail-buffer): New macro.

2 years agoImprove yanking in the middle of comint process output
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.

2 years agobrowse-url: Refactor code to find executable
Stefan Kangas [Tue, 7 Dec 2021 18:46:21 +0000 (19:46 +0100)]
browse-url: Refactor code to find executable

* lisp/net/browse-url.el (browse-url--find-executable): Extract from...
(browse-url-firefox-program, browse-url-chrome-program)
(browse-url-chromium-program): ...here.

2 years agoDocument native-comp-async-report-warning-errors more
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.

2 years agobrowse-url: Remove support for Galeon
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.

2 years ago* etc/tutorials/TUTORIAL.he: Add section about package management.
Eli Zaretskii [Tue, 7 Dec 2021 18:17:11 +0000 (20:17 +0200)]
* etc/tutorials/TUTORIAL.he: Add section about package management.

2 years agoDoc fix; Epiphany has been renamed to GNOME Web
Stefan Kangas [Tue, 7 Dec 2021 17:57:48 +0000 (18:57 +0100)]
Doc fix; Epiphany has been renamed to GNOME Web

* lisp/net/browse-url.el: Doc fix; Epiphany is called GNOME Web
since GNOME 3.4, released in 2012.
Ref: https://help.gnome.org/misc/release-notes/3.4/

2 years agoImprove before-make-frame-hook and after-make-frame-functions docs.
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)

2 years ago* lisp/dired-aux.el (dired-check-process): Doc fix. (Bug#52337)
Eli Zaretskii [Tue, 7 Dec 2021 17:46:15 +0000 (19:46 +0200)]
* lisp/dired-aux.el (dired-check-process): Doc fix.  (Bug#52337)

2 years ago; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo.
Stefan Kangas [Tue, 7 Dec 2021 17:37:47 +0000 (18:37 +0100)]
; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo.

2 years agoRemove dead link from newsticker
Stefan Kangas [Tue, 7 Dec 2021 17:37:18 +0000 (18:37 +0100)]
Remove dead link from newsticker

* lisp/net/newst-backend.el (newsticker--parse-rss-0.91):
* lisp/net/newsticker.el: Remove dead link.

2 years agobrowse-url: Remove support for Netscape
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.

2 years ago* doc/misc/eshell.texi (Built-ins): Fix xref.
Glenn Morris [Tue, 7 Dec 2021 16:58:45 +0000 (08:58 -0800)]
* doc/misc/eshell.texi (Built-ins): Fix xref.

2 years agoMake a more robust check in Tramp using scripts
Michael Albinus [Tue, 7 Dec 2021 15:20:13 +0000 (16:20 +0100)]
Make a more robust check in Tramp using scripts

* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Check, whether scripts in `tramp-remote-coding-commands' are
expandable.

2 years agoAdd the new packages section to the Italian tutorial
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.

2 years agoRemove some unnecessary references to Emacs 22
Stefan Kangas [Tue, 7 Dec 2021 13:34:29 +0000 (14:34 +0100)]
Remove some unnecessary references to Emacs 22

* lisp/cedet/semantic/fw.el:
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer):
* lisp/emulation/viper-util.el (viper-frame-value):
* lisp/mail/rmail.el (rmail-delete-headers):
* lisp/mh-e/mh-e.el (mh-inc-spool-list): Remove some unnecessary
references to Emacs 22.

2 years ago* etc/tutorials/TUTORIAL: Say that there is usually a delete key.
Stefan Kangas [Tue, 7 Dec 2021 12:28:39 +0000 (13:28 +0100)]
* etc/tutorials/TUTORIAL: Say that there is usually a delete key.

2 years agoimage-dired: Fix behavior of slideshow command
Stefan Kangas [Tue, 7 Dec 2021 11:59:18 +0000 (12:59 +0100)]
image-dired: Fix behavior of slideshow command

* lisp/image-dired.el (image-dired-slideshow-start): Fix behavior
to match documentation.  Minor simplification of docstring.

2 years agoRemove obsolete values from image-mode-auto-resize
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.

(image-auto-resize-max-scale-percent): Fix defcustom const :tag.

2 years ago* lisp/view.el (view-mode-map): Convert to defvar-keymap.
Stefan Kangas [Tue, 7 Dec 2021 11:03:45 +0000 (12:03 +0100)]
* lisp/view.el (view-mode-map): Convert to defvar-keymap.

2 years agoRemove XEmacs compat code from strokes.el
Stefan Kangas [Tue, 7 Dec 2021 10:39:46 +0000 (11:39 +0100)]
Remove XEmacs compat code from strokes.el

* lisp/strokes.el (strokes-mode): Remove XEmacs compat code;
select-frame-hook does not exist in Emacs.

2 years agoAdd vc-git-stash-pop to vc-dir-git-mode
Lars Ingebrigtsen [Tue, 7 Dec 2021 07:06:12 +0000 (08:06 +0100)]
Add vc-git-stash-pop to vc-dir-git-mode

* lisp/vc/vc-git.el (vc-dir-git-mode-map): Add vc-git-stash-pop
(bug#52158).

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 7 Dec 2021 05:47:32 +0000 (06:47 +0100)]
Merge from origin/emacs-28

da23e607d3 Select the right buffer for event in context-menu function...

2 years agoCancel xwidget progress timer when buffer is killed
Po Lu [Tue, 7 Dec 2021 05:44:52 +0000 (13:44 +0800)]
Cancel xwidget progress timer when buffer is killed

* lisp/xwidget.el (xwidget-webkit-buffer-kill): New function.
(xwidget-webkit-mode): Add `xwidget-webkit-buffer-kill' to
`kill-buffer-hook'.  (bug#52344)

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 7 Dec 2021 01:32:13 +0000 (09:32 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoWhen registering Gnus message ids, guard against no registry
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.

2 years agoSilence byte-compiler in two tests
Stefan Kangas [Mon, 6 Dec 2021 21:05:57 +0000 (22:05 +0100)]
Silence byte-compiler in two tests

* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/mail/mail-utils-tests.el
(mail-utils-tests-mail-rfc822-time-zone): Silence byte-compiler.

2 years agoRemove spurious space in byte-compiler warning
Stefan Kangas [Mon, 6 Dec 2021 20:51:37 +0000 (21:51 +0100)]
Remove spurious space in byte-compiler warning

* lisp/emacs-lisp/bytecomp.el
(byte-compile-docstring-length-warn): Remove spurious space in
byte-compiler warning.
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-defun.el"): Update test.

2 years agoAssume unfilled byte-compiler warnings in tests
Stefan Kangas [Mon, 6 Dec 2021 20:48:40 +0000 (21:48 +0100)]
Assume unfilled byte-compiler warnings in tests

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp--define-warning-file-test): Remove workaround for filled
byte-compilation warnings.  See Bug#52281.

2 years agoFix previous shr-parse-style change
Lars Ingebrigtsen [Mon, 6 Dec 2021 20:43:39 +0000 (21:43 +0100)]
Fix previous shr-parse-style change

* lisp/net/shr.el (shr-parse-style): Fix previous clean-up here
(which wasn't well thought through).

2 years agodired.texi: Document dired-create-destination-dirs-on-trailing-dirsep
Tassilo Horn [Mon, 6 Dec 2021 20:24:56 +0000 (21:24 +0100)]
dired.texi: Document dired-create-destination-dirs-on-trailing-dirsep

* doc/emacs/dired.texi (Operating on Files): Document new option
dired-create-destination-dirs-on-trailing-dirsep.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Dec 2021 18:49:43 +0000 (20:49 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs