From: Ivan Shmakov <ivan@siamics.net>
To: emacs-devel@gnu.org
Subject: Re: an easier way to edit variables
Date: Wed, 14 Jan 2015 15:54:44 +0000 [thread overview]
Message-ID: <87d26huzln.fsf_-_@violet.siamics.net> (raw)
In-Reply-To: <jjblhl5jruv.fsf@gmail.com> ("João Távora"'s message of "Wed, 14 Jan 2015 15:37:28 +0000")
>>>>> João Távora <joaotavora@gmail.com> writes:
[…]
> M-: (setq find-the-variables-name-again )
> Multiple C-x o to go to the *Help* window.
> Scroll around until I find the form that I want to change.
> Copy that to the kill ring.
Actually, I think it’d be nice to have /both/ a key binding for
the above (say, ‘E’) /and/ a separate key binding (say, ‘e’) to
call customize-variable, – if the variable is indeed declared
customizable. The code for the latter would probably be just a
few lines long, and the formed could use something like:
(let ((eval-expression-minibuffer-setup-hook
(cons (lambda ()
(insert (format "(setq %S %S)"
variable-name
;; FIXME: double-check the following
(if (consp variable-value)
(list 'quote variable-value)
variable-value))))
eval-expression-minibuffer-setup-hook)))
(call-interactively 'eval-expression))
[…]
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2015-01-14 15:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 20:16 An easier way to edit variables Tom
2015-01-13 21:22 ` Ted Zlatanov
2015-01-13 21:53 ` Tom
2015-01-13 22:11 ` Tom
2015-01-14 15:20 ` João Távora
2015-01-14 16:36 ` Tom
2015-01-14 15:22 ` Ted Zlatanov
2015-01-14 15:37 ` João Távora
2015-01-14 15:54 ` Ivan Shmakov [this message]
2015-01-14 16:09 ` Tom
2015-01-14 16:56 ` Yuri Khan
2015-01-14 18:28 ` Tom
2015-01-14 19:10 ` Ted Zlatanov
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=87d26huzln.fsf_-_@violet.siamics.net \
--to=ivan@siamics.net \
--cc=emacs-devel@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).