# HG changeset patch # User Ken Raeburn # Date 1021882017 0 # Node ID a163bd34b952cd35b1199c30c6873b34d8177720 # Parent 811ea3c0629cd3785ca33044b79385d873c644fe * xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. diff -r 811ea3c0629c -r a163bd34b952 src/xselect.c --- a/src/xselect.c Mon May 20 08:06:52 2002 +0000 +++ b/src/xselect.c Mon May 20 08:06:57 2002 +0000 @@ -200,9 +200,9 @@ #endif if (!SYMBOLP (sym)) abort (); - TRACE1 (" XInternAtom %s", (char *) XSYMBOL (sym)->name->data); + TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data); BLOCK_INPUT; - val = XInternAtom (display, (char *) XSYMBOL (sym)->name->data, False); + val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False); UNBLOCK_INPUT; return val; } @@ -1272,7 +1272,7 @@ if (NILP (XCAR (reading_selection_reply))) error ("Timed out waiting for reply from selection owner"); if (EQ (XCAR (reading_selection_reply), Qlambda)) - error ("No `%s' selection", XSYMBOL (selection_symbol)->name->data); + error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data); /* Otherwise, the selection is waiting for us on the requested property. */ return