From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: [elisp]How to ask and provide a Default value?
Date: Fri, 05 Mar 2004 11:16:38 -0700 [thread overview]
Message-ID: <4048C406.4040901@yahoo.com> (raw)
In-Reply-To: u1xo8ksxf.fsf@16cn.comp.os.linux3.com
FKtPp@Office ;) wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>>(defun foo (number)
>> (interactive "nNumber: ")
>> (message "number=%d" number))
>>
>>When I type `M-x foo RET RET' on Emacs 19.34, I get an "End of file
>>during parsing" error. When I type that on Emacs 21.3, I get a
>>transient "Please enter a number." Message, then the prompt is
>>redisplayed.
>
> Thank you. I got it too :)
>
>>So evidently Emacs does not provide a default for the `n' character
>>code.
>
> But, I still don't know how to use the default character description
> :P Would u please give me a sample?
The `b' character code, which is used to return an existing buffer, does
provide a default (the current buffer):
(defun foo (buffer)
(interactive "bBuffer: ")
(message "buffer=%s" buffer))
--
Kevin Rodgers
next prev parent reply other threads:[~2004-03-05 18:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 6:54 [elisp]How to ask and provide a Default value? FKtPp@Office ;)
2004-03-04 15:54 ` Kevin Rodgers
2004-03-05 1:02 ` FKtPp@Office ;)
2004-03-05 18:16 ` Kevin Rodgers [this message]
2004-03-06 7:56 ` FKtPp@Office ;)
2004-03-08 18:46 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2004-03-05 7:45 Joakim Hove
2004-03-05 8:04 ` Joakim Hove
2004-03-06 7:52 ` FKtPp@Office ;)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4048C406.4040901@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).