Mercurial > emacs
diff src/emacs.c @ 45399:32cb1788d9cd
* emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
instead of XSYMBOL and name field.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Mon, 20 May 2002 08:05:32 +0000 |
parents | 4209fda9d03f |
children | 7ed1d3a98c77 |
line wrap: on
line diff
--- 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 */