]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress unneded events in special-event-map
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 7 Feb 2025 14:14:47 +0000 (15:14 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:43:45 +0000 (09:43 +0100)
* 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

index 55793f42c1f9c49f510c0221c0a464d07461faa8..fef8cfda156fadcc6e4b2dfe7ddbba0728d3e772 100644 (file)
@@ -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.