ns: implement buffer accessibility element

Implement EmacsAccessibilityBuffer, a virtual NSAccessibility text
element (AXTextArea role) that exposes buffer contents to VoiceOver.

* src/nsterm.m (ns_ax_free_runs_indirect): New unwind helper.
(ns_ax_buffer_text): New static function; builds visible text and
run array for accessibility clients.
(ns_ax_frame_for_range): New static function; maps char ranges to
screen rects.
(ns_ax_post_notification_with_info): New static inline; async AX
notification posting.
(EmacsAccessibilityBuffer): Full NSAccessibility text protocol
implementation including insertion point, selection, cursor
position, styled ranges, and frame-for-range.
This commit is contained in:
2026-03-15 16:15:42 +01:00
committed by Martin Sukany
parent 6882b9a643
commit 623b974e56

File diff suppressed because it is too large Load Diff