# HG changeset patch # User Ken Raeburn # Date 1021881915 0 # Node ID cab84521338858f3dd5cbcc81889f50665c92257 # Parent 89c5ebcbb7fdccd3908ae7c924ff6ad1a138c913 * coding.c (Fread_coding_system, code_convert_region1) (code_convert_string1, code_convert_string_norecord) (Ffind_operation_coding_system): Use SYMBOL_NAME instead of XSYMBOL and name field. diff -r 89c5ebcbb7fd -r cab845213388 src/coding.c --- a/src/coding.c Mon May 20 08:05:09 2002 +0000 +++ b/src/coding.c Mon May 20 08:05:15 2002 +0000 @@ -6170,7 +6170,7 @@ { Lisp_Object val; if (SYMBOLP (default_coding_system)) - XSETSTRING (default_coding_system, XSYMBOL (default_coding_system)->name); + default_coding_system = SYMBOL_NAME (default_coding_system); val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil, Qt, Qnil, Qcoding_system_history, default_coding_system, Qnil); @@ -6506,7 +6506,7 @@ return make_number (to - from); if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) - error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); + error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data); coding.mode |= CODING_MODE_LAST_BLOCK; coding.src_multibyte = coding.dst_multibyte @@ -6561,7 +6561,7 @@ return (NILP (nocopy) ? Fcopy_sequence (string) : string); if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) - error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); + error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data); coding.mode |= CODING_MODE_LAST_BLOCK; string = (encodep @@ -6620,7 +6620,7 @@ return string; if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) - error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); + error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data); coding.composing = COMPOSITION_DISABLED; coding.mode |= CODING_MODE_LAST_BLOCK; @@ -6865,7 +6865,7 @@ error ("Invalid first argument"); if (nargs < 1 + XINT (target_idx)) error ("Too few arguments for operation: %s", - XSYMBOL (operation)->name->data); + XSTRING (SYMBOL_NAME (operation))->data); target = args[XINT (target_idx) + 1]; if (!(STRINGP (target) || (EQ (operation, Qopen_network_stream) && INTEGERP (target))))