]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
authorKen Raeburn <raeburn@raeburn.org>
Mon, 20 May 2002 08:05:32 +0000 (08:05 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 20 May 2002 08:05:32 +0000 (08:05 +0000)
instead of XSYMBOL and name field.

src/emacs.c

index e83e46af14b45a2935d07599f5f93d193c23423f..4d4e57c522b3bd146f9af6d57eb0580dec7c4af3 100644 (file)
@@ -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 */