1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00
Commit graph

152807 commits

Author SHA1 Message Date
Po Lu
cc0f147180 Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-10 14:50:21 +08:00
Po Lu
6e865a7171 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.
2021-12-10 14:20:32 +08:00
Po Lu
636704fab9 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'.
2021-12-10 06:03:39 +00:00
Stefan Kangas
d601fd4692 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...
2021-12-10 06:30:33 +01:00
Po Lu
59db96d83a 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.
2021-12-10 11:30:07 +08:00
Po Lu
2e4740f042 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.
2021-12-10 11:25:10 +08:00
Po Lu
e8d90a3fd4 Remove unused let-bindings from pixel-scroll.el
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Remove unused
bindings.
2021-12-10 10:38:24 +08:00
Po Lu
b867eb2216 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.
2021-12-10 10:35:05 +08:00
Stefan Kangas
e796161b6e * lisp/time.el (world-clock-mode-map): Convert to defvar-keymap. 2021-12-10 03:11:49 +01:00
Stefan Kangas
8c2c8996e7 ; * lisp/Makefile.in: Fix typo. 2021-12-10 03:04:51 +01:00
Stefan Kangas
57923818fc ; * lisp/htmlfontify.el: Remove some commented out code. 2021-12-10 03:04:48 +01:00
Stefan Kangas
7a25ba0fde ; * lisp/image-dired.el: Fix typo. 2021-12-10 02:34:12 +01:00
Po Lu
6919d5a7c0 Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-10 08:54:56 +08:00
Paul Eggert
dda6337066 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.
2021-12-09 12:03:37 -08:00
Eli Zaretskii
c0b9041ebd 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)
2021-12-09 21:29:32 +02:00
Michael Albinus
8f3f785c55 Fix thinko in Tramp test
* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
Fix thinko.
2021-12-09 20:11:40 +01:00
Michael Albinus
bbfb373783 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.
2021-12-09 20:03:16 +01:00
Stefan Kangas
26fb4168b8 ; Prefer HTTPS in more URLs 2021-12-09 16:26:04 +01:00
Eli Zaretskii
6b89578524 ; * lisp/progmodes/flymake.el: Update the minimum Emacs version. 2021-12-09 17:01:57 +02:00
Stefan Kangas
6ecb24f877 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
2021-12-09 14:53:51 +01:00
Stefan Kangas
24e9616a0f ; Merge from origin/emacs-28
The following commit was skipped:

c8c7822c51 * etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.
2021-12-09 14:52:46 +01:00
Cameron Desautels
1821844357 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)
2021-12-09 13:03:12 +02:00
Po Lu
948a8936ba 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.
2021-12-09 17:57:25 +08:00
Po Lu
07d95325e4 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'.
2021-12-09 17:40:08 +08:00
Martin Rudalics
be860c1385 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).
2021-12-09 10:00:51 +01:00
Eli Zaretskii
35a96139df Clarify a comment in xdisp.c
* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment.  (Bug#52378)
2021-12-09 09:18:04 +02:00
Po Lu
52f3fe46a3 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.
2021-12-09 11:40:39 +08:00
Po Lu
bb1252bdb3 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.
2021-12-09 11:12:39 +08:00
Po Lu
47cd820d93 Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-09 10:30:18 +08:00
Stefan Kangas
dae4fc738a 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.
2021-12-09 03:28:19 +01:00
Stefan Kangas
63f07ea22f 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.
2021-12-09 00:57:34 +01:00
Stefan Kangas
929a8010ac 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.
2021-12-09 00:04:09 +01:00
Óscar Fuentes
6ba2f028cf Revert "Grep alias `all' shall not match parent directory"
This reverts commit 856cd948d1.

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
2021-12-08 23:52:39 +01:00
Stefan Monnier
c6bf11c281 * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-named-let): New test 2021-12-08 16:58:24 -05:00
Stefan Monnier
3a0e0187b7 * 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.
2021-12-08 16:22:24 -05:00
Stefan Monnier
aa3434369e 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.
2021-12-08 16:14:03 -05:00
Juri Linkov
00d107ebea * 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)
2021-12-08 22:31:55 +02:00
Juri Linkov
eb9e33e238 ; * etc/NEWS: Non-nil repeat-keep-prefix is not the default anymore. 2021-12-08 22:20:41 +02:00
Stefan Kangas
6cf358d7a2 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.
2021-12-08 17:48:25 +01:00
Stefan Kangas
5922c972cd ; * lisp/calc/calc-ext.el: Fix warnings in my last commit. 2021-12-08 17:48:25 +01:00
Eli Zaretskii
538fc1d0e0 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'.
2021-12-08 16:22:10 +02:00
Lele Gaifax
c8c7822c51 * etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.
Don't merge to master.
2021-12-08 13:48:46 +01:00
Stefan Kangas
1ea5b82145 Define calc-help-map in one step
* lisp/calc/calc-ext.el (calc-help-map): Define in one step and
convert to defvar-keymap.
2021-12-08 13:30:23 +01:00
Stefan Kangas
ed03b2f301 Convert shortdoc-mode-map to defvar-keymap
* lisp/emacs-lisp/shortdoc.el (shortdoc-mode-map): Convert to
defvar-keymap.
2021-12-08 13:22:21 +01:00
Stefan Kangas
e6e62eedd7 ; Merge from origin/emacs-28
The following commit was skipped:

0a2507ff90 Backport: Make a more robust check in Tramp using scripts
2021-12-08 13:04:14 +01:00
Stefan Kangas
05af96456c 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
2021-12-08 13:04:14 +01:00
Po Lu
58cf601aad Fix coarse scroll deltas on macOS
* src/nsterm.m (- mouseDown): Multiply deltas as appropriate.
2021-12-08 19:50:27 +08:00
Po Lu
f10d4b31d6 Clear scroll interpolation when interpolated scroll completes
* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate): Set
saved interpolation to nil upon completion.
2021-12-08 18:36:18 +08:00
Po Lu
d8c383b25e 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.
2021-12-08 18:30:37 +08:00
Michael Albinus
d5a6dd1f8c ; * etc/NEWS: Fix typos. 2021-12-08 10:20:42 +01:00