From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: use of read
Date: Mon, 07 Jan 2008 23:48:01 +0100 [thread overview]
Message-ID: <87hchpb6ce.fsf@thievol.homelinux.org> (raw)
In-Reply-To: <4782A288.2070406@gmail.com> (Lennart Borgman's message of "Mon, 07 Jan 2008 23:07:04 +0100")
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> Thierry Volpiatto wrote:
>> Bastien <bzg@altern.org> writes:
>>
>>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>>
>>>> Hello, i use the function (read) to fill a list interactively.
>>>> the prompt is "Lisp expression:" , is it possible to have another prompt?
>>>> Thank you in advance.
>>> This string is hardcoded in the C source code for this function. So I
>>> think it's not possible to modify it.
>>
>> Thanks,
>> no over function to get a variable interactively ?(not with interactive)
>
> Maybe this can help?
>
> (defun read2 (lisp)
> (interactive "xGive me some lisp: ")
> lisp)
>
> (call-interactively 'read2)
>
Yes, that work fine with that, like that i can fill my list:
(setq liste nil)
(dotimes (i 3)
(push (format "%s" (call-interactively '(lambda (var) (interactive "xGive me some lisp: ") var))) liste))
Thank you very much for your help :)
--
A + Thierry
Pub key: http://pgp.mit.edu
next prev parent reply other threads:[~2008-01-07 22:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-07 20:30 use of read Thierry Volpiatto
2008-01-07 21:23 ` Bastien
2008-01-07 22:03 ` Thierry Volpiatto
2008-01-07 22:07 ` Lennart Borgman (gmail)
2008-01-07 22:48 ` Thierry Volpiatto [this message]
[not found] <mailman.5851.1199737426.18990.help-gnu-emacs@gnu.org>
2008-01-07 21:48 ` thorne
2008-01-07 22:58 ` Thierry Volpiatto
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=87hchpb6ce.fsf@thievol.homelinux.org \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.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).