[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of read

From: Thierry Volpiatto
Subject: Re: use of read
Date: Mon, 07 Jan 2008 23:48:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Lennart Borgman (gmail)" <> writes:

> Thierry Volpiatto wrote:
>> Bastien <> writes:
>>> Thierry Volpiatto <> 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:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]