aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-24 15:13:20 +0000
committerRichard M. Stallman1995-04-24 15:13:20 +0000
commit125a8d7091d604217366dc10e7501b4c8679ce6d (patch)
treeba1b038b513044d9ad367caf9b70fa8dbb7509a5
parentbe7a2e73e2957333dadecd9c855f282557f6d3c0 (diff)
downloademacs-125a8d7091d604217366dc10e7501b4c8679ce6d.tar.gz
emacs-125a8d7091d604217366dc10e7501b4c8679ce6d.zip
(print-help-return-message): Check same-window-buffer-names
and same-window-regexps.
-rw-r--r--lisp/help.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 9637c2f4b7a..fb4b01e5aee 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -190,15 +190,25 @@ 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 ;; If the help buffer will go in a separate frame,
194 ;; it's no use mentioning a command to scroll, so don't.
193 (if (or (member (buffer-name standard-output) 195 (if (or (member (buffer-name standard-output)
194 same-window-buffer-names) 196 special-display-buffer-names)
195 (memq t (mapcar '(lambda (elt) 197 (memq t (mapcar '(lambda (elt)
196 (string-match elt (buffer-name standard-output))) 198 (string-match elt (buffer-name standard-output)))
197 same-window-regexps))) 199 special-display-regexps)))
200 nil
201 (if (or (member (buffer-name standard-output)
202 same-window-buffer-names)
203 (memq t (mapcar '(lambda (elt)
204 (string-match elt (buffer-name standard-output)))
205 same-window-regexps)))
206 ;; Say how to scroll this window.
207 (substitute-command-keys
208 "\\[scroll-up] to scroll the help.")
209 ;; Say how to scroll some other window.
198 (substitute-command-keys 210 (substitute-command-keys
199 "\\[scroll-up] to scroll the help.") 211 "\\[scroll-other-window] to scroll the help."))))))))
200 (substitute-command-keys
201 "\\[scroll-other-window] to scroll the help.")))))))
202 212
203(defun describe-key (key) 213(defun describe-key (key)
204 "Display documentation of the function invoked by KEY. KEY is a string." 214 "Display documentation of the function invoked by KEY. KEY is a string."