🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99027

Re: What gives with Interactive "b"?

#99027
From: Roland McGrath
Date: Sun, 25 Nov 1990 22:59
18 lines
1318 bytes
In article <HUNTER.90Nov21164225@work.nlm.nih.gov> hunter@WORK.NLM.NIH.GOV (Larry Hunter) writes:

   Why does

   (defun test-buffer (the-buffer)
     (interactive "bTest buffer: ")
     (message "buffer: %s, sequencep %s, bufferp %s"
	      the-buffer (sequencep the-buffer) (bufferp the-buffer)))

   report that its arguement is a sequence and not a buffer?  

Because it's a string, the name of the buffer.

read-buffer:
One arg PROMPT, a string.  Read the name of a buffer and return as a string.
Prompts with PROMPT.
Optional second arg is value to return if user enters an empty line.
If optional third arg REQUIRE-MATCH is non-nil, only existing buffer names are allowed.
Technical Details
Message-ID: <9011252259.AA15296@albert.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!AI.MIT.EDU!roland

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,2359b40edf2d5717,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-11-25 14:59:59 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!AI.MIT.EDU!roland
From: roland@AI.MIT.EDU (Roland McGrath)
Newsgroups: gnu.emacs.bug
Subject: Re: What gives with Interactive "b"?
Message-ID: <9011252259.AA15296@albert.ai.mit.edu>
Date: 25 Nov 90 22:59:59 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 18
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Sun Nov 25 23:59:59 1990