mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(view-mode-disable): If buffer-read-only is nil,
don't change it.
This commit is contained in:
parent
19b7f6c9f0
commit
bf551cf705
1 changed files with 3 additions and 2 deletions
|
|
@ -456,8 +456,9 @@ Entry to view-mode runs the normal hook `view-mode-hook'."
|
|||
(and view-overlay (delete-overlay view-overlay))
|
||||
(force-mode-line-update)
|
||||
(setq view-mode nil
|
||||
Helper-return-blurb view-old-Helper-return-blurb
|
||||
buffer-read-only view-old-buffer-read-only))
|
||||
Helper-return-blurb view-old-Helper-return-blurb)
|
||||
(if buffer-read-only
|
||||
(setq buffer-read-only view-old-buffer-read-only)))
|
||||
|
||||
;;;###autoload
|
||||
(defun view-mode-enter (&optional return-to exit-action) "\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue