# HG changeset patch # User Ken Raeburn # Date 1021881932 0 # Node ID 32cb1788d9cd8b74f8c479818364660c5280b449 # Parent 1a623890a4871fdab2be712aee23dc100ed38f1c * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. diff -r 1a623890a487 -r 32cb1788d9cd src/emacs.c --- a/src/emacs.c Mon May 20 08:05:26 2002 +0000 +++ b/src/emacs.c Mon May 20 08:05:32 2002 +0000 @@ -1975,8 +1975,8 @@ #ifdef HAVE_X_WINDOWS /* 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' + && XSTRING (SYMBOL_NAME (Vwindow_system))->size == 1 + && XSTRING (SYMBOL_NAME (Vwindow_system))->data[0] == 'x' && ! no_x) Fx_close_current_connection (); #endif /* HAVE_X_WINDOWS */