]> git.eshelyaron.com Git - emacs.git/commitdiff
(empty_string): New var.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Oct 2001 02:10:29 +0000 (02:10 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Oct 2001 02:10:29 +0000 (02:10 +0000)
(syms_of_emacs): Initialize it.

src/emacs.c

index 8f4cd6568c863b23d7e79811e19a843b0c2dded0..f79b094f93aa954ef9a56cef0f58eecc8c253ba6 100644 (file)
@@ -108,6 +108,9 @@ Lisp_Object Vinstallation_directory;
 /* Hook run by `kill-emacs' before it does really anything.  */
 Lisp_Object Vkill_emacs_hook;
 
+/* An empty lisp string.  To avoid having to build any other.  */
+Lisp_Object empty_string;
+
 #ifdef SIGUSR1
 /* Hooks for signal USR1 and USR2 handing */
 Lisp_Object Vsignal_USR1_hook;
@@ -2208,6 +2211,9 @@ expect to be able to interact with the user.  To ask for confirmation,\n\
 see `kill-emacs-query-functions' instead.");
   Vkill_emacs_hook = Qnil;
 
+  empty_string = build_string ("");
+  staticpro (&empty_string);
+
 #ifdef SIGUSR1
   DEFVAR_LISP ("signal-USR1-hook", &Vsignal_USR1_hook,
     "Hook to be run whenever emacs receives a USR1 signal");