Mercurial > emacs
changeset 3678:01941fa99c91
* window.c (Fprevious_window): Use FRAME_HAS_MINIBUF_P to decide
if the frame has a minibuffer; FRAME_MINIBUF_WINDOW points to the
surrogate on minibufferless frames, not nil.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 12 Jun 1993 09:31:25 +0000 |
parents | 597bde558c91 |
children | e1380814a454 |
files | src/window.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Sat Jun 12 07:26:16 1993 +0000 +++ b/src/window.c Sat Jun 12 09:31:25 1993 +0000 @@ -978,8 +978,9 @@ #endif /* If this frame has a minibuffer, find that window first, because it is conceptually the last window in that frame. */ - tem = FRAME_MINIBUF_WINDOW (XFRAME (tem)); - if (NILP (tem)) + if (FRAME_HAS_MINIBUF_P (XFRAME (tem))) + tem = FRAME_MINIBUF_WINDOW (XFRAME (tem)); + else tem = FRAME_ROOT_WINDOW (XFRAME (tem)); break;