all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: ndame <emacsuser@freemail.hu>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	"36826@debbugs.gnu.org" <36826@debbugs.gnu.org>
Subject: bug#36826: 26.1; request: add variable value editing feature to the *Help* buffer
Date: Tue, 30 Jul 2019 02:59:39 +0200	[thread overview]
Message-ID: <87o91ccp6s.fsf@web.de> (raw)
In-Reply-To: <Axuu0g.HkCXWWtfWbR.MB54p8XYTOQqsLkRnbS@freemail.hu> (ndame's message of "Mon, 29 Jul 2019 04:38:25 +0000 (GMT)")

ndame <emacsuser@freemail.hu> writes:

> A related idea is that we could have the key c bound to copy as
> elisp. So you want to tweak a variable. You press c and the lisp form
> of setting the variable (setq varname ....current value...) is copied
> to the kill ring which you can tweak in scratch.

It's convenient, but also a small gain: copy the variable to scratch,
hit C-u C-x C-e, and you already have most of this.  Takes two seconds
or so to type all that to have the complete setq form.

> We are talking about variables which the user sets from lisp. Variables
> containing buffer objects are not such. For these the feature could
> throw an error saying the variable cannot be changed manually.

Could be done.  Note that already variables whose values contain
functions could throw this error.

> > But my main point is the question if we should really invite the typical
> > user, which is not an Emacs developer (ok, here I'm not really sure if
> > I'm right) to change variables on the fly,

> I don't know what you mean by emacs developer (core developer?), but
> the typical emacs user tends to learn lisp, so he can extend and mold
> the editor to his needs. Such a user inspects variables, changes them,
> copies code to the init file etc. This feature targets those users who
> are beyond customize, able to use lisp and tweak variables and other
> things often in emacs.

Doing so is quite often a mistake.  Some variables should not be set
outside of customize.  Other variables, especially list valued variables
we spoke about, often need to be value modified instead of set.  And for
variables with atom values, the gain is small.

Michael.





  parent reply	other threads:[~2019-07-30  0:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-28  6:08 bug#36826: 26.1; request: add variable value editing feature to the *Help* buffer ndame
2019-07-28 16:51 ` Drew Adams
2019-07-28 17:53   ` ndame
2019-07-28 18:01 ` Lars Ingebrigtsen
2019-07-29  4:00   ` Basil L. Contovounesios
2019-07-29  4:35     ` Drew Adams
2019-07-29 18:15       ` Juri Linkov
2019-07-29 13:55     ` Lars Ingebrigtsen
2019-07-29 14:18       ` Drew Adams
2019-07-29  4:28   ` Michael Heerdegen
2019-07-29  4:38     ` ndame
2019-07-29 14:22       ` Eli Zaretskii
2019-07-30  0:59       ` Michael Heerdegen [this message]
2019-07-30  2:43         ` Drew Adams
2019-07-30  4:02           ` Michael Heerdegen
2019-07-30 18:53             ` Drew Adams
2019-07-30 21:32               ` Michael Heerdegen
2019-07-29  4:46     ` Drew Adams
2022-04-17 17:00   ` Lars Ingebrigtsen

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=87o91ccp6s.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=36826@debbugs.gnu.org \
    --cc=emacsuser@freemail.hu \
    --cc=larsi@gnus.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.