aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-06-28 15:31:31 +0000
committerEli Zaretskii2000-06-28 15:31:31 +0000
commitbf55e4150ffeb67977b7b84a016f2dfcfbe6efc9 (patch)
tree3ada6d2a56a57535e791a61ac9479287e39b2a16
parentd5483ab1aa8bf71f16f76d3c1b50675b780659b3 (diff)
downloademacs-bf55e4150ffeb67977b7b84a016f2dfcfbe6efc9.tar.gz
emacs-bf55e4150ffeb67977b7b84a016f2dfcfbe6efc9.zip
(Man-notify-when-ready): Don't use window-system. If
Man-notify-method is newframe, and the display is not multi-frame, select the frame created for the man page. (Man-init-defvars): Doc fix.
-rw-r--r--lisp/man.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 7fdfdb99e2d..9ed269a23b5 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -364,7 +364,7 @@ This regular expression should start with a `^' character.")
364;; utilities 364;; utilities
365 365
366(defun Man-init-defvars () 366(defun Man-init-defvars ()
367 "Used for initialising variables based on the value of `window-system'. 367 "Used for initialising variables based on display's color support.
368This is necessary if one wants to dump man.el with Emacs." 368This is necessary if one wants to dump man.el with Emacs."
369 369
370 ;; The following is necessary until fonts are implemented on 370 ;; The following is necessary until fonts are implemented on
@@ -634,23 +634,22 @@ See the variable `Man-notify-method' for the different notification behaviors."
634 (save-excursion 634 (save-excursion
635 (let ((frame (make-frame Man-frame-parameters))) 635 (let ((frame (make-frame Man-frame-parameters)))
636 (set-window-buffer (frame-selected-window frame) man-buffer) 636 (set-window-buffer (frame-selected-window frame) man-buffer)
637 (set-window-dedicated-p (frame-selected-window frame) t)))) 637 (set-window-dedicated-p (frame-selected-window frame) t)
638 (or (display-multi-frame-p frame)
639 (select-frame frame)))))
638 ((eq Man-notify-method 'pushy) 640 ((eq Man-notify-method 'pushy)
639 (switch-to-buffer man-buffer)) 641 (switch-to-buffer man-buffer))
640 ((eq Man-notify-method 'bully) 642 ((eq Man-notify-method 'bully)
641 (and window-system 643 (and (frame-live-p saved-frame)
642 (frame-live-p saved-frame)
643 (select-frame saved-frame)) 644 (select-frame saved-frame))
644 (pop-to-buffer man-buffer) 645 (pop-to-buffer man-buffer)
645 (delete-other-windows)) 646 (delete-other-windows))
646 ((eq Man-notify-method 'aggressive) 647 ((eq Man-notify-method 'aggressive)
647 (and window-system 648 (and (frame-live-p saved-frame)
648 (frame-live-p saved-frame)
649 (select-frame saved-frame)) 649 (select-frame saved-frame))
650 (pop-to-buffer man-buffer)) 650 (pop-to-buffer man-buffer))
651 ((eq Man-notify-method 'friendly) 651 ((eq Man-notify-method 'friendly)
652 (and window-system 652 (and (frame-live-p saved-frame)
653 (frame-live-p saved-frame)
654 (select-frame saved-frame)) 653 (select-frame saved-frame))
655 (display-buffer man-buffer 'not-this-window)) 654 (display-buffer man-buffer 'not-this-window))
656 ((eq Man-notify-method 'polite) 655 ((eq Man-notify-method 'polite)