emacs-devel
[Top][All Lists]
Advanced

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

Re: apropos commands for commands, user options, all functions, all vari


From: Juri Linkov
Subject: Re: apropos commands for commands, user options, all functions, all variables
Date: Tue, 23 Oct 2007 03:35:43 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>> 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.

Neither is as convenient as set-variable which

1. picks up the default variable name from the buffer;
2. provides completion;
3. provides the old value as default for editing in the minibuffer;

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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