]> git.eshelyaron.com Git - emacs.git/commitdiff
Extend handled events in 'while-no-input-ignore-events' (Bug#47205)
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Mar 2021 11:43:35 +0000 (12:43 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Mar 2021 11:43:35 +0000 (12:43 +0100)
* etc/NEWS: Mention changes to 'while-no-input-ignore-events'.

* src/keyboard.c (kbd_buffer_store_buffered_event): Handle also
Qfile_notify and Qdbus_event as ignore_event.  (Bug#47205)

etc/NEWS
src/keyboard.c

index 20407db0acda8ffe9a1ecf85c424eb41e94b0be2..d5cfed46fb8189a430d8f4f0f3e79e07cf84daa1 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -532,7 +532,7 @@ It can be used to enable/disable the tab bar individually on each frame
 independently from the value of 'tab-bar-mode' and 'tab-bar-show'.
 
 ---
-*** New option 'tab-bar-format' defines a list of tab bar items.
+*** New user option 'tab-bar-format' defines a list of tab bar items.
 When it contains 'tab-bar-format-global' (possibly appended after
 'tab-bar-format-align-right'), then after enabling 'display-time-mode'
 (or any other mode that uses 'global-mode-string') it displays time
@@ -558,7 +558,8 @@ It also supports a negative argument.
 ---
 *** 'C-x t G' assigns a group name to the tab.
 'tab-close-group' can close all tabs that belong to the selected group.
-The option 'tab-bar-new-tab-group' defines the default group of a new tab.
+The user option 'tab-bar-new-tab-group' defines the default group of a
+new tab.
 
 ---
 *** New user option 'tab-bar-tab-name-format-function'.
@@ -2257,8 +2258,8 @@ first).
 ** The 'M-o M-s' and 'M-o M-S' global bindings have been removed.
 Use 'M-x center-line' and 'M-x center-paragraph' instead.
 
-** The 'M-o M-o' global binding have been removed.
-Use 'M-x font-lock-fontify-block' instead, or the new `C-x x f'
+** The 'M-o M-o' global binding has been removed.
+Use 'M-x font-lock-fontify-block' instead, or the new 'C-x x f'
 command, which toggles fontification in the current buffer.
 
 ** In 'f90-mode', the backslash character ('\') no longer escapes.
@@ -2825,6 +2826,11 @@ semantics of RFC 8259 instead of the earlier RFC 4627.  In particular,
 these functions now accept top-level JSON values that are neither
 arrays nor objects.
 
+---
+** 'while-no-input-ignore-events' accepts more special events.
+The special events 'dbus-event' and 'file-notify' are now ignored in
+'while-no-input' when added to this variable.
+
 \f
 * Changes in Emacs 28.1 on Non-Free Operating Systems
 
index 512fa279b38fc816c6b0a8636461763d1bccccb3..266ebaa5fdf0ba65c43a4bae1f2907ed47f2975e 100644 (file)
@@ -3614,6 +3614,12 @@ kbd_buffer_store_buffered_event (union buffered_input_event *event,
     case ICONIFY_EVENT: ignore_event = Qiconify_frame; break;
     case DEICONIFY_EVENT: ignore_event = Qmake_frame_visible; break;
     case SELECTION_REQUEST_EVENT: ignore_event = Qselection_request; break;
+#ifdef USE_FILE_NOTIFY
+    case FILE_NOTIFY_EVENT: ignore_event = Qfile_notify; break;
+#endif
+#ifdef HAVE_DBUS
+    case DBUS_EVENT: ignore_event = Qdbus_event; break;
+#endif
     default: ignore_event = Qnil; break;
     }