Commit 69e610ac authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Man-notify-when-ready): Don't call select-frame if no window system.

parent f55e5c6b
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment