comparison lisp/startup.el @ 5024:7eff30849357

(command-line-1): Display a message in the echo area.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Nov 1993 09:22:23 +0000
parents ff4c359fa626
children 062da10a4a6b
comparison
equal deleted inserted replaced
5023:ff4c359fa626 5024:7eff30849357
302 302
303 ;; If -batch, terminate after processing the command options. 303 ;; If -batch, terminate after processing the command options.
304 (if noninteractive (kill-emacs t))) 304 (if noninteractive (kill-emacs t)))
305 305
306 (defun command-line-1 (command-line-args-left) 306 (defun command-line-1 (command-line-args-left)
307 (or noninteractive (input-pending-p)
308 (message (if (eq (key-binding "\C-h\C-p") 'describe-project)
309 "For information about the GNU Project and its goals, type C-h C-p."
310 (substitute-command-keys
311 "For information about the GNU Project and its goals, type \\[describe-project]."))))
307 (if (null command-line-args-left) 312 (if (null command-line-args-left)
308 (cond ((and (not inhibit-startup-message) (not noninteractive) 313 (cond ((and (not inhibit-startup-message) (not noninteractive)
309 ;; Don't clobber a non-scratch buffer if init file 314 ;; Don't clobber a non-scratch buffer if init file
310 ;; has selected it. 315 ;; has selected it.
311 (string= (buffer-name) "*scratch*") 316 (string= (buffer-name) "*scratch*")
425 ;; If 3 or more files visited, and not all visible, 430 ;; If 3 or more files visited, and not all visible,
426 ;; show user what they all are. 431 ;; show user what they all are.
427 (if (> file-count 2) 432 (if (> file-count 2)
428 (or (get-buffer-window first-file-buffer) 433 (or (get-buffer-window first-file-buffer)
429 (progn (other-window 1) 434 (progn (other-window 1)
430 (buffer-menu)))))) 435 (buffer-menu)))))))
431 (message (substitute-command-keys
432 "For information about the GNU project and its goals, type \\[describe-project].")))
433 436
434 ;;; startup.el ends here 437 ;;; startup.el ends here