From 69e610ac11874996d6b0034e26b185b5474850f2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 2 May 1994 19:40:19 +0000 Subject: [PATCH] (Man-notify-when-ready): Don't call select-frame if no window system. --- lisp/man.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/man.el b/lisp/man.el index 7fd87f7996d..92ba6ffc538 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -489,16 +489,19 @@ See the variable `Man-notify' for the different notification behaviors." (set-buffer man-buffer) (new-frame Man-frame-parameters))) ((eq Man-notify 'bully) - (and (frame-live-p Man-original-frame) + (and window-system + (frame-live-p Man-original-frame) (select-frame Man-original-frame)) (pop-to-buffer man-buffer) (delete-other-windows)) ((eq Man-notify 'aggressive) - (and (frame-live-p Man-original-frame) + (and window-system + (frame-live-p Man-original-frame) (select-frame Man-original-frame)) (pop-to-buffer man-buffer)) ((eq Man-notify 'friendly) - (and (frame-live-p Man-original-frame) + (and window-system + (frame-live-p Man-original-frame) (select-frame Man-original-frame)) (display-buffer man-buffer 'not-this-window)) ((eq Man-notify 'polite) -- 2.39.5