aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorMiles Bader2007-06-11 01:00:07 +0000
committerMiles Bader2007-06-11 01:00:07 +0000
commit67f3ad67ee317226cb5d1bb139de0cfd883fdc5e (patch)
tree58a0e1bea7a1d8728fd32e6127a44434e7eac006 /src/emacs.c
parentd17cf4eb2024cf54e4a216312184665094ee3df4 (diff)
parent2d715b39ea1c89066f469405d065dd1a6631d28e (diff)
downloademacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.tar.gz
emacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 781-792) - Update from CVS - Merge from gnus--rel--5.10 - Merge from emacs--rel--22 * emacs--rel--22 (patch 33-41) * gnus--rel--5.10 (patch 226-228) - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-21
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ac62fc420b9..079f13b2d4f 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -134,8 +134,8 @@ Lisp_Object Vinstallation_directory;
134/* Hook run by `kill-emacs' before it does really anything. */ 134/* Hook run by `kill-emacs' before it does really anything. */
135Lisp_Object Vkill_emacs_hook; 135Lisp_Object Vkill_emacs_hook;
136 136
137/* An empty lisp string. To avoid having to build any other. */ 137/* Empty lisp strings. To avoid having to build any others. */
138Lisp_Object empty_string; 138Lisp_Object empty_unibyte_string, empty_multibyte_string;
139 139
140/* Search path separator. */ 140/* Search path separator. */
141Lisp_Object Vpath_separator; 141Lisp_Object Vpath_separator;
@@ -857,17 +857,23 @@ main (argc, argv
857 So ignore --version otherwise. */ 857 So ignore --version otherwise. */
858 && initialized) 858 && initialized)
859 { 859 {
860 Lisp_Object tem; 860 Lisp_Object tem, tem2;
861 tem = Fsymbol_value (intern ("emacs-version")); 861 tem = Fsymbol_value (intern ("emacs-version"));
862 tem2 = Fsymbol_value (intern ("emacs-copyright"));
862 if (!STRINGP (tem)) 863 if (!STRINGP (tem))
863 { 864 {
864 fprintf (stderr, "Invalid value of `emacs-version'\n"); 865 fprintf (stderr, "Invalid value of `emacs-version'\n");
865 exit (1); 866 exit (1);
866 } 867 }
868 if (!STRINGP (tem2))
869 {
870 fprintf (stderr, "Invalid value of `emacs-copyright'\n");
871 exit (1);
872 }
867 else 873 else
868 { 874 {
869 printf ("GNU Emacs %s\n", SDATA (tem)); 875 printf ("GNU Emacs %s\n", SDATA (tem));
870 printf ("Copyright (C) 2007 Free Software Foundation, Inc.\n"); 876 printf ("%s\n", SDATA(tem2));
871 printf ("GNU Emacs comes with ABSOLUTELY NO WARRANTY.\n"); 877 printf ("GNU Emacs comes with ABSOLUTELY NO WARRANTY.\n");
872 printf ("You may redistribute copies of Emacs\n"); 878 printf ("You may redistribute copies of Emacs\n");
873 printf ("under the terms of the GNU General Public License.\n"); 879 printf ("under the terms of the GNU General Public License.\n");
@@ -2471,9 +2477,6 @@ see `kill-emacs-query-functions' instead.
2471The hook is not run in batch mode, i.e., if `noninteractive' is non-nil. */); 2477The hook is not run in batch mode, i.e., if `noninteractive' is non-nil. */);
2472 Vkill_emacs_hook = Qnil; 2478 Vkill_emacs_hook = Qnil;
2473 2479
2474 empty_string = build_string ("");
2475 staticpro (&empty_string);
2476
2477 DEFVAR_INT ("emacs-priority", &emacs_priority, 2480 DEFVAR_INT ("emacs-priority", &emacs_priority,
2478 doc: /* Priority for Emacs to run at. 2481 doc: /* Priority for Emacs to run at.
2479This value is effective only if set before Emacs is dumped, 2482This value is effective only if set before Emacs is dumped,