Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsp!reingold From: reingold@uiucdcsp.cs.uiuc.edu Newsgroups: comp.emacs Subject: Re: Improved Calendar Window Message-ID: <77000005@uiucdcsp> Date: Sat, 5-Dec-87 18:44:00 EST Article-I.D.: uiucdcsp.77000005 Posted: Sat Dec 5 18:44:00 1987 Date-Received: Fri, 11-Dec-87 05:35:51 EST References: <77000004@uiucdcsp> Lines: 20 Nf-ID: #R:uiucdcsp:77000004:uiucdcsp:77000005:000:744 Nf-From: uiucdcsp.cs.uiuc.edu!reingold Dec 5 17:44:00 1987 There will probably be fifty independent answers to this (parallelism!), but since the original posting is mine, I'll answer the question: The function one-window-p yields true if and only if there is a single window visible on the screen. The official description is one-window-p: Returns non-nil if there is only one window. Optional arg NOMINI non-nil means don't count the minibuffer even if it is active. This function is included in 18.49.1, at least. I don't know how far back it goes. For purposes of the calendar window, one can include (defun one-window-p () (eq (selected-window) (next-window (selected-window)))) which ALWAYS ignores the minibuffer. There are, no doubt, better ways to do it.