]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line-1): Don't run buffer-menu if in batch mode.
authorRichard M. Stallman <rms@gnu.org>
Mon, 6 Jan 1997 06:51:29 +0000 (06:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 6 Jan 1997 06:51:29 +0000 (06:51 +0000)
lisp/startup.el

index 9aceed403eab4635d855d6201227395b6ec1716b..68f857cde74fabcafecd8bf3f9e81298885bb640 100644 (file)
@@ -947,10 +947,11 @@ Type \\[describe-distribution] for information on getting the latest version."))
                         (setq line 0))))))))
       ;; If 3 or more files visited, and not all visible,
       ;; show user what they all are.
-      (if (> file-count 2)
-         (or (get-buffer-window first-file-buffer)
-             (progn (other-window 1)
-                    (buffer-menu)))))))
+      (and (> file-count 2)
+          (not noninteractive)
+          (or (get-buffer-window first-file-buffer)
+              (progn (other-window 1)
+                     (buffer-menu)))))))
 
 (defun command-line-normalize-file-name (file)
   "Collapse multiple slashes to one, to handle non-Emacs file names."