comparison lisp/help.el @ 30667:2bd60ea8076f

(print-help-return-message): When display-buffer-reuse-frames is set, let the help window been quit, instead of deleting it, which might delete a reused frame.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 08 Aug 2000 12:18:17 +0000
parents 06d02e3657f0
children b17078a7d55a
comparison
equal deleted inserted replaced
30666:d470d496fd53 30667:2bd60ea8076f
271 ;; don't say anything about how to get rid of it. 271 ;; don't say anything about how to get rid of it.
272 ;; First of all, the user will do that with the window 272 ;; First of all, the user will do that with the window
273 ;; manager, not with Emacs. 273 ;; manager, not with Emacs.
274 ;; Secondly, the buffer has not been displayed yet, 274 ;; Secondly, the buffer has not been displayed yet,
275 ;; so we don't know whether its frame will be selected. 275 ;; so we don't know whether its frame will be selected.
276 nil)
277 (display-buffer-reuse-frames
278 (setq help-return-method (cons (selected-window)
279 'quit-window))
276 nil) 280 nil)
277 ((not (one-window-p t)) 281 ((not (one-window-p t))
278 (setq help-return-method 282 (setq help-return-method
279 (cons (selected-window) 'quit-window)) 283 (cons (selected-window) 'quit-window))
280 "Type \\[switch-to-buffer-other-window] RET to restore the other window.") 284 "Type \\[switch-to-buffer-other-window] RET to restore the other window.")