From: Karl Heuer Date: Thu, 4 Jun 1998 06:09:59 +0000 (+0000) Subject: (main): Don't implement --version if not initialized. X-Git-Tag: emacs-20.3~729 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3270ae6e9b7e47883cbe20cc3541ccc3a0546982;p=emacs.git (main): Don't implement --version if not initialized. --- 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) sort_args (argc, argv); - if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)) + if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args) + /* We don't know the version number unless this is a dumped Emacs. + So ignore --version otherwise. */ + && initialized) { Lisp_Object tem; tem = Fsymbol_value (intern ("emacs-version")); @@ -591,7 +594,7 @@ main (argc, argv, envp) else { printf ("GNU Emacs %s\n", XSTRING (tem)->data); - printf ("Copyright (C) 1997 Free Software Foundation, Inc.\n"); + printf ("Copyright (C) 1998 Free Software Foundation, Inc.\n"); printf ("GNU Emacs comes with ABSOLUTELY NO WARRANTY.\n"); printf ("You may redistribute copies of Emacs\n"); printf ("under the terms of the GNU General Public License.\n");