# HG changeset patch # User Karl Heuer # Date 896940599 0 # Node ID cf18f0d82138e3586c9276564d31e02a851596dd # Parent 86cb0924979647c7775e07d1d0a00a4ca830b947 (main): Don't implement --version if not initialized. diff -r 86cb09249796 -r cf18f0d82138 src/emacs.c --- a/src/emacs.c Thu Jun 04 06:07:39 1998 +0000 +++ b/src/emacs.c Thu Jun 04 06:09:59 1998 +0000 @@ -579,7 +579,10 @@ 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 @@ 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");