Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f5b56972
Commit
f5b56972
authored
Mar 31, 1995
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(event_to_kboard): Ignore dead frames.
(kbd_buffer_get_event): In batch mode, use current_kboard.
parent
39f79001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/keyboard.c
src/keyboard.c
+4
-3
No files found.
src/keyboard.c
View file @
f5b56972
...
...
@@ -2170,8 +2170,9 @@ event_to_kboard (event)
frame
=
WINDOW_FRAME
(
XWINDOW
(
frame
));
/* There are still some events that don't set this field.
For now, just ignore the problem. */
if
(
!
FRAMEP
(
frame
))
For now, just ignore the problem.
Also ignore dead frames here. */
if
(
!
FRAMEP
(
frame
)
||
!
FRAME_LIVE_P
(
XFRAME
(
frame
)))
return
0
;
else
return
FRAME_KBOARD
(
XFRAME
(
frame
));
...
...
@@ -2308,7 +2309,7 @@ kbd_buffer_get_event (KBOARD **kbp)
{
c
=
getchar
();
XSETINT
(
obj
,
c
);
*
kbp
=
all_kboards
;
/* There'd better be exactly one! */
*
kbp
=
current_kboard
;
return
obj
;
}
...
...
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