🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98535

Re: one-window-p seems wrong sometimes

#98535
From: Barry Margolin
Date: Wed, 15 May 1991 18:20
26 lines
1629 bytes
In article <LEBAN.91May13143756@par6.cs.umass.edu> leban%par6@cs.umass.edu (Bruce Leban) writes:
>1) Bind eval-defun to a key.

Or just use a Lisp Interaction buffer...

>2) Type (one-window-p) in a buffer.
>3) <eval-defun-key> produces t
>4) M-X C-X o
>5) <eval-defun-key> produces nil
>       **incorrect**

No, it's correct.  An active minibuffer counts as a window, unless you give
one-window-p a non-null argument.  Here's the online documentation:

    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.

Basically, (one-window-p) is nil if and only if c-x o will switch to
another window.
-- 
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar
Technical Details
Message-ID: <1991May15.182022.20640@Think.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
References: <LEBAN.91May13143756@par6.cs.umass.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,ac067f18ced34189
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-05-15 11:20:22 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: think!barmar@BLOOM-BEACON.MIT.EDU (Barry Margolin)
Newsgroups: gnu.emacs.bug
Subject: Re: one-window-p seems wrong sometimes
Message-ID: <1991May15.182022.20640@Think.COM>
Date: 15 May 91 18:20:22 GMT
References: <LEBAN.91May13143756@par6.cs.umass.edu>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: think!barmar@bloom-beacon.mit.edu
Distribution: gnu
Organization: Thinking Machines Corporation, Cambridge MA, USA
Lines: 26
Approved: bug-gnu-emacs@prep.ai.mit.edu