help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: interactive interface to supply variables


From: Emanuel Berg
Subject: Re: interactive interface to supply variables
Date: Sat, 14 Dec 2013 21:46:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Juanma Barranquero <lekktu@gmail.com> writes:

> This is irrelevant: (symbol-name 'my-var) => "my-var"
> even if no (defvar my-var X) was ever used.

OK, but it is not irrelevant as it is used in the
defun.

>   (defvar test-var 1) (put 'test-var 'standard-value
>   t)

Yes, that works for (custom-variable-p 'test-var) but
again, if you examine the defun the interface looks
like this:

(interactive "v Variable: ")

And the question is: how do I make that accept
variables, *all* variables, not only those that pass
`custom-variable-p'?

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


reply via email to

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