aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/help-macro.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/help-macro.el b/lisp/help-macro.el
index 83e7b09b35c..55f63f25c5e 100644
--- a/lisp/help-macro.el
+++ b/lisp/help-macro.el
@@ -114,10 +114,11 @@ and then returns."
114 (progn 114 (progn
115 (setq config (current-window-configuration)) 115 (setq config (current-window-configuration))
116 (switch-to-buffer-other-window "*Help*") 116 (switch-to-buffer-other-window "*Help*")
117 (if (not (eq (window-frame (selected-window)) 117 (and (fboundp 'make-frame)
118 prev-frame)) 118 (not (eq (window-frame (selected-window))
119 (setq new-frame (window-frame (selected-window)) 119 prev-frame))
120 config nil)) 120 (setq new-frame (window-frame (selected-window))
121 config nil))
121 (erase-buffer) 122 (erase-buffer)
122 (insert help-screen) 123 (insert help-screen)
123 (goto-char (point-min)) 124 (goto-char (point-min))