1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(view-exit): Delete view-overlay only if it exists.

This commit is contained in:
Erik Naggum 1995-10-08 19:59:42 +00:00
parent 14f67fa6a5
commit 641889d6e9

View File

@ -264,7 +264,7 @@ If you viewed an existing buffer, that buffer returns to its previous mode.
If you viewed a file that was not present in Emacs, its buffer is killed."
(interactive)
(setq view-mode nil)
(delete-overlay view-overlay)
(and view-overlay (delete-overlay view-overlay))
(force-mode-line-update)
(cond (view-mode-auto-exit
(setq buffer-read-only view-old-buffer-read-only)