]> git.eshelyaron.com Git - emacs.git/commitdiff
(print-help-return-message): Handle lists in
authorRichard M. Stallman <rms@gnu.org>
Sun, 1 Oct 1995 20:00:22 +0000 (20:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 1 Oct 1995 20:00:22 +0000 (20:00 +0000)
special-display-regexps and same-window-regexps.  Also in
special-display-buffer-names and same-window-buffer-names

lisp/help.el

index b32cf2dcc97a21046932341b45eb54d1469f7fed..f9a689bf081b18cb06dad21e5dd98376b230ec23 100644 (file)
@@ -220,13 +220,21 @@ If FUNCTION is nil, applies `message' to it, thus printing it."
                   ;; it's no use mentioning a command to scroll, so don't.
                   (if (or (member (buffer-name standard-output)
                                   special-display-buffer-names)
+                          (assoc (buffer-name standard-output)
+                                 special-display-buffer-names)
                           (memq t (mapcar '(lambda (elt)
+                                             (if (consp elt)
+                                                 (setq elt (car elt)))
                                              (string-match elt (buffer-name standard-output)))
                                           special-display-regexps)))
                       nil
                     (if (or (member (buffer-name standard-output)
                                     same-window-buffer-names)
+                            (assoc (buffer-name standard-output)
+                                   same-window-buffer-names)
                             (memq t (mapcar '(lambda (elt)
+                                               (if (consp elt)
+                                                   (setq elt (car elt)))
                                                (string-match elt (buffer-name standard-output)))
                                             same-window-regexps)))
                         ;; Say how to scroll this window.