aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-22 05:07:30 +0000
committerRichard M. Stallman1994-09-22 05:07:30 +0000
commit34b0ef48cbde21e2e9e71639dc7df5943dea2614 (patch)
treea1a64460645302912a8e4daf04fdc75c86ced104
parent0a952b5763c4a75da9dd0fbfa3c44878f1db2239 (diff)
downloademacs-34b0ef48cbde21e2e9e71639dc7df5943dea2614.tar.gz
emacs-34b0ef48cbde21e2e9e71639dc7df5943dea2614.zip
(print-help-return-message): Handle cons cells
in special-display-regexps and special-display-buffer-names.
-rw-r--r--lisp/help.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 80cbdcea6f6..220b35ae497 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -139,11 +139,16 @@ If FUNCTION is nil, applies `message' to it, thus printing it."
139 (let ((first-message 139 (let ((first-message
140 (cond ((or (member (buffer-name standard-output) 140 (cond ((or (member (buffer-name standard-output)
141 special-display-buffer-names) 141 special-display-buffer-names)
142 (assoc (buffer-name standard-output)
143 special-display-buffer-names)
142 (let (found 144 (let (found
143 (tail special-display-regexps) 145 (tail special-display-regexps)
144 (name (buffer-name standard-output))) 146 (name (buffer-name standard-output)))
145 (while (and tail (not found)) 147 (while (and tail (not found))
146 (if (string-match (car tail) name) 148 (if (or (and (consp (car taiul))
149 (string-match (car (car tail)) name))
150 (and (stringp (car tail))
151 (string-match (car tail) name)))
147 (setq found t)) 152 (setq found t))
148 (setq tail (cdr tail))) 153 (setq tail (cdr tail)))
149 found)) 154 found))