summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-18 05:39:39 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-18 05:39:39 +0000
commitf7511647da564db45f45e1e00cef3a98779d1fcf (patch)
tree789653a7d25f863cad40dd11a286007f9690307f /src/emacs.c
parent9fab67cb3ee44e8384eb6d25bcca43cdb81ce7c5 (diff)
downloademacs-f7511647da564db45f45e1e00cef3a98779d1fcf.tar.gz
emacs-f7511647da564db45f45e1e00cef3a98779d1fcf.tar.bz2
emacs-f7511647da564db45f45e1e00cef3a98779d1fcf.zip
(syms_of_emacs): EMACS_CONFIGURATION renamed from CONFIGURATION.
(shut_down_emacs): Don't call intern.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 42aff9fb9d9..784cf183a66 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -850,7 +850,11 @@ shut_down_emacs (sig, no_x, stuff)
#endif
#ifdef HAVE_X_WINDOWS
- if (!noninteractive && EQ (Vwindow_system, intern ("x")) && ! no_x)
+ /* It's not safe to call intern here. Maybe we are crashing. */
+ if (!noninteractive && SYMBOLP (Vwindow_system)
+ && XSYMBOL (Vwindow_system)->name->size == 1
+ && XSYMBOL (Vwindow_system)->name->data[0] == 'x'
+ && ! no_x)
Fx_close_current_connection ();
#endif /* HAVE_X_WINDOWS */
@@ -1008,7 +1012,7 @@ syms_of_emacs ()
DEFVAR_LISP ("system-configuration", &Vsystem_configuration,
"Value is string indicating configuration Emacs was built for.");
- Vsystem_configuration = build_string (CONFIGURATION);
+ Vsystem_configuration = build_string (EMACS_CONFIGURATION);
DEFVAR_BOOL ("noninteractive", &noninteractive1,
"Non-nil means Emacs is running without interactive terminal.");