|
From: | Stefan Monnier |
Subject: | Re: apropos commands for commands, user options, all functions, all variables |
Date: | Sun, 21 Oct 2007 20:55:21 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>> Similarly, we should rename `set-variable' to `set-option' and define a new >> `set-variable' command that sets any variable, not just a user option. >> >> There is no need for such a command; it would be wasted complexity. >> We could define `set-option' as an alias for it. > I often use my own implementation of `set-variable' that doesn't restrict > its argument only to options. I wonder what is more easy way to > interactively change the variable's value in Emacs? You can do (put 'set 'interactive-form '(interactive "Svariable name: \nxValue: ")) and then M-x set RET <var> RET <val> RET or just M-: (setq <var> <val>) RET I implemented the functionality for the first, and I personally use the second. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |