Article View: gnu.emacs.bug
Article #98857bug in one-window-p
From: enami tsugutomo
Date: Thu, 21 Feb 1991 11:00
Date: Thu, 21 Feb 1991 11:00
17 lines
1251 bytes
1251 bytes
In GNU Emacs 18.55.0 of Wed Nov 7 1990 on chihaya (berkeley-unix)
When the minibuffer is selected, (one-window-p t) never returns t. I
think it shuld return t if there is one window except the minibuffer's
window.
A sample fix is:
(defun one-window-p (&optional arg)
"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."
(let ((window (next-window (minibuffer-window))))
(eq window
(next-window window (if arg 'arg)) )))
enami.
Technical Details
Message-ID:
<9102211100.AA21021@chihaya.sys.ptg.sony.co.jp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,d227d6f1238536a8,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-02-21 03:00:31 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: enami@sys.ptg.sony.co.jp (enami tsugutomo) Newsgroups: gnu.emacs.bug Subject: bug in one-window-p Message-ID: <9102211100.AA21021@chihaya.sys.ptg.sony.co.jp> Date: 21 Feb 91 11:00:31 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 Approved: bug-gnu-emacs@prep.ai.mit.edu