Mercurial > emacs
comparison src/window.c @ 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 | 8fad20cc5408 |
children | b9f27ed0228c |
comparison
equal
deleted
inserted
replaced
3677:597bde558c91 | 3678:01941fa99c91 |
---|---|
976 met. */ | 976 met. */ |
977 tem = prev_frame (tem, all_frames); | 977 tem = prev_frame (tem, all_frames); |
978 #endif | 978 #endif |
979 /* If this frame has a minibuffer, find that window first, | 979 /* If this frame has a minibuffer, find that window first, |
980 because it is conceptually the last window in that frame. */ | 980 because it is conceptually the last window in that frame. */ |
981 tem = FRAME_MINIBUF_WINDOW (XFRAME (tem)); | 981 if (FRAME_HAS_MINIBUF_P (XFRAME (tem))) |
982 if (NILP (tem)) | 982 tem = FRAME_MINIBUF_WINDOW (XFRAME (tem)); |
983 else | |
983 tem = FRAME_ROOT_WINDOW (XFRAME (tem)); | 984 tem = FRAME_ROOT_WINDOW (XFRAME (tem)); |
984 | 985 |
985 break; | 986 break; |
986 } | 987 } |
987 | 988 |