patches: fix remaining line-length violations and doc string corruption
- Correct three pre-existing DEFVAR_BOOL doc strings (ns-use-native- fullscreen, ns-use-mwheel-acceleration, ns-use-mwheel-momentum) that were accidentally modified by an earlier rebase; restore original text - Break @property line in nsterm.h to 79 chars - Replace em-dash with --- and break 80-char comment line in patch 0004
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From c383dc0e225d831283db7fdfccc22c12951a1077 Mon Sep 17 00:00:00 2001
|
||||
From 09734c4bdb06d7e683e166213ab02406692c3f21 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Sukany <martin@sukany.cz>
|
||||
Date: Sat, 28 Feb 2026 14:46:25 +0100
|
||||
Subject: [PATCH 7/8] ns: announce overlay completion candidates for VoiceOver
|
||||
@@ -22,7 +22,7 @@ race where an AX query consumes the change before notification.
|
||||
2 files changed, 289 insertions(+), 42 deletions(-)
|
||||
|
||||
diff --git a/src/nsterm.h b/src/nsterm.h
|
||||
index 7adbb92..483fed3 100644
|
||||
index 5746e9e..21a93bc 100644
|
||||
--- a/src/nsterm.h
|
||||
+++ b/src/nsterm.h
|
||||
@@ -510,6 +510,7 @@ typedef struct ns_ax_visible_run
|
||||
@@ -34,7 +34,7 @@ index 7adbb92..483fed3 100644
|
||||
@property (nonatomic, assign) BOOL cachedMarkActive;
|
||||
@property (nonatomic, copy) NSString *cachedCompletionAnnouncement;
|
||||
diff --git a/src/nsterm.m b/src/nsterm.m
|
||||
index 7d48e6b..20ba0b9 100644
|
||||
index 426b029..8d44b5f 100644
|
||||
--- a/src/nsterm.m
|
||||
+++ b/src/nsterm.m
|
||||
@@ -7271,11 +7271,154 @@ Accessibility virtual elements (macOS / Cocoa only)
|
||||
@@ -486,7 +486,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
=================================================================== */
|
||||
|
||||
/* Scan visible range of window W for interactive spans.
|
||||
@@ -9563,7 +9809,7 @@ - (void) setAccessibilityFocused: (BOOL) focused
|
||||
@@ -9564,7 +9810,7 @@ - (void) setAccessibilityFocused: (BOOL) focused
|
||||
dispatch_async (dispatch_get_main_queue (), ^{
|
||||
/* lwin is a Lisp_Object captured by value. This is GC-safe
|
||||
because Lisp_Objects are tagged integers/pointers that
|
||||
@@ -495,7 +495,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
Emacs. The WINDOW_LIVE_P check below guards against the
|
||||
window being deleted between capture and execution. */
|
||||
if (!WINDOWP (lwin) || NILP (Fwindow_live_p (lwin)))
|
||||
@@ -9589,7 +9835,7 @@ - (void) setAccessibilityFocused: (BOOL) focused
|
||||
@@ -9590,7 +9836,7 @@ - (void) setAccessibilityFocused: (BOOL) focused
|
||||
|
||||
@end
|
||||
|
||||
@@ -504,7 +504,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
Methods are kept here (same .m file) so they access the ivars
|
||||
declared in the @interface ivar block. */
|
||||
@implementation EmacsAccessibilityBuffer (InteractiveSpans)
|
||||
@@ -12311,7 +12557,7 @@ - (int) fullscreenState
|
||||
@@ -12312,7 +12558,7 @@ - (int) fullscreenState
|
||||
|
||||
if (WINDOW_LEAF_P (w))
|
||||
{
|
||||
@@ -513,7 +513,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
EmacsAccessibilityBuffer *elem
|
||||
= [existing objectForKey:[NSValue valueWithPointer:w]];
|
||||
if (!elem)
|
||||
@@ -12345,7 +12591,7 @@ - (int) fullscreenState
|
||||
@@ -12346,7 +12592,7 @@ - (int) fullscreenState
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -522,7 +522,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
Lisp_Object child = w->contents;
|
||||
while (!NILP (child))
|
||||
{
|
||||
@@ -12457,7 +12703,7 @@ - (void)postAccessibilityUpdates
|
||||
@@ -12458,7 +12704,7 @@ - (void)postAccessibilityUpdates
|
||||
accessibilityUpdating = YES;
|
||||
|
||||
/* Detect window tree change (split, delete, new buffer). Compare
|
||||
@@ -531,7 +531,7 @@ index 7d48e6b..20ba0b9 100644
|
||||
Lisp_Object curRoot = FRAME_ROOT_WINDOW (emacsframe);
|
||||
if (!EQ (curRoot, lastRootWindow))
|
||||
{
|
||||
@@ -12466,12 +12712,12 @@ - (void)postAccessibilityUpdates
|
||||
@@ -12467,12 +12713,12 @@ - (void)postAccessibilityUpdates
|
||||
}
|
||||
|
||||
/* If tree is stale, rebuild FIRST so we don't iterate freed
|
||||
|
||||
Reference in New Issue
Block a user