[Top][All Lists]

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

Re: reading a variable from the user

From: Tassilo Horn
Subject: Re: reading a variable from the user
Date: Wed, 10 Oct 2012 11:16:06 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Francesco Mazzoli <> writes:

> At Wed, 10 Oct 2012 00:24:35 -0700 (PDT),
> drain wrote:
>> Is there a function that prompts the user in the mini-buffer, matches the
>> string input with a local variable name, and then returns the variable? 
> You can use something like
>     (defun foo (var)
>       (interactive "v")
>       (message "%S" (symbol-value var)))
> See the help page for `interactive' for more info.

Or simply do `C-h v <variable-name> RET' which shows the documentation
and the current value of that variable.


reply via email to

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