# HG changeset patch # User Erik Naggum # Date 813182382 0 # Node ID 02b3310fc0818e1760682bfcc6ab17044874608a # Parent 31242cebf1d38de2fc2b67d9b543f45876d08816 (view-exit): Delete view-overlay only if it exists. diff -r 31242cebf1d3 -r 02b3310fc081 lisp/view.el --- 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)