aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1998-06-04 06:09:59 +0000
committerKarl Heuer1998-06-04 06:09:59 +0000
commit3270ae6e9b7e47883cbe20cc3541ccc3a0546982 (patch)
tree271fcf584f854a3a7434acac4e05a3c89c5257aa /src
parent09da65202e1f8c37ed3baf2780e89fd4c5fb277a (diff)
downloademacs-3270ae6e9b7e47883cbe20cc3541ccc3a0546982.tar.gz
emacs-3270ae6e9b7e47883cbe20cc3541ccc3a0546982.zip
(main): Don't implement --version if not initialized.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 3de28f12db4..e998c853af9 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -579,7 +579,10 @@ main (argc, argv, envp)
579 579
580 sort_args (argc, argv); 580 sort_args (argc, argv);
581 581
582 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)) 582 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)
583 /* We don't know the version number unless this is a dumped Emacs.
584 So ignore --version otherwise. */
585 && initialized)
583 { 586 {
584 Lisp_Object tem; 587 Lisp_Object tem;
585 tem = Fsymbol_value (intern ("emacs-version")); 588 tem = Fsymbol_value (intern ("emacs-version"));
@@ -591,7 +594,7 @@ main (argc, argv, envp)
591 else 594 else
592 { 595 {
593 printf ("GNU Emacs %s\n", XSTRING (tem)->data); 596 printf ("GNU Emacs %s\n", XSTRING (tem)->data);
594 printf ("Copyright (C) 1997 Free Software Foundation, Inc.\n"); 597 printf ("Copyright (C) 1998 Free Software Foundation, Inc.\n");
595 printf ("GNU Emacs comes with ABSOLUTELY NO WARRANTY.\n"); 598 printf ("GNU Emacs comes with ABSOLUTELY NO WARRANTY.\n");
596 printf ("You may redistribute copies of Emacs\n"); 599 printf ("You may redistribute copies of Emacs\n");
597 printf ("under the terms of the GNU General Public License.\n"); 600 printf ("under the terms of the GNU General Public License.\n");