Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a30f0615
Commit
a30f0615
authored
Aug 10, 1994
by
Richard M. Stallman
Browse files
(record_asynch_buffer_change): Do nothing except when waiting_for_user_input_p.
parent
9ab0f979
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/keyboard.c
src/keyboard.c
+10
-0
No files found.
src/keyboard.c
View file @
a30f0615
...
...
@@ -3419,9 +3419,19 @@ gobble_input (expected)
record_asynch_buffer_change
()
{
struct
input_event
event
;
Lisp_Object
tem
;
event
.
kind
=
buffer_switch_event
;
event
.
frame_or_window
=
Qnil
;
/* We don't need a buffer-switch event unless Emacs is waiting for input.
The purpose of the event is to make read_key_sequence look up the
keymaps again. If we aren't in read_key_sequence, we don't need one,
and the event could cause trouble by messing up (input-pending-p). */
tem
=
Fwaiting_for_user_input_p
();
if
(
NILP
(
tem
))
return
;
/* Make sure no interrupt happens while storing the event. */
#ifdef SIGIO
if
(
interrupt_input
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment