1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-10 08:11:53 -07:00
Commit graph

190202 commits

Author SHA1 Message Date
Helmut Eller
6eec001187 Merge branch 'master' into feature/igc3 2026-04-04 20:59:46 +02:00
Pip Cet
e4ea27119e ; * src/image.c: Include gc-handles.h to fix the build. 2026-04-04 16:47:26 +00: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
Helmut Eller
a9022196f9 Use a gc-handle in struct anim_cache
This seems simpler than the solution with exact roots.

* src/image.c (struct anim_cache): The spec field is now a gc-handle.
(anim_create_cache): Create a gc-handle.
(anim_cache_free, anim_cache_spec): New helpers.
(anim_prune_animation_cache, anim_get_animation_cache): Adjust to
gc-handle.
(mark_image_cache): Delete code for anim_cache.
2026-04-04 14:36:42 +02:00
Helmut Eller
acf1e5cbe9 Revert "Trace anim_cache"
This reverts commit 32937a98d3.
2026-04-04 14:09:58 +02:00
Helmut Eller
2057ce2daa Revert "Fix previous commit"
This reverts commit 68610b58ec.
2026-04-04 14:09:53 +02: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
Helmut Eller
e0bfa2064f * src/igc.c (fix_glyph_pool): Use fix_glyph_array. 2026-04-03 18:35:03 +02:00
Helmut Eller
bf078ca797 Avoid remote references in fix_frame by making glyph_pools roots
* src/igc.h (igc_alloc_glyph_pool): New prototype.
* src/igc.c (igc_alloc_glyph_pool, scan_glyph_pool): New.
(fix_frame): Don't trace the glyph_pools.
(fix_glyph_matrix): Should only be used for matrices with their own
glyphs.
* src/dispnew.c (new_glyph_matrix, free_glyph_matrix): Only create roots
for matrices without pool.
(new_glyph_pool, free_glyph_pool): Create and destroy roots for glyph
pools.
2026-04-03 18:14:15 +02:00
Helmut Eller
786dfd08d9 Revert "Minor reorganization"
This reverts commit fb2474a329.
2026-04-03 17:16:48 +02:00
Helmut Eller
fb2474a329 Minor reorganization
* src/igc.c (igc_grow_rdstack, grow_pp_stack): Move near
igc_grow_rdstack.
2026-04-03 17:03:29 +02:00
Helmut Eller
711ee6a711 * src/igc.c (igc_xnrealloc_ambig): Deleted because it was unused. 2026-04-03 17:02:08 +02: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
Helmut Eller
ed547735ec Move the print stack tracing code from print.c to igc.c
* src/lisp.h (enum print_entry_type, struct print_stack_entry)
(struct print_stack, struct print_pp_entry, struct print_pp_stack): Type
definitions moved here so that we can use them in igc.
(prstack, ppstack): Declare extern.
* src/igc.h (igc_grow_print_stack, igc_grow_pp_stack): New prototypes.
(igc_scan_result_t, struct igc_ss, igc_scan_area_t, igc_fix12_obj):
Deleted.
* src/igc.c (scan_prstack, scan_ppstack): Moved here from print.c and
rewritten with the usual IGC_FIX12_OBJ.
(igc_grow_print_stack, igc_grow_pp_stack): New functions.
(igc_xpalloc_exact, igc_xnrealloc_ambig): Make static.
(igc_fix12_obj): Deleted.
* src/print.c (ppstack, prstack): Make extern.
(grow_pp_stack): Use igc_grow_pp_stack.
(grow_print_stack): Use igc_grow_print_stack.
2026-04-03 09:31:10 +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
Helmut Eller
60cfc56008 Revert "[MPS] Allocate shelved bidi caches ambiguously"
This reverts commit 3b01c2ca8e.

The bidi_cache is not supposed to contain GC-able references.
2026-04-03 08:40:38 +02: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
Helmut Eller
0eefa62ffa Revert "[MPS] Allocate bidi_cache ambiguously"
This reverts commit 03284f3e4a.

The bidi_cache should not contain any GC relevant references.
2026-04-02 18:23:08 +02:00
Eli Zaretskii
54a65af226 * src/xdisp.c (pop_it) [HAVE_MPS]: Copy the string and window to bidi_it. 2026-04-02 17:33:49 +03:00
Eli Zaretskii
377e3f441f ; * doc/emacs/custom.texi (Examining): Fix last change. 2026-04-02 17:26:14 +03:00
Helmut Eller
68610b58ec Fix previous commit
* src/igc.c (scan_anim_cache): An indirecton was missing.  Noted by Pip
Cet.
2026-04-02 15:25:08 +02:00
Eli Zaretskii
4ad9cd74c6 ; * doc/emacs/custom.texi (Examining): Fix indexing and example. 2026-04-02 15:11:28 +03:00
Helmut Eller
32937a98d3 Trace anim_cache
* src/dispextern.h (struct anim_cache, struct git_anim_handle)
(struct webp_anim_handle): Anim cache related type definitions
definitions moved here from image.c.
(anim_cache): Declare external so that we can trace it in igc.c.
* src/image.c (anim_cache): Is now external.
* src/igc.c (scan_anim_cache): New helper.
(root_create_anim_cache): New.
(make_igc): Call it.
2026-04-02 13:39:23 +02: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
Helmut Eller
a57858513c Try to optimize glyph tracing a bit
* src/igc.c (fix_glyph_array): New function.
(fix_glyph_matrix): Use it.
2026-04-02 09:46:48 +02:00
Helmut Eller
32d8aefb56 Avoid remote references in fix_window by making glyph_matrixes roots
* src/igc.h (igc_alloc_glyph_matrix): New prototype.
* src/igc.c (igc_alloc_glyph_matrix, scan_glyph_matrix): New functions.
(fix_window): Don't trace the glyph_matrixes.
* src/dispnew.c (new_glyph_matrix): Allocate the matrix as root.
(free_glyph_matrix): Free the root.
2026-04-02 08:29:34 +02: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