# HG changeset patch # User Richard M. Stallman # Date 780210450 0 # Node ID 245187067d35b647eefb72f7db31a01dcdc3bb6e # Parent 2a9359b721da1fdb721e8cbbc526d17a5a7b8da3 (print-help-return-message): Handle cons cells in special-display-regexps and special-display-buffer-names. diff -r 2a9359b721da -r 245187067d35 lisp/help.el --- 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))