[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ce1b4ac: Extend handled events in 'while-no-input-ignore-events'
From: |
Michael Albinus |
Subject: |
master ce1b4ac: Extend handled events in 'while-no-input-ignore-events' (Bug#47205) |
Date: |
Thu, 18 Mar 2021 07:43:44 -0400 (EDT) |
branch: master
commit ce1b4acd71e962b6a72a779ee04cb5aeb6ceb6f2
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Extend handled events in 'while-no-input-ignore-events' (Bug#47205)
* 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 | 14 ++++++++++----
src/keyboard.c | 6 ++++++
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index 20407db..d5cfed4 100644
--- 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.
+
* Changes in Emacs 28.1 on Non-Free Operating Systems
diff --git a/src/keyboard.c b/src/keyboard.c
index 512fa27..266ebaa 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master ce1b4ac: Extend handled events in 'while-no-input-ignore-events' (Bug#47205),
Michael Albinus <=