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
fa832261
Commit
fa832261
authored
Mar 01, 2002
by
Kim F. Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fminibuffer_selected_window): New function.
(syms_of_window): Defsubr it.
parent
ee57fd91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/window.c
src/window.c
+15
-0
No files found.
src/window.c
View file @
fa832261
...
...
@@ -4549,6 +4549,20 @@ by this function. */)
return
result
;
}
DEFUN
(
"minibuffer-selected-window"
,
Fminibuffer_selected_window
,
Sminibuffer_selected_window
,
0
,
0
,
0
,
doc
:
/* Return the window which was selected when entering the minibuffer.
Returns nil, if current window is not a minibuffer window. */
)
()
{
if
(
minibuf_level
>
0
&&
MINI_WINDOW_P
(
XWINDOW
(
selected_window
))
&&
!
NILP
(
minibuf_selected_window
)
&&
WINDOW_LIVE_P
(
minibuf_selected_window
))
return
minibuf_selected_window
;
return
Qnil
;
}
/* Value is the number of lines actually displayed in window W,
as opposed to its height. */
...
...
@@ -6012,6 +6026,7 @@ This variable automatically becomes buffer-local when set. */);
defsubr
(
&
Sscroll_right
);
defsubr
(
&
Sother_window_for_scrolling
);
defsubr
(
&
Sscroll_other_window
);
defsubr
(
&
Sminibuffer_selected_window
);
defsubr
(
&
Srecenter
);
defsubr
(
&
Swindow_text_height
);
defsubr
(
&
Smove_to_window_line
);
...
...
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