unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* buff-menu and revert-buffer-restore-functions
@ 2024-06-03 17:49 Stefan Monnier
  2024-06-03 18:13 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2024-06-03 17:49 UTC (permalink / raw)
  To: Juri Linkov; +Cc: emacs-devel

In the recent

    commit a525cfb3af0c49c5c64e8af548ab23d086348fed
    Author: Juri Linkov <juri@linkov.net>
    Date:   Mon Jun 3 19:55:47 2024 +0300

    New variable 'revert-buffer-restore-functions' (bug#69511)
    
    * doc/lispref/backups.texi (Reverting):
    Add documentation for 'revert-buffer-restore-functions'.
    
    * lisp/files.el (revert-buffer-restore-functions): New variable.
    (revert-buffer-restore-read-only): New function.
    (revert-buffer): Use 'revert-buffer-restore-functions' with
    the default value 'revert-buffer-restore-read-only' (bug#69511).
    
    * lisp/buff-menu.el (Buffer-menu-mode): Add hook
    'revert-buffer-restore-functions' to restore
    outline-minor-mode highlighting.

Why is it the responsability of buff-menu to setup outline minor
mode's rehighlighting?  Wouldn't the same apply to several other modes
and should be handled directly by outline minor mode?
What's special about buff-menu in this respect?


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-04 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03 17:49 buff-menu and revert-buffer-restore-functions Stefan Monnier
2024-06-03 18:13 ` Juri Linkov
2024-06-04 16:52   ` Juri Linkov

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