🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99463

(pop-to-buffer nil) -- not documented

#99463
From: Todd Kaufmann
Date: Wed, 15 Aug 1990 20:48
29 lines
1431 bytes
I had some buggy code that anomolously didn't fail because of this.

  (pop-to-buffer nil)

seems to have the effect of

  (pop-to-buffer (other-buffer))

which is not documented.
I think this should signal an error.

In a quick scan, the only other function I see
that allows a buffer arg of nil is  

  (buffer-name nil) == (buffer-name (current-buffer))

and this is non-consistent behavior with the
treatment of nil as an arg to pop-to-buffer;
ie, other-buffer v. current-buffer.


For now I'll just be careful to not use nil as a buffer arg.

  -todd
--
toad@cs.cmu.edu  //  pobox 81795 pgh 15217-0795  //  fax 412 268 6298
"Madness is to think of too many things in succession too fast or of one
 thing too exclusively."         -- Voltaire
Technical Details
Message-ID: <TOAD.90Aug15164830@MADRID.MT.CS.CMU.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!madrid.mt.cs.cmu.edu!toad

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,edcbb5270ac43749,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-15 20:26:14 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!madrid.mt.cs.cmu.edu!toad
From: toad@CS.CMU.EDU (Todd Kaufmann)
Newsgroups: gnu.emacs.bug
Subject: (pop-to-buffer nil) -- not documented
Message-ID: <TOAD.90Aug15164830@MADRID.MT.CS.CMU.EDU>
Date: 15 Aug 90 20:48:29 GMT
Sender: toad@madrid.mt.cs.cmu.edu
Distribution: gnu
Organization: Center for Machine Translation, Carnegie Mellon University
Lines: 29
Posted: Wed Aug 15 21:48:29 1990