|
From: | Emanuel Berg |
Subject: | Re: Using "Emacs Configure" **and** modifying .emacs |
Date: | Mon, 14 Aug 2017 23:41:35 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg wrote: > Here is something that can help speed up the > tracking down of user variables in code already > written: > > (defun echo-user-variable () > (interactive) > (let ((var (variable-at-point t))) ; ANY-SYMBOL > (if (custom-variable-p var) > (message "user variable") > (message "something else") ))) > (defalias 'euv 'echo-user-variable) Another interesting thing is, because as we see above it is easy to find out if a symbol is a user variable or not, so why doesn't the byte compiler warn when `setq' is used if it really is a problem doing so? -- underground experts united http://user.it.uu.se/~embe8573
[Prev in Thread] | Current Thread | [Next in Thread] |