]> git.eshelyaron.com Git - emacs.git/commit
When reverting, preserve the readedness state set by `C-x C-q'
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 24 Aug 2022 11:33:02 +0000 (13:33 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 24 Aug 2022 11:39:41 +0000 (13:39 +0200)
commitfd74c6f4b81ffb6b373993ef2a5d80f888842397
tree7ee0f5a5f365f02b76c58d511dae42ff0b1dd2f8
parente518146a3017669981b6d31c356d0bb105200928
When reverting, preserve the readedness state set by `C-x C-q'

* lisp/files.el (revert-buffer): Save the user's intention in a
variable (bug#50431).

* lisp/simple.el (read-only-mode): Use it.
lisp/files.el
lisp/simple.el