changeset 13158:02b3310fc081

(view-exit): Delete view-overlay only if it exists.
author Erik Naggum <erik@naggum.no>
date Sun, 08 Oct 1995 19:59:42 +0000
parents 31242cebf1d3
children 2af96ac471bc
files lisp/view.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/view.el	Sun Oct 08 19:42:11 1995 +0000
+++ b/lisp/view.el	Sun Oct 08 19:59:42 1995 +0000
@@ -264,7 +264,7 @@
 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)