]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 days ago; Add indexing for Eglot in user manual
Eli Zaretskii [Thu, 20 Mar 2025 08:41:26 +0000 (10:41 +0200)]
; Add indexing for Eglot in user manual

* doc/emacs/programs.texi (Imenu, Programming Language Doc)
(Symbol Completion):
* doc/emacs/maintaining.texi (Xref): Index Eglot-related
functionalities.

(cherry picked from commit 2d12754ee20deb789bd5444f604acda6bb05bbf9)

10 days ago; Change some instances of cl to cl-lib in docs
Stefan Kangas [Thu, 20 Mar 2025 01:05:55 +0000 (02:05 +0100)]
; Change some instances of cl to cl-lib in docs

* doc/misc/cl.texi (Overview):
* doc/misc/eieio.texi (CLOS compatibility, Wish List): Change 'cl' to
'cl-lib' where appropriate.

(cherry picked from commit a30b9b640b46c23f0a6db7b8fbe329d93e035db6)

10 days ago; Improve introduction to use-package manual
Stefan Kangas [Wed, 19 Mar 2025 20:27:29 +0000 (21:27 +0100)]
; Improve introduction to use-package manual

* doc/misc/use-package.texi (Top): Improve introduction.

(cherry picked from commit b681d62436f577ddfbfbac50885d48cde320632e)

10 days ago; Add cross-references to push and pop docstrings
Stefan Kangas [Wed, 19 Mar 2025 20:27:38 +0000 (21:27 +0100)]
; Add cross-references to push and pop docstrings

* lisp/subr.el (push, pop): Add cross-references to Info manual.

(cherry picked from commit f1acefd86f8d88d26455fec43961d3060451b6f0)

10 days agoImprove 'gui-get-selection' on MS-Windows
Eli Zaretskii [Thu, 20 Mar 2025 09:03:32 +0000 (11:03 +0200)]
Improve 'gui-get-selection' on MS-Windows

* lisp/term/w32-win.el (w32--get-selection): Allow UTF8_STRING and
TEXT data types as well, since w32select.c handles that correctly.

(cherry picked from commit e53b90a5ce21feeb0290fbe035e9a2d6aae34bc3)

10 days ago; * etc/symbol-releases.eld: Add time-stamp, from my notes
Stephen Gildea [Thu, 20 Mar 2025 04:03:54 +0000 (21:03 -0700)]
; * etc/symbol-releases.eld: Add time-stamp, from my notes

(cherry picked from commit a7d2aa7e0c1a0984d6d1a3563b407efda123d6ae)

10 days ago; * java/org/gnu/emacs/EmacsInputConnection.java: Fix commentary typo.
Po Lu [Thu, 20 Mar 2025 02:21:03 +0000 (10:21 +0800)]
; * java/org/gnu/emacs/EmacsInputConnection.java: Fix commentary typo.

(cherry picked from commit f38f4588d7bb5dee9f6a5adc1b29bd457c70c7b2)

10 days agoRecenter calendar-chinese-year-cache on 2028
Stefan Kangas [Thu, 20 Mar 2025 01:38:58 +0000 (02:38 +0100)]
Recenter calendar-chinese-year-cache on 2028

* lisp/calendar/cal-china.el (calendar-chinese-year-cache): Recenter
on 2028.

(cherry picked from commit 3488ae7c5295bb2385d65f1e7e470bd727f6b408)

10 days ago; Improve documentation of incf and decf
Stefan Kangas [Wed, 19 Mar 2025 20:24:56 +0000 (21:24 +0100)]
; Improve documentation of incf and decf

* doc/lispref/variables.texi (Setting Generalized Variables): Mention
incf and decf.
* lisp/emacs-lisp/gv.el (incf, decf): Add references to Info manual
documentation on generalized variables.

(cherry picked from commit 03053baebee8a89f1b1d470a6173b9f1e80f0b39)

10 days ago; Delete duplicate variable definition
Stefan Kangas [Wed, 19 Mar 2025 20:02:30 +0000 (21:02 +0100)]
; Delete duplicate variable definition

* lisp/doc-view.el (doc-view--current-cache-dir): Delete duplicate
variable definition.

(cherry picked from commit 1fca171addd830fab78fb7cc1c73c43cd7d7a2e9)

10 days agoindent.erts (Code): Don't modify the global state
Stefan Monnier [Wed, 19 Mar 2025 19:47:11 +0000 (15:47 -0400)]
indent.erts (Code): Don't modify the global state

* test/lisp/progmodes/java-ts-mode-resources/indent.erts (Code):
Use `setq-local` and correspondingly move the remaining
assignment after activating the major mode.

(cherry picked from commit 5432331a62522c096246ef995a5b41dc067d25a9)

10 days ago; Skip commit beeece4712c464a6eb62c8e9b72c6f7515614f6c
Eshel Yaron [Sun, 23 Mar 2025 18:08:29 +0000 (19:08 +0100)]
; Skip commit beeece4712c464a6eb62c8e9b72c6f7515614f6c

10 days ago* lisp/files.el (save-some-buffers-action-alist): Fix 'view-mode'.
Juri Linkov [Wed, 19 Mar 2025 19:09:10 +0000 (21:09 +0200)]
* lisp/files.el (save-some-buffers-action-alist): Fix 'view-mode'.

