unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Andrus <darthandrus@gmail.com>
To: Tom <adatgyujto@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Modifying a variable from describe-variable
Date: Fri, 10 Jan 2014 21:14:00 -0700	[thread overview]
Message-ID: <40518EF2-01D7-4F2B-B3BE-9B0686D3DE3D@gmail.com> (raw)
In-Reply-To: <loom.20140110T211456-680@post.gmane.org>

On Jan 10, 2014, at 1:16 PM, Tom <adatgyujto@gmail.com> wrote:

> The other day I checked a variable with describe-variable (C-h v)
> and I wanted to do a minor change (like changing a character) in
> the value. It was a complicated variable with lots of
> sublists (e.g. font-lock-keywords), so it would have been natural
> and easy to change it on the spot in the *Help* buffer.
> 
> E.g. the user presses e (for edit) in the *Help* buffer which
> either becomes writable or a new buffer pops up with the variable
> value. The user modifies the value, presses C-c C-c and the
> modifications are applied to the variable.
> 
> It does not seem hard to implement and it would be quite
> convenient for quick experimenting with the value of some variable.
> 
> I checked the bindings (surely someone has thought of this
> before), but I didn't find an existing function to do that.


Even simpler (to implement) would be a binding to customize-variable.  Of course, it might not always work, but might be preferable to some people in the cases when it does work.

I think the hardest part would be getting it to DTRT WRT buffer local-ness and such.

-Ivan




  parent reply	other threads:[~2014-01-11  4:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10 20:16 Modifying a variable from describe-variable Tom
2014-01-11  0:02 ` Stefan Monnier
2014-01-11  4:14 ` Ivan Andrus [this message]
2014-01-11  4:22   ` Daniel Colascione
2014-01-11  5:18   ` Stefan Monnier
2014-01-11  6:50   ` Tom
2014-01-11 10:12     ` João Távora
2014-01-11 16:45       ` Tom
2014-01-12  2:34         ` João Távora
2014-01-12  6:41           ` Tom
2014-01-12 22:44             ` Stefan Monnier
2014-01-13  6:49               ` Tom
2014-01-12 20:51           ` Josh
2014-01-11 10:25     ` martin rudalics
2014-01-11 10:29       ` David Kastrup
2014-01-11 14:00         ` martin rudalics
2014-01-11 14:08           ` David Kastrup
2014-01-11 16:50             ` Tom

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=40518EF2-01D7-4F2B-B3BE-9B0686D3DE3D@gmail.com \
    --to=darthandrus@gmail.com \
    --cc=adatgyujto@gmail.com \
    --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).