all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Phil Sainty <psainty@orcon.net.nz>
Cc: "26871@debbugs.gnu.org" <26871@debbugs.gnu.org>
Subject: bug#26871: [External] : bug#26871: 25.2; Support revert-buffer for Customize buffers
Date: Mon, 5 Jul 2021 15:58:06 +0000	[thread overview]
Message-ID: <SA2PR10MB4474937E90F6E6C066590DA9F31C9@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87tul8x0yg.fsf@gnus.org>

> > The only way I'm aware of to refresh a Customize buffer when things
> > have changed externally is to kill the buffer and recreate it.
> >
> > It would be convenient if `revert-buffer' was supported, and bound
> > to "g" as usual.
> 
> Yeah, reverting in Customize buffers can be convenient, especially when
> developing (and loading new stuff), so I've added this to Emacs 28.
> (But it uses the global `C-x x g' binding, because the Customize buffer
> is semi-editable, so it'd be confusing (and error-prone) to bind `g' to
> this outside of the editable fields.)

1. `revert-buffer' is very useful for Customize.
Thanks for adding it.


2. FWIW, I disagree that `g' should not be bound to
`revert-buffer' in Customize buffers (outside of
editable fields, obviously).

Your logic would have us also remove the bindings
of `n', `p', `q', `u', `DEL'...
`g' should be bound to `revert-buffer'.


3. A related feature is to be able to update, for
Customize, all options, faces, or both, to their
current states as set outside Customize.  IOW,
not just revert the current Customize buffer but
update Customize more generally.

My library `cus-edit+.el' offers that: commands
to tell Customize to sync its understanding with
the wider Emacs world for (1) all options, (2)
all faces, or (3) all options and faces.  Command
`customize-update-all' does #3.

You can put `customize-update-all' on an idle
timer to keep Customize synced with what happens
outside of Customize, so you can change anything
anywhere in Emacs and have Customize reflect that.

When you exit Emacs, you can be told about all
changes and asked if you want to save them.

https://www.emacswiki.org/emacs/CustomizingAndSaving#summary





      reply	other threads:[~2021-07-05 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-10 22:31 bug#26871: 25.2; Support revert-buffer for Customize buffers Phil Sainty
2017-05-10 23:01 ` Drew Adams
2017-05-10 23:42   ` Phil Sainty
2021-07-05 14:57 ` Lars Ingebrigtsen
2021-07-05 15:58   ` Drew Adams [this message]

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=SA2PR10MB4474937E90F6E6C066590DA9F31C9@SA2PR10MB4474.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=26871@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=psainty@orcon.net.nz \
    /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.