]> git.eshelyaron.com Git - emacs.git/commit
view-mode-exit: Respect view-read-only
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 16 Jul 2025 09:49:26 +0000 (10:49 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 09:48:12 +0000 (11:48 +0200)
commit5c111ef4295eb9328c577c94ef5d905d4c11d775
treebd6db9d8407ad5e02d980acb25a7340d910f64fb
parent1c99bb9c656118e950d51a485c05b8273dde1f79
view-mode-exit: Respect view-read-only

* lisp/view.el (view-mode-exit): When view-read-only is non-nil,
don't exit View mode if doing so would leave behind a read-only
buffer not in View mode.
(View-exit): Bind view-read-only to nil to override the above.

(cherry picked from commit 3d04506cf3d0f020f40043d2b8e8be604ba1c2c5)
lisp/view.el