]> git.eshelyaron.com Git - emacs.git/commit
New variable 'revert-buffer-restore-functions' (bug#69511)
authorJuri Linkov <juri@linkov.net>
Mon, 3 Jun 2024 16:55:47 +0000 (19:55 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Jun 2024 19:33:11 +0000 (21:33 +0200)
commit2d113afece1124e5d04947d4c367451c95c7bbd3
treeed68743f984b8fb07bf2eb06f61cafdf121b5cc0
parente01b1c8ac9f60c29f048553e0106ec2c80636565
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.

(cherry picked from commit a525cfb3af0c49c5c64e8af548ab23d086348fed)
doc/lispref/backups.texi
etc/NEWS
lisp/buff-menu.el
lisp/files.el