aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-13 18:15:01 +0000
committerRichard M. Stallman1995-04-13 18:15:01 +0000
commit6e7f5182c3c619c112f652c38d898b6013ce3542 (patch)
tree608024ef30578ca9c72bb8f0fa69834600da7365
parent73dc51987239df2fb544ae3dc456e5a7ace21f96 (diff)
downloademacs-6e7f5182c3c619c112f652c38d898b6013ce3542.tar.gz
emacs-6e7f5182c3c619c112f652c38d898b6013ce3542.zip
(print-help-return-message): Check same-window-buffer-names
and same-window-regexps.
-rw-r--r--lisp/help.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 3b14a3a2fe9..9637c2f4b7a 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -190,8 +190,15 @@ If FUNCTION is nil, applies `message' to it, thus printing it."
190 (substitute-command-keys first-message) 190 (substitute-command-keys first-message)
191 "") 191 "")
192 (if first-message " " "") 192 (if first-message " " "")
193 (substitute-command-keys 193 (if (or (member (buffer-name standard-output)
194 "\\[scroll-other-window] to scroll the help.")))))) 194 same-window-buffer-names)
195 (memq t (mapcar '(lambda (elt)
196 (string-match elt (buffer-name standard-output)))
197 same-window-regexps)))
198 (substitute-command-keys
199 "\\[scroll-up] to scroll the help.")
200 (substitute-command-keys
201 "\\[scroll-other-window] to scroll the help.")))))))
195 202
196(defun describe-key (key) 203(defun describe-key (key)
197 "Display documentation of the function invoked by KEY. KEY is a string." 204 "Display documentation of the function invoked by KEY. KEY is a string."