GNU bug report logs - #26871
25.2; Support revert-buffer for Customize buffers

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Wed, 10 May 2017 22:33:02 UTC

Severity: wishlist

Found in version 25.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26871 in the body.
You can then email your comments to 26871 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26871; Package emacs. (Wed, 10 May 2017 22:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Phil Sainty <psainty <at> orcon.net.nz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 May 2017 22:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; Support revert-buffer for Customize buffers
Date: Thu, 11 May 2017 10:31:47 +1200
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.




In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2017-04-22 built on shodan
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.04.2 LTS

Configured using:
 'configure --prefix=/home/phil/emacs/25.2/usr/local
 --with-x-toolkit=lucid --without-sound'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS NOTIFY
GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11

Important settings:
  value of $LANG: en_NZ.UTF-8
  value of $XMODIFIERS:
  locale-coding-system: utf-8-unix

Major mode: Dired by name

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit
user-error: Beginning of history; no preceding item
user-error: End of history; no default available

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase
cl-lib mail-prsvr mail-utils dired time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting system-font-setting font-render-setting
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 90861 10521)
 (symbols 48 19761 0)
 (miscs 40 59 185)
 (strings 32 15178 4135)
 (string-bytes 1 428828)
 (vectors 16 12549)
 (vector-slots 8 437620 4562)
 (floats 8 173 65)
 (intervals 56 284 0)
 (buffers 976 19)
 (heap 1024 33986 939))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26871; Package emacs. (Wed, 10 May 2017 23:02:01 GMT) Full text and rfc822 format available.

Message #8 received at 26871 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Phil Sainty <psainty <at> orcon.net.nz>, 26871 <at> debbugs.gnu.org
Subject: RE: bug#26871: 25.2; Support revert-buffer for Customize buffers
Date: Wed, 10 May 2017 16:01:06 -0700 (PDT)
+1.

This emacs.SE question:
https://emacs.stackexchange.com/q/32714/105
shows that at least one user expected existing Customize buffers to
auto-revert.  This enhancement request will help in that direction
(not automatic, but that's OK).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26871; Package emacs. (Wed, 10 May 2017 23:43:01 GMT) Full text and rfc822 format available.

Message #11 received at 26871 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: 26871 <at> debbugs.gnu.org
Subject: Re: bug#26871: 25.2; Support revert-buffer for Customize buffers
Date: Thu, 11 May 2017 11:42:35 +1200
On 11/05/17 11:01, Drew Adams wrote:
> https://emacs.stackexchange.com/q/32714/105
> shows that at least one user expected existing Customize buffers to
> auto-revert.  This enhancement request will help in that direction
> (not automatic, but that's OK).

That question did indeed prompt this, but I've been meaning to raise
it for a long time.

It can be particularly confusing when the buffer exists but is not
displayed, as if you invoke the customize command in that scenario,
the behaviour *appears* to be the same as if the buffer had not
already existed, but that's not actually the case, and it might be
showing you stale data.

That's also slightly tangential to the stated feature request, but
revert-buffer support again seems like the logical first step.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26871; Package emacs. (Mon, 05 Jul 2021 14:58:02 GMT) Full text and rfc822 format available.

Message #14 received at 26871 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 26871 <at> debbugs.gnu.org
Subject: Re: bug#26871: 25.2; Support revert-buffer for Customize buffers
Date: Mon, 05 Jul 2021 16:57:43 +0200
Phil Sainty <psainty <at> orcon.net.nz> writes:

> 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.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 26871 <at> debbugs.gnu.org and Phil Sainty <psainty <at> orcon.net.nz> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 05 Jul 2021 14:58:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26871; Package emacs. (Mon, 05 Jul 2021 15:59:02 GMT) Full text and rfc822 format available.

Message #19 received at 26871 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Phil Sainty <psainty <at> orcon.net.nz>
Cc: "26871 <at> debbugs.gnu.org" <26871 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#26871: 25.2; Support revert-buffer for Customize
 buffers
Date: Mon, 5 Jul 2021 15:58:06 +0000
> > 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Aug 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 266 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.