From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juri Linkov <juri@jurta.org>
Cc: rms@gnu.org, Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: apropos commands for commands, user options, all functions, all variables
Date: Sun, 21 Oct 2007 20:55:21 -0400 [thread overview]
Message-ID: <jwv1wbo0y5e.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <877ilg5hfl.fsf@jurta.org> (Juri Linkov's message of "Sun\, 21 Oct 2007 23\:41\:34 +0300")
>> 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
next prev parent reply other threads:[~2007-10-22 0:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 19:08 apropos commands for commands, user options, all functions, all variables Drew Adams
2007-10-19 20:24 ` Andreas Röhler
2007-10-19 20:42 ` Drew Adams
2007-10-21 6:40 ` Stephen J. Turnbull
2007-10-21 7:26 ` Richard Stallman
2007-10-21 20:41 ` Juri Linkov
2007-10-22 0:55 ` Stefan Monnier [this message]
2007-10-23 0:35 ` Juri Linkov
2007-10-23 7:11 ` Drew Adams
2007-10-26 3:48 ` Richard Stallman
2007-10-26 22:43 ` Juri Linkov
2007-10-27 13:58 ` Richard Stallman
2007-11-06 22:46 ` customize-set-(value|variable) [was: apropos commands for commands, user options, all functions, all variables] Drew Adams
2007-11-11 21:11 ` Drew Adams
2007-11-11 21:34 ` Lennart Borgman (gmail)
2007-11-12 0:43 ` Drew Adams
2007-11-12 0:58 ` Lennart Borgman (gmail)
2007-11-12 5:59 ` Richard Stallman
2007-11-12 12:33 ` Robert J. Chassell
2007-11-12 15:30 ` customize-set-(value|variable) [was: apropos commands forcommands, " Drew Adams
2007-11-12 17:10 ` Robert J. Chassell
2007-11-12 19:23 ` customize-set-(value|variable) [was: apropos commandsforcommands, " Drew Adams
2007-11-12 20:32 ` Robert J. Chassell
2007-10-23 7:12 ` apropos commands for commands, user options, all functions, all variables Richard Stallman
2007-10-25 20:59 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1wbo0y5e.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).