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

(Man-notify-when-ready): In newframe case, use save-excursion.

parent 813f532d
......@@ -481,8 +481,13 @@ start a background process even if a buffer already exists and
See the variable `Man-notify' for the different notification behaviors."
((eq Man-notify 'newframe)
(set-buffer man-buffer)
(new-frame Man-frame-parameters))
;; Since we run asynchronously, perhaps while Emacs is waiting for input,
;; we must not leave a different buffer current.
;; We can't rely on the editor command loop to reselect
;; the selected window's buffer.
(set-buffer man-buffer)
(new-frame Man-frame-parameters)))
((eq Man-notify 'bully)
(and (frame-live-p Man-original-frame)
(select-frame Man-original-frame))
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