changeset 8992:245187067d35

(print-help-return-message): Handle cons cells in special-display-regexps and special-display-buffer-names.
author Richard M. Stallman <rms@gnu.org>
date Thu, 22 Sep 1994 05:07:30 +0000
parents 2a9359b721da
children c6572fa27df3
files lisp/help.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Thu Sep 22 05:04:59 1994 +0000
+++ b/lisp/help.el	Thu Sep 22 05:07:30 1994 +0000
@@ -139,11 +139,16 @@
        (let ((first-message
 	      (cond ((or (member (buffer-name standard-output)
 				 special-display-buffer-names)
+			 (assoc (buffer-name standard-output)
+				special-display-buffer-names)
 			 (let (found
 			       (tail special-display-regexps)
 			       (name (buffer-name standard-output)))
 			   (while (and tail (not found))
-			     (if (string-match (car tail) name)
+			     (if (or (and (consp (car taiul))
+					  (string-match (car (car tail)) name))
+				     (and (stringp (car tail))
+					  (string-match (car tail) name)))
 				 (setq found t))
 			     (setq tail (cdr tail)))
 			   found))