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
99b92e64
Commit
99b92e64
authored
Jun 14, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fdelete_frame): If the minibuf window was selected, make that remain so.
parent
851359de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/frame.c
src/frame.c
+8
-0
No files found.
src/frame.c
View file @
99b92e64
...
...
@@ -901,6 +901,7 @@ but if the second optional argument FORCE is non-nil, you may do so.")
Lisp_Object
frame
,
force
;
{
struct
frame
*
f
;
int
minibuffer_selected
;
if
(
EQ
(
frame
,
Qnil
))
{
...
...
@@ -940,6 +941,8 @@ but if the second optional argument FORCE is non-nil, you may do so.")
}
}
minibuffer_selected
=
EQ
(
minibuf_window
,
selected_window
);
/* Don't let the frame remain selected. */
if
(
f
==
selected_frame
)
Fhandle_switch_frame
(
next_frame
(
frame
,
Qt
),
Qnil
);
...
...
@@ -950,6 +953,11 @@ but if the second optional argument FORCE is non-nil, you may do so.")
Fset_window_buffer
(
selected_frame
->
minibuffer_window
,
XWINDOW
(
minibuf_window
)
->
buffer
);
minibuf_window
=
selected_frame
->
minibuffer_window
;
/* If the dying minibuffer window was selected,
select the new one. */
if
(
minibuffer_selected
)
Fselect_window
(
minibuf_window
);
}
/* Clear any X selections for this frame. */
...
...
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