From 6a5161bbd18c66f625cbaf4e41b2f8466a7ddb52 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 20 May 2002 08:05:32 +0000 Subject: [PATCH] * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. --- src/emacs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index e83e46af14b..4d4e57c522b 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1975,8 +1975,8 @@ shut_down_emacs (sig, no_x, stuff) #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 */ -- 2.39.5