Use 'view-mode-enter' instead of 'view-buffer' to ignore the 'special'
mode-class that prevents some modes from binding 'q' to 'exit-action'
that should call 'exit-recursive-edit' (bug#76745).

(cherry picked from commit 7016d1c8e3c16e8bfb61ce8ef96d85490a00c2eb)

13 days ago; Avoid scraping non-readable files for maintainers
Philip Kaludercic [Wed, 19 Mar 2025 17:33:01 +0000 (18:33 +0100)]
; Avoid scraping non-readable files for maintainers

* lisp/mail/emacsbug.el (submit-emacs-patch): Check if a file
mentioned in a patch can be opened.  (Bug#77083)

(cherry picked from commit a77f10305c9ad0354987b09ec9a967021bb47d93)

13 days ago; Skip commit cf5aaae90bd3961171e9edef6ee1f97b98c266a6
Eshel Yaron [Thu, 20 Mar 2025 10:52:43 +0000 (12:52 +0200)]
; Skip commit cf5aaae90bd3961171e9edef6ee1f97b98c266a6

13 days ago; Tramp: fixes resulting from test campaign
Michael Albinus [Wed, 19 Mar 2025 13:40:54 +0000 (14:40 +0100)]
; Tramp: fixes resulting from test campaign

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Handle symlinks.

* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
STDERR is not implemented.

* lisp/net/tramp.el (tramp-skeleton-process-file): Raise a warning
if STDERR is not implemented.
(tramp-handle-shell-command):
Respect `async-shell-command-display-buffer'.

* test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.

(cherry picked from commit f6632114fe661930c45b5e9c1bf66644be095ff9)

13 days agoOn tty frames restrict number of menu bar lines (Bug#77015)
Martin Rudalics [Wed, 19 Mar 2025 08:36:42 +0000 (09:36 +0100)]
On tty frames restrict number of menu bar lines (Bug#77015)

* src/frame.c (set_menu_bar_lines): Make sure tty frames get
only 0 or 1 menu bar line (Bug#77015).

(cherry picked from commit fa1cfcada0939e33d69696df6448b75b33ab656d)

13 days ago; Minor keymap cleanup in dired.el
Stefan Kangas [Tue, 18 Mar 2025 22:11:01 +0000 (23:11 +0100)]
; Minor keymap cleanup in dired.el

* lisp/dired.el:
(dired-context-menu): Prefer keymap-set.
(dired-click-to-select-map): Move key definition inside defvar-keymap.

(cherry picked from commit ec9290eb80253cc97990788aab588a15cb35b664)

13 days agolisp/emacs-lisp/smie.el (smie-config-show-indent): Tweak message
Stefan Monnier [Tue, 18 Mar 2025 12:42:42 +0000 (08:42 -0400)]
lisp/emacs-lisp/smie.el (smie-config-show-indent): Tweak message

(cherry picked from commit 0e1f81b9bc469c7b115d1abcd12c20aae4160dd7)

13 days agoEnsure redisplay after re-parenting a tty child frame (Bug#77079)
Martin Rudalics [Tue, 18 Mar 2025 08:17:52 +0000 (09:17 +0100)]
Ensure redisplay after re-parenting a tty child frame (Bug#77079)

* src/frame.c (store_frame_param): When re-parenting a tty child
frame, mark it's old and new root frames as garbaged so redisplay
will reflect the change immediately (Bug#77079).

(cherry picked from commit 739d18dc41234824f4f01bfaa2313510e2df14a7)

13 days agoFix generation of mouse position lists on the tool and tab bars
Po Lu [Tue, 18 Mar 2025 01:41:56 +0000 (09:41 +0800)]
Fix generation of mouse position lists on the tool and tab bars

* src/keyboard.c (make_lispy_tty_position): Return whether an
internal border was hit.
(make_lispy_position): Only skip standard window and frame
detection process if so, as there are other scenarios where POSN
is nil but WINDOW_OR_FRAME is none the less expected to be
provided by the conditionals skipped.

(cherry picked from commit 5a4b9ca7364f225eff9b134ff06a49c46179366e)

13 days ago; Use defvar-keymap in define-derived-mode
Stefan Kangas [Mon, 17 Mar 2025 23:33:32 +0000 (00:33 +0100)]
; Use defvar-keymap in define-derived-mode

* lisp/emacs-lisp/derived.el (define-derived-mode): Use defvar-keymap.
This change is for documentation purposes on macro expansion.

(cherry picked from commit 5f4c9053538fc1bf472c1be9a203db5c6178ea02)

13 days agoUse 'help-key' function in more places
Stefan Kangas [Mon, 17 Mar 2025 17:45:20 +0000 (18:45 +0100)]
Use 'help-key' function in more places

* lisp/dired-aux.el (dired-query):
* lisp/emacs-lisp/helper.el (Helper-help-map):
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Use 'help-key'.
* lisp/net/tramp-cmds.el (tramp-rename-files):
* lisp/which-key.el (which-key--next-page-hint): Prefer 'help-key'
when available.
* lisp/help.el (help-key): Simplify.
* etc/symbol-releases.eld: Add 'help-key'.

(cherry picked from commit 69210eb84e7c3074c339b8aa2f380f66a80ae61b)

13 days ago; * lisp/follow.el (follow-mode-prefix-key): Improve.
Stefan Kangas [Sun, 16 Mar 2025 21:26:09 +0000 (22:26 +0100)]
; * lisp/follow.el (follow-mode-prefix-key): Improve.

(cherry picked from commit 49e019fbbc61e22167f0a15a3b1983d98bce7be6)

13 days ago; Fix 'java-ts-mode' tests (Bug#77070)
john muhl [Mon, 17 Mar 2025 14:04:33 +0000 (09:04 -0500)]
; Fix 'java-ts-mode' tests (Bug#77070)

* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
Set 'indent-tabs-mode' later.

(cherry picked from commit be2b5a7148887879e0127994c9d779a943e3df2b)

13 days ago; * src/dispnew.c (adjust_glyph_matrix): Restore lost comment.
Eli Zaretskii [Mon, 17 Mar 2025 12:19:34 +0000 (14:19 +0200)]
; * src/dispnew.c (adjust_glyph_matrix): Restore lost comment.

(cherry picked from commit 4cfeb3697c242b5d669a102bd43fa51f776f987e)

13 days ago; * src/dispnew.c (adjust_glyph_matrix): Add comment (bug#77039).
Eli Zaretskii [Mon, 17 Mar 2025 12:16:45 +0000 (14:16 +0200)]
; * src/dispnew.c (adjust_glyph_matrix): Add comment (bug#77039).

(cherry picked from commit 4008e664a8dc6d92dda0ba0a5b0c717ab3f72e5c)

13 days ago; Skip commit c44f34475af6b1e32c71a230e25e0cbea0697c4c
Eshel Yaron [Thu, 20 Mar 2025 10:48:14 +0000 (12:48 +0200)]
; Skip commit c44f34475af6b1e32c71a230e25e0cbea0697c4c

13 days ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Mon, 17 Mar 2025 12:12:13 +0000 (14:12 +0200)]
; * etc/NEWS: Fix last change.

(cherry picked from commit fd88c5232098a323f6334b6e1f7e2dacdc447a8e)

2 weeks agoMake marking conflicted files as resolved upon saving opt-out
Mauro Aranda [Mon, 17 Mar 2025 09:55:07 +0000 (06:55 -0300)]
Make marking conflicted files as resolved upon saving opt-out

This fixes Bug#3860.

* lisp/vc/vc.el (vc-resolve-conflicts): New user option.
* lisp/vc/vc-bzr.el (vc-bzr-resolve-conflicts): New user option.
(vc-bzr-find-file-hook): Use it.
* lisp/vc/vc-hg.el (vc-hg-resolve-conflicts): New user option.
(vc-hg-find-file-hook): Use it.
* lisp/vc/vc-svn.el (vc-svn-resolve-conflicts): New user option.
(vc-svn-find-file-hook): Use it.
* lisp/vc/vc-git.el (vc-git-resolve-conflicts): Support
'default' as an option.  Adjust docstring and version.
(vc-git-find-file-hook): Respect vc-resolve-conflicts.
* etc/NEWS: Announce the new options.

(cherry picked from commit acb96a5ca8ac3bef80ca2ff1496cacb3ab57c87a)

2 weeks agoImplement dragging and resizing of tty child frames
Martin Rudalics [Mon, 17 Mar 2025 08:50:19 +0000 (09:50 +0100)]
Implement dragging and resizing of tty child frames

* lisp/faces.el (face-spec-recalc): Don't set
scroll-bar-foreground and scroll-bar-background parameters on
ttys.
* lisp/mouse.el (mouse-drag-frame-resize)
(mouse-drag-frame-move): On ttys call
'mouse-position-in-root-frame' to get position of child frame to
resize or drag.
* lisp/xt-mouse.el (xterm-mouse-event): Handle events on
child frame decorations as if they happened on the internal border
to find out whether a user wants to drag or resize a child frame.
* src/frame.c (frame_internal_border_part): Define for ttys too.
(Fmouse_position_in_root_frame): New function.
* src/frame.h (internal_border_part): Define for ttys too.
* src/keyboard.c (internal_border_parts): Define for ttys too.
(frame_border_side): New enum.
(make_lispy_position): Handle events on tty child frames.
(Fposn_at_x_y): Accept -1 for Y so we can handle a position on
the top decoration of a tty child frame.
* src/term.c (tty_frame_at): Handle case where X and Y denote a
position on a tty child frame's decoration.
* src/window.c (Fwindow_at): Handle case where X and Y denote a
position on the decoration of a tty child frame which we pretend
as belonging to that child frame (and not to its root).

(cherry picked from commit 86be9431ae88126387ed8402cb4953963ebba6f8)

2 weeks agoImplement surrogate menu bars for tty child frames
Martin Rudalics [Mon, 17 Mar 2025 08:36:59 +0000 (09:36 +0100)]
Implement surrogate menu bars for tty child frames

* lisp/menu-bar.el (popup-menu): When asked to pop up MENU from
a tty child frame try to use menu of its root frame.
(menu-bar-open): When FRAME is a child frame and
'tty-menu-open-use-tmm' is nil, navigate menu bar of its root
frame.
* src/keymap.c (Fcurrent_active_maps): Accept live window as
POSITION argument and use its buffer as current when processing
the key sequence.  Needed for tty child frames so the root
frame's menu bar can be updated according to the selected
window's buffer when navigating the menu bar from keyboard.
* src/xdisp.c (prepare_menu_bars): If the selected window's
frame is a tty child frame without menu bar, that frame's root
frame has a menu bar and 'tty-menu-open-use-tmm' is nil, prepare
to update the menu bar of the root frame as surrogate.
(update_menu_bar): New argument W denoting the window that
should be considered as selected.  For a tty child frame using F
as surrogate menu bar frame this specifies the child frame's
selected window and its buffer shall be used for updating the
menu bar of the root frame instead of the buffer of the root
frame's selected window.
(redisplay_window): Instead of setting redisplay_menu_p flag
always call display_menu_bar right away.  This facilitates to
call display_menu_bar for a tty child frame with its root
frame as surrogate menu bar frame.
(display_tty_menu_item): If the selected frame is a tty child
frame, overwrite its root frame's glyph matrix (and not that of
the child frame) when displaying a menu item.
(Qtty_menu_open_use_tmm): Define symbol.

(cherry picked from commit 7e71b0a2c938623872ec7404d81339c8ff51b012)

2 weeks ago; Skip commit d708ebe401a2001e764821b7e43d9e9aaa23ea95
Eshel Yaron [Mon, 17 Mar 2025 11:06:11 +0000 (12:06 +0100)]
; Skip commit d708ebe401a2001e764821b7e43d9e9aaa23ea95

2 weeks agoAdd some keywords to java-ts-mode--keywords (bug#75154)
Yuan Fu [Mon, 17 Mar 2025 05:38:26 +0000 (22:38 -0700)]
Add some keywords to java-ts-mode--keywords (bug#75154)

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--keywords): Add keywords, remove @interface.

(cherry picked from commit eb63d0c04a6747a8a1847b88a50befb4e425e7a3)

2 weeks agoMove around java-ts-mode font-lock rules (bug#75154)
Yuan Fu [Mon, 17 Mar 2025 05:30:42 +0000 (22:30 -0700)]
Move around java-ts-mode font-lock rules (bug#75154)

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--font-lock-settings): Move constant feature down
so it overrides expression and definition.

(cherry picked from commit 3d2d95e28431a16897a65543d8b26c791b389ef6)

2 weeks agoUse c-ts-common baseline rule in java-ts-mode (bug#75154)
Yuan Fu [Fri, 14 Feb 2025 02:24:41 +0000 (18:24 -0800)]
Use c-ts-common baseline rule in java-ts-mode (bug#75154)

Use it for function parameters.

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--standalone-predicate): New function.
(java-ts-mode--indent-rules): Comment out rules for function
parameters and statements, and add
c-ts-common-baseline-indent-rule as fallback.
(java-ts-mode): Setup.
(java-ts-mode--first-line-on-multi-line-string): Mark BOL as
unused.
* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
New test.

(cherry picked from commit 93cd55f40e5e1788e55d82c572f1fafac1dee499)

2 weeks agoAdd indentation for multi-line string in java-ts-mode (bug#75154)
Yuan Fu [Fri, 14 Feb 2025 02:23:43 +0000 (18:23 -0800)]
Add indentation for multi-line string in java-ts-mode (bug#75154)

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--first-line-on-multi-line-string): New function.
(java-ts-mode--indent-rules): Add rules.

(cherry picked from commit affb2ba77b4a7ec7c000b18cc5c30d237e1b7165)

2 weeks agoAdd java-ts-mode-method-chaining-indent-offset (bug#75154)
Yuan Fu [Thu, 13 Feb 2025 15:57:19 +0000 (07:57 -0800)]
Add java-ts-mode-method-chaining-indent-offset (bug#75154)

Default method chaining to indent 8 spaces.

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode-method-chaining-indent-offset): New custom option.
(java-ts-mode--indent-rules): Use
java-ts-mode-method-chaining-indent-offset.

(cherry picked from commit 8fb31f58664b2c963dcc49706c163ffb4fafd699)

2 weeks ago; Skip commit d7763c45138865e81895cc2196602ab1893af5af
Eshel Yaron [Mon, 17 Mar 2025 11:05:59 +0000 (12:05 +0100)]
; Skip commit d7763c45138865e81895cc2196602ab1893af5af

2 weeks agoMake sure to initialize glyph::frame to NULL (bug#77039)
Gerd Möllmann [Sun, 16 Mar 2025 20:17:55 +0000 (21:17 +0100)]
Make sure to initialize glyph::frame to NULL (bug#77039)

* src/dispnew.c (adjust_glyph_matrix): Clear glyph memory when
enlarging window-system window glyph matrices.

(cherry picked from commit eab14d68b2e72b9a6b8b0cc67c9667c2bfbed4f5)

2 weeks agoCorrectly unload variable aliases.
Jens Schmidt [Fri, 14 Mar 2025 22:07:11 +0000 (23:07 +0100)]
Correctly unload variable aliases.

* src/eval.c (Finternal_delete_indirect_variable): Add function.
* lisp/loadhist.el (loadhist-unload-element): Use it for variable
aliases.
* test/src/eval-tests.el (eval-tests--internal-delete-indirect-variable):
Test function `internal-delete-indirect-variable'.
* test/lisp/loadhist-tests.el (loadhist-test-unload-feature-alias):
* test/lisp/loadhist-resources/loadhist--alias.el: Test unloading of
features that define variable aliases.  (Bug#76748)

(cherry picked from commit 7f2e4508cebe76a885b72ca4789ae839d5bd45e1)

2 weeks agoTramp: Handle symlinks to non-existing targets better
Michael Albinus [Sun, 16 Mar 2025 13:17:38 +0000 (14:17 +0100)]
Tramp: Handle symlinks to non-existing targets better

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Don't use the truename.

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Refactor.  Handle
symlinks.  (Bug#76678)

* lisp/net/tramp-smb.el (tramp-smb-errors): Add string.
(tramp-smb-handle-copy-file, tramp-smb-handle-rename-file):
Refactor.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Don't use the truename.  Handle symlinks.

* lisp/net/tramp.el (tramp-barf-if-file-missing): Accept also symlinks.
(tramp-skeleton-file-exists-p): Handle non-existing symlink targets.
(tramp-skeleton-set-file-modes-times-uid-gid): Fix typo.

* test/lisp/net/tramp-tests.el (vc-handled-backends):
Suppress only if noninteractive.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test18-file-attributes, tramp-test21-file-links)
(tramp--test-check-files): Adapt tests.

(cherry picked from commit b8104dadbf285d12c356d4cddd28ac3eaf05f263)

2 weeks agoDon't recommend legacy keymap functions in docstrings
Stefan Kangas [Sat, 15 Mar 2025 13:11:51 +0000 (14:11 +0100)]
Don't recommend legacy keymap functions in docstrings

* lisp/comint.el (comint-prompt-read-only):
* lisp/ielm.el (ielm-prompt-read-only):
* lisp/international/ogonek.el (ogonek-informacja, ogonek-information):
* lisp/mouse-copy.el (mouse-drag-secondary-pasting):
* lisp/mouse-drag.el (mouse-drag-throw, mouse-drag-drag): Don't
recommend using legacy keymap functions.

(cherry picked from commit 03e33cbef3e33aa1ec843388d1671f7116a7347b)

2 weeks agoUse substitute-quotes for checkdoc errors
Stefan Kangas [Sat, 15 Mar 2025 18:26:31 +0000 (19:26 +0100)]
Use substitute-quotes for checkdoc errors

* lisp/emacs-lisp/checkdoc.el (checkdoc-create-error): Use
substitute-quotes.

(cherry picked from commit dec21bcc9997780a9c56e4eb7f718fd64d8c32ec)

2 weeks ago; Update lisp/ldefs-boot.el
Eshel Yaron [Mon, 17 Mar 2025 10:50:23 +0000 (11:50 +0100)]
; Update lisp/ldefs-boot.el

2 weeks agoSimplify tempo.el a bit and use it in refactor.el
Eshel Yaron [Mon, 17 Mar 2025 10:49:39 +0000 (11:49 +0100)]
Simplify tempo.el a bit and use it in refactor.el

2 weeks agoDrop snmp-mode.el
Eshel Yaron [Mon, 17 Mar 2025 10:00:27 +0000 (11:00 +0100)]
Drop snmp-mode.el

2 weeks agoBump electric-pair-mode definition up a bit
Eshel Yaron [Sun, 16 Mar 2025 18:04:23 +0000 (19:04 +0100)]
Bump electric-pair-mode definition up a bit

2 weeks agoFix 'lisp-kill-line' with point before comment
Eshel Yaron [Sun, 16 Mar 2025 17:02:35 +0000 (18:02 +0100)]
Fix 'lisp-kill-line' with point before comment

2 weeks agoUse defvar-keymap for some trivial keymaps
Stefan Kangas [Sat, 15 Mar 2025 12:39:45 +0000 (13:39 +0100)]
Use defvar-keymap for some trivial keymaps

* lisp/bindings.el (mode-line-window-dedicated-keymap)
(mode-line-buffer-identification-keymap):
* lisp/emulation/cua-rect.el (cua--overlay-keymap, cua--overlay-key):
* lisp/mh-e/mh-mime.el (mh-mime-security-button-map):
* lisp/mh-e/mh-utils.el (mh-hidden-header-keymap):
* lisp/net/eudc-bob.el (eudc-bob-generic-keymap, eudc-bob-image-keymap)
(eudc-bob-sound-keymap, eudc-bob-url-keymap, eudc-bob-mail-keymap):
* lisp/progmodes/etags-regen.el (etags-regen-mode-map):
* lisp/progmodes/octave.el (octave-help-mode-map):
* lisp/replace.el (multi-query-replace-map):
* lisp/simple.el (process-menu-mode-map, messages-buffer-mode-map):
* lisp/startup.el (splash-screen-keymap):
* lisp/tab-bar.el (tab-bar-mode-map):
* lisp/textmodes/ispell.el (ispell-minor-keymap):
* lisp/textmodes/tex-mode.el (latex-mode-map, plain-tex-mode-map):
* lisp/tree-widget.el (tree-widget-button-keymap):
* lisp/vc/vc-hooks.el (vc-mode-line-map): Use defvar-keymap.

(cherry picked from commit d8d524071d78d6499278546cf13ae261c05cadf3)

2 weeks ago; New `bisect' argument to `ats-execute-tests-batch'
Po Lu [Sun, 16 Mar 2025 12:14:32 +0000 (20:14 +0800)]
; New `bisect' argument to `ats-execute-tests-batch'

* test/infra/android/test-controller.el
(ats-execute-tests-batch): New argument `bisect'.

(cherry picked from commit 5d02ca181daa2b3833a2b32157388a7b131955e8)

2 weeks agoFix clipboard object handle leak on Android 3.1 to 11.0
Po Lu [Sun, 16 Mar 2025 12:12:52 +0000 (20:12 +0800)]
Fix clipboard object handle leak on Android 3.1 to 11.0

* src/androidselect.c (extract_fd_offsets): Release retrieved
ParcelFileDescriptor objects on APIs 12 through 30.

(cherry picked from commit 2d5cf228186184b5af6e4e8ee8f5280f67f407bc)

2 weeks agoAvoid rare segfaults in 'combine_updates_for_frame'
Eli Zaretskii [Sun, 16 Mar 2025 11:35:18 +0000 (13:35 +0200)]
Avoid rare segfaults in 'combine_updates_for_frame'

* src/xdisp.c (redisplay_internal): Don't add to 'tty_root_frames'
frames that are not yet completely made.  (Bug#77046)

(cherry picked from commit 412a6fad98e768000dfe9538179889d6faeaa97a)

2 weeks agoOnly disable 'completion-preview-active-mode' when it is on
Eshel Yaron [Sun, 16 Mar 2025 08:45:25 +0000 (09:45 +0100)]
Only disable 'completion-preview-active-mode' when it is on

* lisp/completion-preview.el
(completion-preview--post-command): Avoid calling
'completion-preview-active-mode' to disable the mode when
already off, since it forces a costly redisplay. (Bug#76964)

(cherry picked from commit b6b4a080a3abb5a45b680e26f93dd17adbb75f69)

2 weeks agoNew project-save-some-buffers command
Sean Whitton [Sat, 15 Mar 2025 08:03:38 +0000 (16:03 +0800)]
New project-save-some-buffers command

* lisp/progmodes/project.el (project-save-some-buffers): New command.
(project-prefix-map): Bind it to C-x p C-x s.
* etc/NEWS: Announce the new command and binding.

(cherry picked from commit db0bed7a68cd2308eba61247a6a77f73533ffef6)

2 weeks agovc-revert: Offer to save modified buffers (bug#55310)
Sean Whitton [Sat, 15 Mar 2025 08:02:56 +0000 (16:02 +0800)]
vc-revert: Offer to save modified buffers (bug#55310)

* lisp/vc/vc.el (vc-revert): Offer to save modified buffers that
otherwise prevent proceeding with the revert (bug#55310).

(cherry picked from commit 6f483ffdc217ea9f8dc079b2344f771214222273)

2 weeks ago; Skip commit f5f3fb7dd4e7d0c1fa235309d29d8d1c9432c277
Eshel Yaron [Sun, 16 Mar 2025 16:33:32 +0000 (17:33 +0100)]
; Skip commit f5f3fb7dd4e7d0c1fa235309d29d8d1c9432c277

2 weeks ago; Skip commit 91a9d021999d78109b01bad21d3439bc2e2875cd
Eshel Yaron [Sun, 16 Mar 2025 16:33:27 +0000 (17:33 +0100)]
; Skip commit 91a9d021999d78109b01bad21d3439bc2e2875cd

2 weeks agoUpdate to Transient v0.8.6-7-g64cb8404
Jonas Bernoulli [Sat, 15 Mar 2025 19:21:20 +0000 (20:21 +0100)]
Update to Transient v0.8.6-7-g64cb8404

(cherry picked from commit f12ea5b703b88f0a877013bffff37a99c86143c7)

2 weeks ago; Doc fix for legacy keymap functions
Stefan Kangas [Sat, 15 Mar 2025 18:36:51 +0000 (19:36 +0100)]
; Doc fix for legacy keymap functions

* doc/lispref/keymaps.texi (Low-Level Key Binding): Add new alternatives
for two more legacy functions.

(cherry picked from commit dcf3916e558d974aef6516e5709379fa3c762832)

2 weeks ago; Skip commit 227db70db984091dc2ba9e1d860ce5354d729f7f
Eshel Yaron [Sun, 16 Mar 2025 16:33:13 +0000 (17:33 +0100)]
; Skip commit 227db70db984091dc2ba9e1d860ce5354d729f7f

2 weeks agoAdd the treesit 'list' thing to csharp/go/php/rust-ts-mode (bug#73404)
Juri Linkov [Sat, 15 Mar 2025 18:37:46 +0000 (20:37 +0200)]
Add the treesit 'list' thing to csharp/go/php/rust-ts-mode (bug#73404)

* lisp/progmodes/csharp-mode.el (csharp-ts-mode): Add the
'list' and 'sentence' things to 'treesit-thing-settings'.
Set 'treesit-outline-predicate'.

* lisp/progmodes/go-ts-mode.el (go-ts-mode):
Add 'treesit-thing-settings' with the 'list' and 'sentence' things.

* lisp/progmodes/php-ts-mode.el (php-ts-mode):
Add the 'list' thing to 'treesit-thing-settings'.

* lisp/progmodes/rust-ts-mode.el (rust-ts-mode):
Add 'treesit-thing-settings' with the 'list' thing.

(cherry picked from commit f3925732bc55be3d6d32d20b95f7a88926d4ebda)

2 weeks agoSimplify skeleton.el and tempo.el a bit
Eshel Yaron [Sun, 16 Mar 2025 16:09:25 +0000 (17:09 +0100)]
Simplify skeleton.el and tempo.el a bit

2 weeks agoDrop dcl-mode.el
Eshel Yaron [Sun, 16 Mar 2025 16:08:49 +0000 (17:08 +0100)]
Drop dcl-mode.el

2 weeks ago; * lisp/winner.el (winner--set-dont-bind-my-keys): Fix typo.
Eshel Yaron [Sat, 15 Mar 2025 17:24:28 +0000 (18:24 +0100)]
; * lisp/winner.el (winner--set-dont-bind-my-keys): Fix typo.

(cherry picked from commit 4f4105e6227cdb00109efb683d96beb47fd894c4)

2 weeks ago; Skip commit 3860562a715b8ba7b727f7831e06ce5a0e676784
Eshel Yaron [Sat, 15 Mar 2025 17:16:23 +0000 (18:16 +0100)]
; Skip commit 3860562a715b8ba7b727f7831e06ce5a0e676784

2 weeks agoImprove conversion between half-width and full-width characters
Eli Zaretskii [Sat, 15 Mar 2025 11:58:44 +0000 (13:58 +0200)]
Improve conversion between half-width and full-width characters

* lisp/textmodes/text-mode.el (text-mode--get-fullwidth-table):
Add conversion of SPC to IDEOGRAPHIC SPACE.  (Bug#71822)

(cherry picked from commit ea49eb4752a0632d8d0dfd4215821ab21bbd5a99)

2 weeks ago; Minor Tramp changes
Michael Albinus [Sat, 15 Mar 2025 11:43:35 +0000 (12:43 +0100)]
; Minor Tramp changes

* doc/misc/tramp.texi (Top): Add Key Index to menu.
(Key Index): New node.

* lisp/net/tramp-cmds.el (tramp-dired-buffer-command-completion-p):
New defun.
(tramp-dired-find-file-with-sudo): Add property
`completion-predicate'.

(cherry picked from commit 4b8b7bb5cfc27b88fdf892a87931f5b89ff8c4a3)

2 weeks agoFix 'whitespace-mode' in CJK locales
Eli Zaretskii [Sat, 15 Mar 2025 11:42:12 +0000 (13:42 +0200)]
Fix 'whitespace-mode' in CJK locales

* lisp/international/characters.el (ambiguous-width-chars): Remove
U+00A4 and U+00B7 from the list of ambiguous-width characters.
(cjk-ambiguous-chars-are-wide): Doc fix.  (Bug#76852)

(cherry picked from commit 1a8fbf69e3378996e633cf299b6a2d0716722d86)

2 weeks ago; Touch up tramp-*-with-sudo documentation, add FIXMEs
Sean Whitton [Sat, 15 Mar 2025 11:32:35 +0000 (19:32 +0800)]
; Touch up tramp-*-with-sudo documentation, add FIXMEs

* doc/emacs/dired.texi (Dired Visiting):
* doc/emacs/files.texi (Reverting):
* doc/misc/tramp.texi (Ad-hoc multi-hops):
* etc/NEWS:
* lisp/net/tramp-cmds.el (tramp-revert-buffer-with-sudo)
(tramp-dired-find-file-with-sudo): Touch up documentation of
these features.  Add FIXMEs about renaming the two commands.

(cherry picked from commit a57e9f45db6007bdb4af21a444f0ed62d1b2010e)

2 weeks ago; * lisp/so-long.el: Documentation
Phil Sainty [Tue, 18 Feb 2025 12:02:22 +0000 (01:02 +1300)]
; * lisp/so-long.el: Documentation

(cherry picked from commit 87f9c09ab5fbfa9652aabe2799df654456d5e04c)

2 weeks ago; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 30
Phil Sainty [Tue, 18 Feb 2025 12:07:04 +0000 (01:07 +1300)]
; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 30

We support Emacs 24.4 and later (for ELPA releases), so revert the
change from commit 7705bdfa5b89f78dab049f73f636b9680a3c12bc

(cherry picked from commit 25eabcde0d6ec7d8c161c2e05a5600b1c22fa43d)

2 weeks ago; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 27
Phil Sainty [Thu, 9 Jan 2025 08:21:55 +0000 (21:21 +1300)]
; * lisp/so-long.el: Backwards-compatibility fix for Emacs < 27

We support Emacs 24.4 and later (for ELPA releases), and ad-find-advice
only changed from a macro to a function in Emacs 27, so this change is
to restore compatibility with older versions where we do need the macro
definition loaded at byte-compilation time.

This effectively combines the related changes from:

- commit 986c12b20fa29c37f13563846fddf6edcd0b4945
- commit c221db0402031c23b983eea3a6bc129e5abb98f6

(cherry picked from commit 03a6d5a76331e814368f17a61718208242e44bee)

2 weeks ago; Improve documentation of 'gui-get-selection' use on X
Eli Zaretskii [Sat, 15 Mar 2025 09:48:36 +0000 (11:48 +0200)]
; Improve documentation of 'gui-get-selection' use on X

* doc/lispref/frames.texi (Window System Selections):
* lisp/select.el (gui-get-selection): Suggest to use an explicit
DATA-TYPE when calling 'gui-get-selection'.

(cherry picked from commit 01c03043e6e93dd12570a960ca54108d543578db)

2 weeks ago* lisp/bindings.el (tramp-revert-buffer-with-sudo): Declare.
Michael Albinus [Sat, 15 Mar 2025 08:57:39 +0000 (09:57 +0100)]
* lisp/bindings.el (tramp-revert-buffer-with-sudo): Declare.

(cherry picked from commit 5d1b696e9953f69ad918af094e5d09562a4deeaf)

2 weeks ago; Fix last change (bug#76789)
Eli Zaretskii [Sat, 15 Mar 2025 08:52:45 +0000 (10:52 +0200)]
; Fix last change (bug#76789)

* doc/misc/speedbar.texi (Frames Windows and Faces): Fix node
name.  Fix markup and punctuation.
(Introduction): Fix markup.

(cherry picked from commit f69cc74c897b2e9c3eb0ad9a140743ad4d69a019)

2 weeks agoAdd a new command `speedbar-window'.
Vincenzo Pupillo [Thu, 6 Mar 2025 12:39:01 +0000 (13:39 +0100)]
Add a new command `speedbar-window'.

Speedbar now can be opened in a window instead of a separate frame. The
frame remains the default.

* doc/emacs/frames.texi: Mention Speedbar window mode.
* doc/misc/speedbar.texi: Document 'speedbar-window'.
* lisp/speedbar.el
(speedbar-prefer-window): New user option. If t, the command `speedbar'
open the speedbar in a window.
(speedbar-window-dedicated-window): New user option. If t the window is
dedicated.
(speedbar-window-side):  New user option. The side of 'speedbar-window',
defaults to left.
(speedbar-window-default-width): New user option. The default size of
the 'speedbar-window'.
(speedbar-window-max-width): New user option. Limits the width of the
'speedbar-window'. The user can resize the window as desired, but this
option will be the width of the window when restored.
(speedbar--buffer-name): New variable, the buffer name used for both
'speedbar-frame-mode' and 'speedbar-window-mode'.
(speedbar--window): New variable, the window displaying 'speedbar-window'.
(speedbar--window-width): New variable, store the current width of
'speedbar-window'.
(speedbar-easymenu-definition-trailer): Now it is a function that
returns a different trailer for 'speedbar-frame' and 'speedbar-window'.
(speedbar): Now it is a function that calls 'speedbar-frame-mode', the
default or 'speedbar-window-mode' based on the value of
'speedbar-prefer-window'.
(speedbar-frame-mode): Before opening a frame, close 'speedbar-window'
if it is open.
(speedbar-frame-or-window): New function, returns 'frame', 'window'
or nil if speedbar is not open.
(speedbar-window): New alias for 'speedbar-window-mode'.
(speedbar-window-mode): Enable of disable 'speedbar-window'.
(speedbar-window--window-live-p): New function, return non-nil if the
'speedbar-window' is live.
(speedbar-window--buffer-live-p): New function, return non-nil if the
'speedbar-buffer' is live.
(speedbar-window--live-p): New function, return t if 'speedbar-window'
is open.
(speedbar-window-current-window): New function, return t if the selected
window is speedbar-window.
(speedbar-window--close): New function, close the 'speedbar-window'.
(speedbar-window--width): New function, return the current width of
'speedbar-window'.
(speedbar-width): New function, return the 'speedbar' of
'speedbar-frame-mode' of 'speedbar-frame-mode'.
(speedbar-set-mode-line-format): Use the new 'speedbar-width' function.
(speedbar-directory-buttons): Use the new 'speedbar-width' function.
(speedbar--speedbar-live-p): New function, returns t if
'speedbar-frame-mode' or 'speedbar-window-mode' are open.
(speedbar-timer-fn): Now handle 'speedbar-frame-mode' and
'speedbar-window-mode'.

(cherry picked from commit c1aab8c49b763abc482a6dbc402782bbe5370da0)

2 weeks ago; * doc/lispref/commands.texi (Click Events): Fix a thinko.
Eli Zaretskii [Sat, 15 Mar 2025 08:17:20 +0000 (10:17 +0200)]
; * doc/lispref/commands.texi (Click Events): Fix a thinko.

(cherry picked from commit c8471129dd6e576aaf2dfdc65e09fcf297d1ff3c)

2 weeks ago; Skip commit 66ec9ae71959fd562646c8c3b482aff7f41adc50
Eshel Yaron [Sat, 15 Mar 2025 17:14:02 +0000 (18:14 +0100)]
; Skip commit 66ec9ae71959fd562646c8c3b482aff7f41adc50

2 weeks ago; Fix documentation of recent change in mouse.el
Eli Zaretskii [Sat, 15 Mar 2025 08:10:14 +0000 (10:10 +0200)]
; Fix documentation of recent change in mouse.el

* lisp/mouse.el (mouse-event-areas-with-no-buffer-positions): Doc
fix.
(mouse-posn-property): Add commentary.

(cherry picked from commit 82e44e86754427864305fcc2e03a52a54a1cae2f)

2 weeks ago; Fix documentation of mouse-click events
Eli Zaretskii [Sat, 15 Mar 2025 08:04:01 +0000 (10:04 +0200)]
; Fix documentation of mouse-click events

* doc/lispref/commands.texi (Click Events): Add menu-bar events to
the description.  Add missing details about tab-bar click events.

(cherry picked from commit 6e28c2019e772aa19040cf17e314fcee23bb33d4)

2 weeks ago; * lisp/dired.el (project-root): Declare.
Eli Zaretskii [Sat, 15 Mar 2025 07:36:03 +0000 (09:36 +0200)]
; * lisp/dired.el (project-root): Declare.

(cherry picked from commit e09cb3aee9a7dfb851d0470f30bd71426c3434bf)

2 weeks agoFix mouse-posn-property
Gerd Möllmann [Fri, 14 Mar 2025 14:44:04 +0000 (15:44 +0100)]
Fix mouse-posn-property

* doc/lispref/commands.texi (Click Events): Mention menu-bar.
* lisp/mouse.el (mouse-event-areas-with-no-buffer-positions):
New defvar including all areas mentioned in the Lisp reference.
(mouse-posn-property): Use it.

(cherry picked from commit b105089715c8b5d467282513965035faf955a5e3)

2 weeks ago; * src/w32.c (term_ntproc): Fix capitalization of commentary.
Po Lu [Sat, 15 Mar 2025 04:47:40 +0000 (12:47 +0800)]
; * src/w32.c (term_ntproc): Fix capitalization of commentary.

(cherry picked from commit 88e30e1ac5a154d9828954f8052e1a04aed15999)

2 weeks ago; Fix punctuation and typos in w32proc.c
Po Lu [Sat, 15 Mar 2025 04:46:32 +0000 (12:46 +0800)]
; Fix punctuation and typos in w32proc.c

* src/w32proc.c (WFO_MAX_WAIT, wait_objects_context)
(start_wait_objects, stop_wait_objects, end_wait_and_return)
(shrink_wait_pool, free_wait_pool, wait_for_objects)
(msg_wait_for_objects, delete_child, WINAPI, create_child)
(waitpid): Repunctuate sentences and correct typos.

(cherry picked from commit 1749ad825e2d7bd456665ce02fb7faf79a6e9143)

2 weeks agoDelete pre-Emacs 20 documentation from term.el
Stefan Kangas [Sat, 15 Mar 2025 01:37:44 +0000 (02:37 +0100)]
Delete pre-Emacs 20 documentation from term.el

* lisp/term.el: Delete comment titled "Converting process modes to use
term mode".  This comment from 1994 is only of historical interest.

(cherry picked from commit aa66edeeba508bf5be89a5257216a5d995e47d89)

2 weeks ago; * etc/symbol-releases.eld: Add current-global-map.
Stefan Kangas [Sat, 15 Mar 2025 00:17:24 +0000 (01:17 +0100)]
; * etc/symbol-releases.eld: Add current-global-map.

This avoids saying that it was introduced in Emacs 29.1.

(cherry picked from commit 3864b9352a01804af2e4b43a6bc171953375cdf7)

2 weeks agoRecommend using 'keymap-set' in Commentaries
Stefan Kangas [Sat, 15 Mar 2025 00:01:16 +0000 (01:01 +0100)]
Recommend using 'keymap-set' in Commentaries

* lisp/calendar/timeclock.el, lisp/comint.el, lisp/ehelp.el:
* lisp/gnus/gnus-bookmark.el, lisp/gnus/smiley.el, lisp/ido.el:
* lisp/isearchb.el, lisp/mail/mailabbrev.el, lisp/net/ange-ftp.el:
* lisp/net/goto-addr.el, lisp/play/fortune.el, lisp/saveplace.el:
* lisp/shell.el, lisp/term.el, lisp/textmodes/makeinfo.el:
* lisp/textmodes/refer.el, lisp/textmodes/remember.el:
* lisp/textmodes/table.el, lisp/woman.el: Recommend using
'keymap-set' instead of 'define-key' in Commentaries.

(cherry picked from commit ecd756dd391c1436820593e240f1f7b8a28b2c6e)

2 weeks agoRecommend using 'keymap-global-set' in Commentaries
Stefan Kangas [Fri, 14 Mar 2025 23:09:45 +0000 (00:09 +0100)]
Recommend using 'keymap-global-set' in Commentaries

* lisp/bs.el, lisp/calculator.el, lisp/cedet/data-debug.el:
* lisp/help-at-pt.el, lisp/hilit-chg.el, lisp/mail/mspools.el:
* lisp/mh-e/mh-e.el, lisp/mouse-copy.el, lisp/mouse-drag.el:
* lisp/net/browse-url.el, lisp/net/webjump.el, lisp/printing.el:
* lisp/progmodes/cfengine.el, lisp/progmodes/ebnf2ps.el:
* lisp/ps-print.el, lisp/repeat.el, lisp/term/wyse50.el:
* lisp/term/x-win.el, lisp/vcursor.el, lisp/woman.el:
Recommend using 'keymap-global-set' instead of 'global-set-key'.

(cherry picked from commit 679ad95a67fbecafd203c9e7f55547a312b3833b)

2 weeks agoUse defvar-keymap in which-func.el
Stefan Kangas [Fri, 14 Mar 2025 22:38:42 +0000 (23:38 +0100)]
Use defvar-keymap in which-func.el

* lisp/progmodes/which-func.el (which-func-keymap): Use defvar-keymap.
(which-func-maxout): Change :type to natnum.
(which-func-format): Use substitute-command-keys.

(cherry picked from commit 2009ae85935beb345ce605abe398dbbe6cd84b9b)

2 weeks agoAdd :set attribute to winner-dont-bind-my-keys
Stefan Kangas [Fri, 14 Mar 2025 22:22:11 +0000 (23:22 +0100)]
Add :set attribute to winner-dont-bind-my-keys

* lisp/winner.el (winner--set-dont-bind-my-keys): New function.
(winner-dont-bind-my-keys): Allow setting with setopt.
(winner-mode-map): Use defvar-keymap.
* test/lisp/winner-tests.el: New file.

(cherry picked from commit 33cc5427cbec224d55fac9d76b7c2978fdd5034b)

2 weeks agoUse defvar-keymap for command-history-mode-map
Stefan Kangas [Fri, 14 Mar 2025 22:11:15 +0000 (23:11 +0100)]
Use defvar-keymap for command-history-mode-map

* lisp/chistory.el (command-history-mode-map): Use defvar-keymap.

(cherry picked from commit 6b295347a9f7491ae4c16d942b3b12a54fc2373a)

2 weeks ago; Skip commit c29be6a2ecdf3b3746b5dccbd195dafb08b8b2d7
Eshel Yaron [Sat, 15 Mar 2025 17:11:38 +0000 (18:11 +0100)]
; Skip commit c29be6a2ecdf3b3746b5dccbd195dafb08b8b2d7

2 weeks agodired-copy-filename-as-kill: Support project-relative names
Dmitry Gutov [Sat, 15 Mar 2025 02:26:43 +0000 (04:26 +0200)]
dired-copy-filename-as-kill: Support project-relative names

* lisp/dired.el (dired-copy-filename-as-kill): Support new value
of ARG, to mean file name relative to project root (bug#76792).

* doc/emacs/dired.texi (Misc Dired Features): Mention it.

* etc/NEWS: Same.

(cherry picked from commit af81b3af4ce99c664b040313b548910770bc5854)

2 weeks agoTeach diff-apply-hunk to handle hunks with empty context
Tomas Nordin [Sat, 15 Mar 2025 02:08:47 +0000 (04:08 +0200)]
Teach diff-apply-hunk to handle hunks with empty context

* lisp/vc/diff-mode.el (diff-find-source-location):
Consider the case when there is no diff context above or below
edited lines.  (bug#72556)

* test/lisp/vc/diff-mode-tests.el: Add tests for undoing hunks
from diffs with addtions only in the beginning or end of the
source file.

(cherry picked from commit 4980287e081d3efd29f64973938ca2a0575f521e)

2 weeks ago; Skip commit af5a75a0bdd891686c67648bc0fa09ffb7e3ed0d
Eshel Yaron [Sat, 15 Mar 2025 17:10:38 +0000 (18:10 +0100)]
; Skip commit af5a75a0bdd891686c67648bc0fa09ffb7e3ed0d

2 weeks agoMake turn-on-flyspell/turn-off-flyspell obsolete
Stefan Kangas [Fri, 14 Mar 2025 18:50:22 +0000 (19:50 +0100)]
Make turn-on-flyspell/turn-off-flyspell obsolete

* lisp/textmodes/flyspell.el (turn-on-flyspell): Make into obsolete
function alias for 'flyspell-mode'.
(turn-off-flyspell): Declare obsolete.
(text-mode-hook): Don't redundantly set :options here.
* lisp/textmodes/text-mode.el (text-mode-hook): Prefer 'flyspell-mode'
to 'turn-on-flyspell' in :options.  (Bug#76535)

(cherry picked from commit bad2cd198abbd150cc205aee7879ad718e724dad)

2 weeks agoImprove tramp-*-with-sudo commands
Michael Albinus [Fri, 14 Mar 2025 15:31:51 +0000 (16:31 +0100)]
Improve tramp-*-with-sudo commands

* doc/emacs/dired.texi (Dired Visiting):
Add tramp-dired-find-file-with-sudo.

* doc/emacs/files.texi (Reverting):
Add tramp-revert-buffer-with-sudo.

* doc/misc/tramp.texi (Ad-hoc multi-hops): Extend wrt
`tramp-*-with-sudo' commands.

* etc/NEWS: Add tramp-dired-find-file-with-sudo.
Fix typos.

* lisp/bindings.el (ctl-x-x-map):
* lisp/dired.el (dired-mode-map): Add "@" binding.  (Bug#76974)

* lisp/net/tramp-cmds.el (dired-get-file-for-visit): Declare.
(with-tramp-file-name-with-method): New macro.
(tramp-revert-buffer-with-sudo): Autoload.  Preserve position.
Use `with-tramp-file-name-with-method'.
(tramp-dired-find-file-with-sudo): New command.

(cherry picked from commit 24ffcbb3da9a010cf564bb496af3f5ce0b805f17)

2 weeks ago; Skip commit 21371aa106e6924377e916237d8418bfff2a754c
Eshel Yaron [Sat, 15 Mar 2025 17:07:59 +0000 (18:07 +0100)]
; Skip commit 21371aa106e6924377e916237d8418bfff2a754c

2 weeks ago; * src/w32.h (free_wait_pool): Move prototype from w32.c.
Eli Zaretskii [Fri, 14 Mar 2025 13:05:29 +0000 (15:05 +0200)]
; * src/w32.h (free_wait_pool): Move prototype from w32.c.

(cherry picked from commit c87f0e8a199826f1d05d5c1ff9722577b5fc70de)