181895 Commits

Author SHA1 Message Date
Stefan Monnier
36354c8ab4 Don't load package just for lm-package-needs-footer-line
* lisp/emacs-lisp/lisp-mnt.el (lm-package-requires):
Don't require `package`.
2026-04-07 15:37:35 -04:00
Stefan Monnier
0b30f7aa9d lisp/progmodes/project.el (generator): Don't require at run-time 2026-04-07 14:34:59 -04:00
Stephen Gildea
5d9b6c8262 ; time-stamp: rename some internal functions to include "--"
* lisp/time-stamp.el (time-stamp--zformat-from-parsed-options)
(time-stamp--string-internal) (time-stamp--do-letter-case)
(time-stamp--do-number) (time-stamp--filtered-buffer-file-name)
(time-stamp--conv-warn) (time-stamp--once-internal): New names.
* test/lisp/time-stamp-tests.el (define-formatz-tests)
(formatz-find-test-def-function):
Give generated test names "time-stamp-" prefix.
2026-04-07 09:28:32 -07:00
Michael Albinus
f5a2357a89 Tweak remote-file-name-inhibit-cache in Tramp
* lisp/net/tramp-cache.el
(tramp-suppress-remote-file-name-inhibit-cache): New defsubst.

* lisp/net/tramp.el (tramp-skeleton-file-name-all-completions):
* lisp/net/tramp-sh.el (tramp-get-remote-path): Use it.
2026-04-07 13:19:04 +02:00
Eli Zaretskii
bc59d16cd8 ; Update description of 'defcustom' in Emacs Lisp Intro manual
* doc/lispintro/emacs-lisp-intro.texi (defcustom): Update text
(bug#80751).
2026-04-07 10:50:05 +03:00
Eli Zaretskii
8e1399dbda ; * doc/lispref/os.texi (Timers): Mention primitives that wait (bug#80755). 2026-04-07 09:59:53 +03:00
Sean Whitton
7ce60be53e vc-hg-working-revision: Return changeset hashes
* lisp/vc/vc-hg.el (vc-hg-working-revision): Return changeset
hashes instead of revision numbers.  Respect
vc-use-short-revision.
* etc/NEWS: Document the change.
2026-04-06 13:02:06 +01:00
Diep Pham
8205f39b6c Eglot: improve safety spec of eglot-workspace-configuration
* lisp/progmodes/eglot.el (eglot-workspace-configuration): Improve
safety spec.

Copyright-paperwork-exempt: Yes
2026-04-06 12:54:39 +01:00
Sean Whitton
7679855281 ; * lisp/vc/vc.el (checkin): Specify the async case (bug#80723). 2026-04-06 12:26:08 +01:00
Sean Whitton
02ad0183f2 ; * lisp/vc/vc.el (dir-status-files): Clarifications (bug#80722). 2026-04-06 12:16:56 +01:00
Michael Albinus
5003f5e6e4 * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. 2026-04-06 10:57:35 +02:00
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