all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
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: Tue, 23 Oct 2007 03:35:43 +0300	[thread overview]
Message-ID: <87bqaqzo8k.fsf@jurta.org> (raw)
In-Reply-To: <jwv1wbo0y5e.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun\, 21 Oct 2007 20\:55\:21 -0400")

>> 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	other threads:[~2007-10-23  0:35 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
2007-10-23  0:35       ` Juri Linkov [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bqaqzo8k.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.