aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-08 22:26:02 +0000
committerRichard M. Stallman1997-08-08 22:26:02 +0000
commit1a552841d243b203b7c62ca5fef358b1e05ae9a3 (patch)
treed5618db1a53a7e11da75048362cd651e76ab1a6d
parentf90b69224cb8a43905f9c87b910c89085002a654 (diff)
downloademacs-1a552841d243b203b7c62ca5fef358b1e05ae9a3.tar.gz
emacs-1a552841d243b203b7c62ca5fef358b1e05ae9a3.zip
(view-just-bury): New variable.
(view-mode-exit): Obey it.
-rw-r--r--lisp/view.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el
index 68234cf4348..6feb5565231 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -120,6 +120,12 @@ The \\[view-file] and \\[view-file-other-window] commands may set this to
120`kill-buffer'.") 120`kill-buffer'.")
121(make-variable-buffer-local 'view-exit-action) 121(make-variable-buffer-local 'view-exit-action)
122 122
123(defvar view-no-disable-on-exit nil
124 "If non-nil, View mode \"exit\" commands don't actually disable View mode.
125Instead, these commands just switch buffers or windows.
126This is set in certain buffers by specialized features such as help commands
127that use View mode automatically.")
128
123(defvar view-overlay nil 129(defvar view-overlay nil
124 "Overlay used to display where a search operation found its match. 130 "Overlay used to display where a search operation found its match.
125This is local in each buffer, once it is used.") 131This is local in each buffer, once it is used.")
@@ -507,7 +513,8 @@ corresponding OLD-WINDOW is a live window, then select OLD-WINDOW."
507 (setq old-window (car (cdr a)))) 513 (setq old-window (car (cdr a))))
508 (if (or (zerop c) (not (window-live-p old-window))) 514 (if (or (zerop c) (not (window-live-p old-window)))
509 (setq old-window (selected-window))))) 515 (setq old-window (selected-window)))))
510 (view-mode-disable) 516 (or view-no-disable-on-exit
517 (view-mode-disable))
511 (while alist ; Restore windows with info. 518 (while alist ; Restore windows with info.
512 (if (and (window-live-p (setq window (car (car alist)))) 519 (if (and (window-live-p (setq window (car (car alist))))
513 (eq buffer (window-buffer window))) 520 (eq buffer (window-buffer window)))