From 3e5fe814b8fa9aa543ab0f9068d459921106c68e Mon Sep 17 00:00:00 2001 From: Daneel Date: Sat, 28 Feb 2026 16:19:08 +0100 Subject: [PATCH] patches: 0008 fix specpdl_ref type (not ptrdiff_t) --- ...nounce-child-frame-completion-candidates-for-Vo.patch | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch index 215a042..37ae1db 100644 --- a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch +++ b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch @@ -1,4 +1,4 @@ -From e685c5e8e9c7355ee8c36fa2d567bbdb3b4af5fe Mon Sep 17 00:00:00 2001 +From e11d0688f119046827cd1895008d3a93e22f6d0d Mon Sep 17 00:00:00 2001 From: Martin Sukany Date: Sat, 28 Feb 2026 16:01:29 +0100 Subject: [PATCH 2/2] ns: announce child frame completion candidates for @@ -37,9 +37,6 @@ for minibuffer overlay completion) because the child frame renders independently --- its ns_update_end runs after the parent frame's draw_window_cursor, so the last Zoom call wins. -Deduplication uses a C string cache (xstrdup/xfree) to avoid ObjC -memory management complexity in static storage. - * src/nsterm.h (EmacsView): Add announceChildFrameCompletion. * src/nsterm.m (ns_ax_selected_child_frame_text): New function. (EmacsView announceChildFrameCompletion): New method. @@ -63,7 +60,7 @@ index 5c15639..21b2823 100644 @end diff --git a/src/nsterm.m b/src/nsterm.m -index d13c5c7..9432c9b 100644 +index d13c5c7..092bc11 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7066,6 +7066,110 @@ ns_ax_selected_overlay_text (struct buffer *b, @@ -92,7 +89,7 @@ index d13c5c7..9432c9b 100644 + /* Temporarily switch to the child frame buffer. + Fbuffer_substring_no_properties operates on current_buffer, + which may be a different buffer (e.g., the parent frame's). */ -+ ptrdiff_t count = SPECPDL_INDEX (); ++ specpdl_ref count = SPECPDL_INDEX (); + record_unwind_current_buffer (); + set_buffer_internal_1 (b); +