aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c
index be8051ef456..a7b1ce4f71e 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6170,7 +6170,7 @@ If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. */
6170{ 6170{
6171 Lisp_Object val; 6171 Lisp_Object val;
6172 if (SYMBOLP (default_coding_system)) 6172 if (SYMBOLP (default_coding_system))
6173 XSETSTRING (default_coding_system, XSYMBOL (default_coding_system)->name); 6173 default_coding_system = SYMBOL_NAME (default_coding_system);
6174 val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil, 6174 val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil,
6175 Qt, Qnil, Qcoding_system_history, 6175 Qt, Qnil, Qcoding_system_history,
6176 default_coding_system, Qnil); 6176 default_coding_system, Qnil);
@@ -6506,7 +6506,7 @@ code_convert_region1 (start, end, coding_system, encodep)
6506 return make_number (to - from); 6506 return make_number (to - from);
6507 6507
6508 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) 6508 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0)
6509 error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); 6509 error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data);
6510 6510
6511 coding.mode |= CODING_MODE_LAST_BLOCK; 6511 coding.mode |= CODING_MODE_LAST_BLOCK;
6512 coding.src_multibyte = coding.dst_multibyte 6512 coding.src_multibyte = coding.dst_multibyte
@@ -6561,7 +6561,7 @@ code_convert_string1 (string, coding_system, nocopy, encodep)
6561 return (NILP (nocopy) ? Fcopy_sequence (string) : string); 6561 return (NILP (nocopy) ? Fcopy_sequence (string) : string);
6562 6562
6563 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) 6563 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0)
6564 error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); 6564 error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data);
6565 6565
6566 coding.mode |= CODING_MODE_LAST_BLOCK; 6566 coding.mode |= CODING_MODE_LAST_BLOCK;
6567 string = (encodep 6567 string = (encodep
@@ -6620,7 +6620,7 @@ code_convert_string_norecord (string, coding_system, encodep)
6620 return string; 6620 return string;
6621 6621
6622 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) 6622 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0)
6623 error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); 6623 error ("Invalid coding system: %s", XSTRING (SYMBOL_NAME (coding_system))->data);
6624 6624
6625 coding.composing = COMPOSITION_DISABLED; 6625 coding.composing = COMPOSITION_DISABLED;
6626 coding.mode |= CODING_MODE_LAST_BLOCK; 6626 coding.mode |= CODING_MODE_LAST_BLOCK;
@@ -6865,7 +6865,7 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS ...) */)
6865 error ("Invalid first argument"); 6865 error ("Invalid first argument");
6866 if (nargs < 1 + XINT (target_idx)) 6866 if (nargs < 1 + XINT (target_idx))
6867 error ("Too few arguments for operation: %s", 6867 error ("Too few arguments for operation: %s",
6868 XSYMBOL (operation)->name->data); 6868 XSTRING (SYMBOL_NAME (operation))->data);
6869 target = args[XINT (target_idx) + 1]; 6869 target = args[XINT (target_idx) + 1];
6870 if (!(STRINGP (target) 6870 if (!(STRINGP (target)
6871 || (EQ (operation, Qopen_network_stream) && INTEGERP (target)))) 6871 || (EQ (operation, Qopen_network_stream) && INTEGERP (target))))