Commit Graph

181874 Commits

Author SHA1 Message Date
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
João Távora
b93591551e Eglot: release version 1.22
* lisp/progmodes/eglot.el (Version): Bump to 1.22.
(Package-Requires): Bump eldoc to 1.16.0, flymake to 1.4.5,
jsonrpc to 1.0.27, xref to 1.7.0.

* etc/EGLOT-NEWS: Announce new version.
2026-04-01 22:37:01 +01:00
João Távora
985a674cee Eglot: revert part of last change
* lisp/progmodes/eglot.el (eglot--sig-info): Go back to adding
1, so it's clear that parlabel's are off-by-one.
2026-04-01 20:45:21 +01:00
Michael Albinus
56df32fefa Fix last change 2026-04-01 16:48:09 +02:00
Michael Albinus
b90153d18c Make epa-file-insert-file-contents more secure
* lisp/epa-file.el (epa-file-insert-file-contents):
Use `make-temp-file' instead of `make-temp-name'.
2026-04-01 16:23:27 +02:00
Sean Whitton
4baa427ee4 ; * doc/emacs/custom.texi (Newcomers Theme): Strengthen language. 2026-04-01 10:02:23 +01:00
Sean Whitton
1f23eab568 newcomers-presets: Set two more variables
* etc/themes/newcomers-presets-theme.el (newcomers-presets): Set
column-number-mode and compilation-scroll-output.  Suggested by
Abdulnafé Toulaïmat <abdulnafe.toulaimat@gmail.com>.
2026-04-01 09:51:18 +01:00
Tassilo Horn
ded80d0d49 Fix text visibility issue with show-paren--show-context-in-overlay
* lisp/paren.el (show-paren--show-context-in-overlay): Fix issue where
the overlay's text was hardly visible in certain cases (bug#59527).
2026-04-01 06:28:51 +02:00
Dmitry Gutov
1e807c5376 xref-edit--prepare-buffer: Fix text insertion behavior around prefix
* lisp/progmodes/xref.el (xref-edit--prepare-buffer): Fix text
insertion behavior before and after the line-number prefix.
2026-04-01 04:33:37 +03:00
Dmitry Gutov
f55df442d3 xref-edit-mode: Compute 'occur-target' markers lazily
* lisp/progmodes/xref.el (xref-edit--before-change-function):
New function (bug#80616).
(xref-change-to-xref-edit-mode, xref-edit-save-changes):
Use it in before-change-functions hook.
(xref-edit--prepare-buffer): Don't add 'occur-target' here.
2026-04-01 04:04:54 +03:00
Dmitry Gutov
aacf510fe5 Change "XREF" to "Xref" in mode lighter
* lisp/progmodes/xref.el (xref--xref-buffer-mode)
(xref--transient-buffer-mode, xref-edit-save-changes):
Change "XREF" to "Xref" for internal consistency.

* doc/emacs/maintaining.texi (Xref Commands):
Same.
2026-04-01 04:04:54 +03:00