* bug#26871: 25.2; Support revert-buffer for Customize buffers @ 2017-05-10 22:31 Phil Sainty 2017-05-10 23:01 ` Drew Adams 2021-07-05 14:57 ` Lars Ingebrigtsen 0 siblings, 2 replies; 5+ messages in thread From: Phil Sainty @ 2017-05-10 22:31 UTC (permalink / raw) To: 26871 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)) ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26871: 25.2; Support revert-buffer for Customize buffers 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 1 sibling, 1 reply; 5+ messages in thread From: Drew Adams @ 2017-05-10 23:01 UTC (permalink / raw) To: Phil Sainty, 26871 +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). ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26871: 25.2; Support revert-buffer for Customize buffers 2017-05-10 23:01 ` Drew Adams @ 2017-05-10 23:42 ` Phil Sainty 0 siblings, 0 replies; 5+ messages in thread From: Phil Sainty @ 2017-05-10 23:42 UTC (permalink / raw) To: 26871 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26871: 25.2; Support revert-buffer for Customize buffers 2017-05-10 22:31 bug#26871: 25.2; Support revert-buffer for Customize buffers Phil Sainty 2017-05-10 23:01 ` Drew Adams @ 2021-07-05 14:57 ` Lars Ingebrigtsen 2021-07-05 15:58 ` bug#26871: [External] : " Drew Adams 1 sibling, 1 reply; 5+ messages in thread From: Lars Ingebrigtsen @ 2021-07-05 14:57 UTC (permalink / raw) To: Phil Sainty; +Cc: 26871 Phil Sainty <psainty@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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26871: [External] : bug#26871: 25.2; Support revert-buffer for Customize buffers 2021-07-05 14:57 ` Lars Ingebrigtsen @ 2021-07-05 15:58 ` Drew Adams 0 siblings, 0 replies; 5+ messages in thread From: Drew Adams @ 2021-07-05 15:58 UTC (permalink / raw) To: Lars Ingebrigtsen, Phil Sainty; +Cc: 26871@debbugs.gnu.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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-05 15:58 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 ` bug#26871: [External] : " Drew Adams
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.