changeset 16836:ba46af9fd00d

(command-line-1): Don't run buffer-menu if in batch mode.
author Richard M. Stallman <rms@gnu.org>
date Mon, 06 Jan 1997 06:51:29 +0000
parents 7584a510ad85
children 7370bcad5cb1
files lisp/startup.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Mon Jan 06 06:51:12 1997 +0000
+++ b/lisp/startup.el	Mon Jan 06 06:51:29 1997 +0000
@@ -947,10 +947,11 @@
 			 (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."