From ee64f0816fe12e59043de039a0cf493b625fcc46 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 7 Feb 2025 15:14:47 +0100 Subject: [PATCH] Suppress unneded events in special-event-map * src/keyboard.c (keys_of_keyboard): Don't add ns-put-working-text and ns-unput-working-text to Vspecial_event_map unless on NS port. (cherry picked from commit 0065c9dbb8fb7d2b802e8f9a327f33049afec4ad) --- src/keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 55793f42c1f..fef8cfda156 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -14002,10 +14002,12 @@ keys_of_keyboard (void) initial_define_lispy_key (Vspecial_event_map, "end-session", "kill-emacs"); #endif +#ifdef HAVE_NS initial_define_lispy_key (Vspecial_event_map, "ns-put-working-text", "ns-put-working-text"); initial_define_lispy_key (Vspecial_event_map, "ns-unput-working-text", "ns-unput-working-text"); +#endif /* Here we used to use `ignore-event' which would simple set prefix-arg to current-prefix-arg, as is done in `handle-switch-frame'. But `handle-switch-frame is not run from the special-map. -- 2.39.5