diff options
| author | Stefan Monnier | 2001-10-12 02:10:29 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-10-12 02:10:29 +0000 |
| commit | f9a6326d6e0535e6be1f0c98329c0b76992ca29f (patch) | |
| tree | e3b8583d79037d4dd9e00d3514fa1d67572788f4 /src | |
| parent | c58dab6376d12083c6bdee74c5c94e19252ba59a (diff) | |
| download | emacs-f9a6326d6e0535e6be1f0c98329c0b76992ca29f.tar.gz emacs-f9a6326d6e0535e6be1f0c98329c0b76992ca29f.zip | |
(empty_string): New var.
(syms_of_emacs): Initialize it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 8f4cd6568c8..f79b094f93a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -108,6 +108,9 @@ Lisp_Object Vinstallation_directory; | |||
| 108 | /* Hook run by `kill-emacs' before it does really anything. */ | 108 | /* Hook run by `kill-emacs' before it does really anything. */ |
| 109 | Lisp_Object Vkill_emacs_hook; | 109 | Lisp_Object Vkill_emacs_hook; |
| 110 | 110 | ||
| 111 | /* An empty lisp string. To avoid having to build any other. */ | ||
| 112 | Lisp_Object empty_string; | ||
| 113 | |||
| 111 | #ifdef SIGUSR1 | 114 | #ifdef SIGUSR1 |
| 112 | /* Hooks for signal USR1 and USR2 handing */ | 115 | /* Hooks for signal USR1 and USR2 handing */ |
| 113 | Lisp_Object Vsignal_USR1_hook; | 116 | Lisp_Object Vsignal_USR1_hook; |
| @@ -2208,6 +2211,9 @@ expect to be able to interact with the user. To ask for confirmation,\n\ | |||
| 2208 | see `kill-emacs-query-functions' instead."); | 2211 | see `kill-emacs-query-functions' instead."); |
| 2209 | Vkill_emacs_hook = Qnil; | 2212 | Vkill_emacs_hook = Qnil; |
| 2210 | 2213 | ||
| 2214 | empty_string = build_string (""); | ||
| 2215 | staticpro (&empty_string); | ||
| 2216 | |||
| 2211 | #ifdef SIGUSR1 | 2217 | #ifdef SIGUSR1 |
| 2212 | DEFVAR_LISP ("signal-USR1-hook", &Vsignal_USR1_hook, | 2218 | DEFVAR_LISP ("signal-USR1-hook", &Vsignal_USR1_hook, |
| 2213 | "Hook to be run whenever emacs receives a USR1 signal"); | 2219 | "Hook to be run whenever emacs receives a USR1 signal"); |