Commit Graph

181884 Commits

Author SHA1 Message Date
Michael Albinus
4a297f4398 Keep cache in tramp-skeleton-file-name-all-completions
* lisp/net/tramp.el (tramp-skeleton-file-name-all-completions):
Don't expire cache for large directories.
2026-04-06 10:19:16 +02:00
Joseph Mingrone
358a7ba0f6 lisp/net/tramp.el: Fix performance regression with completions
* lisp/net/tramp.el (tramp-skeleton-file-name-all-completions):
Use `file-directory-p' directly instead of calling `file-symlink-p'
and file-truename first.  Since `file-directory-p' already follows
symlinks, symlinked directories are handled correctly without the
extra indirection.
2026-04-06 10:08:43 +02:00
Eli Zaretskii
5bd8f3a44a ; Improve documentation of 'window-prev-buffers'
* doc/lispref/windows.texi (Window History): Document that
'window-prev-buffers' returns positions as markers.  (Bug#80754)
2026-04-06 09:05:19 +03:00
Philip Kaludercic
9425610ac3 Disable 'package-review-policy' during package-tests
* test/lisp/emacs-lisp/package-tests.el (with-package-test):
Disable package reviewing during testing to not require manual
user input during tests.
2026-04-05 18:29:12 +02:00
Philip Kaludercic
5589d44ce6 ; Use 'ensure-proper-list' to get uniform maintainer lists
* lisp/emacs-lisp/package.el (describe-package-1)
(package-maintainers): Remove manual checks that :maintainer is
not just a cons-cell.
2026-04-05 18:29:12 +02:00
Philip Kaludercic
4473f76261 Mention package version in 'package-autoremove' prompt
* lisp/emacs-lisp/package.el (package--removable-packages):
Return package descriptors instead of names.
(package-autoremove): Adapt code to handle package descriptors
instead of names.
2026-04-05 18:29:12 +02:00
Philip Kaludercic
418319c155 ; Use lookup table for package menu faces
* lisp/emacs-lisp/package.el (package-menu-status-faces): Add
new constant.
(package-menu--print-info-simple): Replace 'pcase' form with
'alist-get', which is my measurements is slightly faster.
2026-04-05 18:29:12 +02:00
Sean Whitton
bd4b876e9b Fix vc-default-checkin-patch for vc-async-checkin non-nil
* lisp/vc/vc.el (vc-default-checkin-patch): Fix for
vc-async-checkin non-nil (bug#80746).
2026-04-05 16:24:52 +01:00
Sean Whitton
3289886f84 * lisp/vc/vc-dir.el (vc-dir-update): Remove empty directory entries. 2026-04-05 15:51:31 +01:00
Sean Whitton
d604445954 New option vc-dir-auto-hide-up-to-date
* lisp/vc/vc-dir.el (vc-dir-hide-up-to-date-on-revert): Delete.
(vc-dir-auto-hide-up-to-date): New option.
(vc-dir-update, vc-dir-revert-buffer-function): Use it.
* etc/NEWS: Document it.
2026-04-05 15:50:46 +01:00
Sean Whitton
af69eb2f27 VC-Dir next action: Offer to hide up-to-date items
* lisp/vc/vc-dir.el (vc-dir--up-to-date-states): New constant.
(vc-dir-hide-state): Use it.
(vc-dir--only-files-state-and-model): New function.
(vc-dir-root-next-action, vc-dir-deduce-fileset): Use it.
* lisp/vc/vc.el (vc-only-files-state-and-model): Improve error
message readability.
2026-04-05 14:58:55 +01:00
Sean Whitton
859e0622ae * lisp/vc/diff-mode.el (diff-mode-read-only-map): Bind 'v'. 2026-04-05 13:50:35 +01:00
Eli Zaretskii
c3fda2e34b Fix display in window margins when text-area text is reordered
* src/xdisp.c (handle_stop_backwards): Don't overwrite
'stop_charpos' if we end up on a different stack level of the
iterator.  (Bug#80693)
2026-04-05 12:34:12 +03:00
Eli Zaretskii
91b08717d4 ; * src/sound.c (Fw32_sound_volume): Shut up GCC warning. 2026-04-05 09:54:56 +03:00
Eli Zaretskii
93f40d1bb7 ; Fix recently-added treesit test
* test/src/treesit-tests.el (treesit-query-node-only-and-grouped):
Remove unused variables.
2026-04-05 09:52:56 +03:00
Eli Zaretskii
670bb34d91 ; Fix last change. 2026-04-05 09:13:40 +03:00
Eli Zaretskii
d4002877d3 ; Fix node names in modus-themes.org 2026-04-05 09:09:21 +03:00
Yuan Fu
45d7678ca3 Fix treesit-query-capture's NODE-ONLY param
Before the fix, if user uses the NODE-ONLY option, we don't keep
the capture names in the results, then predicates won't work
because they can't reference capture names.

* src/treesit.c (query_capture_remove_capture_name): New
function.
(Ftreesit_query_capture): Use the new function to remove capture
names AFTER running the predicate.
* test/src/treesit-tests.el:
(treesit-query-node-only-and-grouped): New test.
2026-04-04 22:35:35 -07:00
Kyle Meyer
ae1ac739b7 * etc/NEWS: Announce Org update. 2026-04-05 00:36:31 -04:00
Kyle Meyer
6c22780955 Update to Org 9.8.1 2026-04-05 00:36:31 -04:00
Eli Zaretskii
0a62e6c304 ; Fix documentation of last change
* lisp/emacs-lisp/package.el (package--compatible-packages): Doc
fix.

* etc/NEWS: Improve and expand wording in the new entry.
(Bug#80695)
2026-04-05 07:33:14 +03:00
Philip Kaludercic
0bfdb068f2 List recursive dependencies in the package description
* lisp/emacs-lisp/package.el (describe-package-1): List and
indicate if a package will require a recursive dependency.
2026-04-04 23:07:20 +02:00
Philip Kaludercic
6a15c02a59 Recursively check dependencies for package compatibility
* lisp/emacs-lisp/package.el (package--compatible-packages): Add
new function.
(package-install): Use new function to restrict suggestions to
not include incompatible packages.
(package--incompatible-p): Check all dependencies to determine
package compatibility.
* etc/NEWS: Mention change.  (Bug#80695)
2026-04-04 23:07:20 +02:00
Philip Kaludercic
4e65e05ea4 Adjust return format of 'package--dependencies'
* lisp/emacs-lisp/package.el (package--dependencies): Return
required dependency version along with every dependency.
(package-menu--list-to-prompt): Discard required versions.
2026-04-04 23:07:20 +02:00
Eli Zaretskii
01a9d78a7e Fix use of special glyphs with faces from display-table
* src/xdisp.c (produce_special_glyphs): Fix the case where the
display-table specifies a face for truncation/continuation glyphs.
(Bug#80693)
2026-04-04 18:22:05 +03:00
Jens Lechtenbörger
524e8b007c Avoid line breaks in IMAP AUTHENTICATE PLAIN
* lisp/net/imap.el (imap-plain-auth): Avoid line breaks in
AUTHENTICATE PLAIN command (bug#80687).
2026-04-04 14:04:25 +01:00
Arash Esbati
b049078aef ; Fix quotation of some symbols
* lisp/outline.el (outline-minor-mode-use-buttons)
(outline-minor-mode-highlight): Fix quotation of some symbols (bug#80672).
2026-04-04 13:44:08 +01:00
Michael Albinus
070d11ad0d * lisp/net/tramp.el (tramp-expand-args): Handle ARGS being nil. 2026-04-04 10:27:30 +02:00
Eli Zaretskii
6e7b254715 ; * lisp/international/emoji.el (emoji-list): Doc fix (bug#80733). 2026-04-04 10:34:07 +03:00
Eli Zaretskii
e7751405d0 ; Improve documentation of 'make-temp-file'
* doc/lispref/files.texi (Unique File Names):
* lisp/files.el (make-temp-file):
* src/fileio.c (Fmake_temp_file_internal): Doc fixes.
2026-04-04 09:56:32 +03:00
Eli Zaretskii
a5d6b90999 ; Fix 2 defcustoms in printing.el
* lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist):
Fix doc strings and :type.  (Bug#80737)
2026-04-03 15:44:38 +03:00
Stéphane Marks
52205e38d3 Inform macOS Accessibility Zoom of cursor position (bug#80624)
Enable cursor focus tracking for visually-impaired users that
rely on macOS Zoom screen magnification.

* src/nsterm.m: Import ApplicationServices.h.
(ns_ua_zoom_enabled_p, ns_cg_rect_flip_y, ns_UAZoomChangeFocus):
New static function.  Advise UAZoomChangeFocus of potentially
new cursor position.
(ns_update_end): Call ns_UAZoomChangeFocus.
(ns_draw_window_cursor): Cache the cursor position.
(applicationDidFinishLaunching): NSLog Accessibility API
permissions AXIsProcessTrusted.
(windowDidBecomeKey): Schedule a call to ns_UAZoomChangeFocus.
(deferred_UAZoomChangeFocus_handler): New view method to call
ns_UAZoomChangeFocus.
(accessibilityFrame): New view method to help UAZoomChangeFocus.
(initFrameFromEmacs): Initialize ns_UAZoom_cursor_rect_new and
ns_UAZoom_cursor_rect_old.
* etc/NEWS: Announce the change.
2026-04-03 12:22:14 +01:00
Eli Zaretskii
e0ca1d8822 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2026-04-03 14:19:53 +03:00
Eli Zaretskii
e19dd2d848 ; * lisp/treesit.el (treesit--font-lock-level-setter): Fix whitespace. 2026-04-03 13:57:26 +03:00
Stéphane Marks
e9a51f0819 ; Fix cus-edit setopt test
* test/lisp/cus-edit-tests.el (test-setopt): Change
'test-setopt' message text.
2026-04-03 12:44:54 +02:00
Stéphane Marks
86efaec00e Support setopt-local in treesit--font-lock-level-setter (bug#80731)
* lisp/treesit.el (treesit--font-lock-level-setter): Add
buffer-local behavior as invoked by 'setopt-local'.
2026-04-02 23:51:58 -07:00
Yuan Fu
5fdeb3c881 Filter out some range settings in markdown-ts-mode
* lisp/textmodes/markdown-ts-mode.el:
(markdown-ts--add-config-for-mode): Filter out functional queries.
2026-04-02 23:36:01 -07:00
Dmitry Gutov
9d5a24cfac grep-edit--prepare-buffer: Fix allowed insertion positions
* lisp/progmodes/grep.el (grep-edit--prepare-buffer): Fix allowed
insertion positions, like previously in xref-edit--prepare-buffer.
2026-04-03 04:38:59 +03:00
Dmitry Gutov
956e77f9dd pgtk_set_window_size: Clear out unused code
* src/pgtkterm.c (pgtk_set_window_size): Remove unused code.
Rename the last two parameters to pixelwidth and pixelheight so
they can be used directly (bug#80698).  And remove the
xg_wm_set_size_hint call because it's called indirectly through
xg_frame_set_char_size already.
Update the commentary above.
2026-04-03 04:33:14 +03:00
Dmitry Gutov
02c95dd92c xref-edit--prepare-buffer: Prohibit insertion before group headers too
* lisp/progmodes/xref.el (xref-edit--prepare-buffer): Do the
previous change for group headers as well (no insertion in front).
2026-04-03 04:33:14 +03:00
Stefan Monnier
99f2e353e7 lisp/help.el (help-function-arglist): Fix last change 2026-04-02 15:53:40 -04:00
Stefan Monnier
e6d97dfbe1 lisp/help.el (help-function-arglist): Handle advised aliases (bug#80725) 2026-04-02 15:50:59 -04:00
Stéphane Marks
faf1932875 New macro setopt-local and function set-local (bug#80709)
'setopt-local' is the buffer local equivalent of 'setopt'.

Unify 'setopt', 'setopt-local', 'setq-local',
'buffer-local-set-state' with 'setq' to signal
'wrong-number-of-arguments'.

* lisp/cus-edit.el (setopt): Change error signal to
'wrong-number-of-arguments'.
(setopt-local): New macro.
(setopt--set-local): New function.
* lisp/subr.el (set-local): New function.
(setq-local, buffer-local-set-state): Signal
'wrong-number-of-arguments' rather than 'error'.
* doc/emacs/custom.texi (Examining): Document 'setopt-local'.
* etc/NEWS: Announce the new macro and function.
2026-04-02 13:47:36 -04:00
Roi Martin
5032b2167d Assume wide chars may span any number of columns during semlf filling
* lisp/textmodes/fill.el (fill-region-as-paragraph-semlf): Use
`most-positive-fixnum' as the fill-column value during the unfill phase.
2026-04-02 13:43:30 -04:00
João Távora
dc7c36ea12 Eglot: release version 1.23
* lisp/progmodes/eglot.el (Version): Bump to 1.23.

* etc/EGLOT-NEWS: Announce new version.
2026-04-02 18:32:42 +01:00
João Távora
f0fcc87a34 Jsonrpc: release version 1.0.28
(Version): Bump to 1.0.28.
2026-04-02 18:31:09 +01:00
Eli Zaretskii
377e3f441f ; * doc/emacs/custom.texi (Examining): Fix last change. 2026-04-02 17:26:14 +03:00
Eli Zaretskii
4ad9cd74c6 ; * doc/emacs/custom.texi (Examining): Fix indexing and example. 2026-04-02 15:11:28 +03:00
João Távora
cdf3f81141 Eglot: unbreak eglot-report-progress when set to 'messages' (bug#80653)
* lisp/progmodes/eglot.el (eglot-mode-line-progress): Fix cl-loop thinko.
2026-04-02 11:55:22 +01:00
Manuel Giraud
220ec44341 ; * src/charset.c (Ffind_charset_string): Fix a typo (bug#80707). 2026-04-02 13:12:53 +03:00