From d29a33fcfb18858b30f0190f9b791e416d4b0b9e Mon Sep 17 00:00:00 2001 From: Daneel Date: Fri, 27 Feb 2026 15:21:47 +0100 Subject: [PATCH] fix: add missing 'static BOOL' return type to ns_ax_find_completion_overlay_range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function definition lacked a return type, causing: nsterm.m:7149:1: error: a type specifier is required for all declarations Added 'static BOOL' — the function returns YES/NO and is file-scoped. Updated patch line counts in header and README accordingly. --- ...s-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch | 5 +++-- patches/README.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch b/patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch index c741efa..57b3eef 100644 --- a/patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch +++ b/patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch @@ -85,8 +85,8 @@ Lisp calls, read only immutable NSString and scalar cache). --- etc/NEWS | 11 + src/nsterm.h | 108 ++ - src/nsterm.m | 2869 +++++++++++++++++++++++++++++++++++++++++++++++--- - 3 files changed, 2840 insertions(+), 148 deletions(-) + src/nsterm.m | 2870 +++++++++++++++++++++++++++++++++++++++++++++++--- + 3 files changed, 2841 insertions(+), 148 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 7367e3cc..0e4480ad 100644 @@ -640,6 +640,7 @@ index 932d209f..ea2de6f2 100644 + ns_ax_text_selection_granularity_line = 3, +}; + ++static BOOL +ns_ax_find_completion_overlay_range (struct buffer *b, ptrdiff_t point, + ptrdiff_t *out_start, + ptrdiff_t *out_end) diff --git a/patches/README.txt b/patches/README.txt index 5c8a137..5c7b5d2 100644 --- a/patches/README.txt +++ b/patches/README.txt @@ -3,7 +3,7 @@ EMACS NS VOICEOVER ACCESSIBILITY PATCH patch: 0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch author: Martin Sukany files: src/nsterm.h (+108 lines) - src/nsterm.m (+2560 ins, -140 del, +2420 net) + src/nsterm.m (+2561 ins, -140 del, +2421 net) OVERVIEW