Commit 6a5161bb authored by Ken Raeburn's avatar Ken Raeburn

* emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING

instead of XSYMBOL and name field.
parent f6620ee2
...@@ -1975,8 +1975,8 @@ shut_down_emacs (sig, no_x, stuff) ...@@ -1975,8 +1975,8 @@ shut_down_emacs (sig, no_x, stuff)
#ifdef HAVE_X_WINDOWS #ifdef HAVE_X_WINDOWS
/* It's not safe to call intern here. Maybe we are crashing. */ /* It's not safe to call intern here. Maybe we are crashing. */
if (!noninteractive && SYMBOLP (Vwindow_system) if (!noninteractive && SYMBOLP (Vwindow_system)
&& XSYMBOL (Vwindow_system)->name->size == 1 && XSTRING (SYMBOL_NAME (Vwindow_system))->size == 1
&& XSYMBOL (Vwindow_system)->name->data[0] == 'x' && XSTRING (SYMBOL_NAME (Vwindow_system))->data[0] == 'x'
&& ! no_x) && ! no_x)
Fx_close_current_connection (); Fx_close_current_connection ();
#endif /* HAVE_X_WINDOWS */ #endif /* HAVE_X_WINDOWS */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment