diff options
| author | Stefan Monnier | 2000-06-12 05:26:55 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-06-12 05:26:55 +0000 |
| commit | ffaf8bbb770d10d3197da6cd40fd11a14dd8ccbc (patch) | |
| tree | c67bf590b3e079ac6356ed74aad91796c2b8c988 | |
| parent | 363c962e614a04dbb644a8cf735c698e411623cd (diff) | |
| download | emacs-ffaf8bbb770d10d3197da6cd40fd11a14dd8ccbc.tar.gz emacs-ffaf8bbb770d10d3197da6cd40fd11a14dd8ccbc.zip | |
(command-line, command-line-1): Don't quote lambda.
(command-line): Don't call menu-bar-mode if not interactive.
| -rw-r--r-- | lisp/startup.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 575e961bd59..0c92c4b6a13 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -558,11 +558,11 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 558 | (if (memq 'file-error (get (car error) 'error-conditions)) | 558 | (if (memq 'file-error (get (car error) 'error-conditions)) |
| 559 | (format "%s: %s" | 559 | (format "%s: %s" |
| 560 | (nth 1 error) | 560 | (nth 1 error) |
| 561 | (mapconcat '(lambda (obj) (prin1-to-string obj t)) | 561 | (mapconcat (lambda (obj) (prin1-to-string obj t)) |
| 562 | (cdr (cdr error)) ", ")) | 562 | (cdr (cdr error)) ", ")) |
| 563 | (format "%s: %s" | 563 | (format "%s: %s" |
| 564 | (get (car error) 'error-message) | 564 | (get (car error) 'error-message) |
| 565 | (mapconcat '(lambda (obj) (prin1-to-string obj t)) | 565 | (mapconcat (lambda (obj) (prin1-to-string obj t)) |
| 566 | (cdr error) ", ")))) | 566 | (cdr error) ", ")))) |
| 567 | 'external-debugging-output) | 567 | 'external-debugging-output) |
| 568 | (setq window-system nil) | 568 | (setq window-system nil) |
| @@ -642,8 +642,9 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 642 | (if (fboundp 'frame-initialize) | 642 | (if (fboundp 'frame-initialize) |
| 643 | (frame-initialize)) | 643 | (frame-initialize)) |
| 644 | ;; If frame was created with a menu bar, set menu-bar-mode on. | 644 | ;; If frame was created with a menu bar, set menu-bar-mode on. |
| 645 | (if (or (not (memq window-system '(x w32))) | 645 | (if (and (not noninteractive) |
| 646 | (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) | 646 | (or (not (memq window-system '(x w32))) |
| 647 | (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))) | ||
| 647 | (menu-bar-mode t)) | 648 | (menu-bar-mode t)) |
| 648 | 649 | ||
| 649 | (run-hooks 'before-init-hook) | 650 | (run-hooks 'before-init-hook) |
| @@ -999,8 +1000,8 @@ Type \\[describe-distribution] for information on getting the latest version.")) | |||
| 999 | (append '(("--funcall") ("--load") ("--insert") ("--kill") | 1000 | (append '(("--funcall") ("--load") ("--insert") ("--kill") |
| 1000 | ("--directory") ("--eval") ("--execute") | 1001 | ("--directory") ("--eval") ("--execute") |
| 1001 | ("--find-file") ("--visit") ("--file")) | 1002 | ("--find-file") ("--visit") ("--file")) |
| 1002 | (mapcar '(lambda (elt) | 1003 | (mapcar (lambda (elt) |
| 1003 | (list (concat "-" (car elt)))) | 1004 | (list (concat "-" (car elt)))) |
| 1004 | command-switch-alist))) | 1005 | command-switch-alist))) |
| 1005 | (line 0)) | 1006 | (line 0)) |
| 1006 | 1007 | ||