[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: |
Sun, 15 Dec 2013 06:23:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> And now (recent release of Emacs), `user-variable-p'
> is an obsoleted alias for `custom-variable-p'.
Yes: 24.3. So what is the consensus (if there is one)
to determine if something is a variable or not? - like
I said, in describe-function they put a condition on
obarray:
(or (get vv 'variable-documentation)
(and (boundp vv)
(not (keywordp vv)))))
`custom-variable-p' corresponds to "v" in the
interactive string, and that wasn't inclusive enough,
at least not in my case - which is - quite general, or
am I wrong?!
I think the above solution (the Elisp) should be put
into something like `variable-p' and then this should
be possible to indicate in the interactive
string. Perhaps an optional param (and/or prefix arg)
would indicate where to look if not in obarray.
--
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united: http://user.it.uu.se/~embe8573
RE: interactive interface to supply variables, Drew Adams, 2013/12/14
Message not available