comparison src/coding.c @ 30674:9aad40936cfe

*coding.c (find_safe_codings): CHAR_TABLE_SET index must be a lisp object. (Ffind_coding_systems_region_internal): First argument to Fappend must be an integer, not a lisp object.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 08 Aug 2000 14:34:05 +0000
parents 6c7a9202a815
children b72c2759ac70
comparison
equal deleted inserted replaced
30673:22c794dd4d60 30674:9aad40936cfe
5621 val = char_table_ref_and_index (work_table, c, &idx); 5621 val = char_table_ref_and_index (work_table, c, &idx);
5622 if (EQ (val, Qt)) 5622 if (EQ (val, Qt))
5623 /* This element was already checked. Ignore it. */ 5623 /* This element was already checked. Ignore it. */
5624 continue; 5624 continue;
5625 /* Remember that we checked this element. */ 5625 /* Remember that we checked this element. */
5626 CHAR_TABLE_SET (work_table, idx, Qt); 5626 CHAR_TABLE_SET (work_table, make_number (idx), Qt);
5627 5627
5628 /* If there are some safe coding systems for C and we have 5628 /* If there are some safe coding systems for C and we have
5629 already found the other set of coding systems for the 5629 already found the other set of coding systems for the
5630 different characters, get the intersection of them. */ 5630 different characters, get the intersection of them. */
5631 if (!EQ (safe_codings, Qt) && !NILP (val)) 5631 if (!EQ (safe_codings, Qt) && !NILP (val))
5711 /* Append generic coding systems. */ 5711 /* Append generic coding systems. */
5712 Lisp_Object args[2]; 5712 Lisp_Object args[2];
5713 args[0] = safe_codings; 5713 args[0] = safe_codings;
5714 args[1] = Fchar_table_extra_slot (Vchar_coding_system_table, 5714 args[1] = Fchar_table_extra_slot (Vchar_coding_system_table,
5715 make_number (0)); 5715 make_number (0));
5716 safe_codings = Fappend (make_number (2), args); 5716 safe_codings = Fappend (2, args);
5717 } 5717 }
5718 else 5718 else
5719 safe_codings = Fcons (Qraw_text, Fcons (Qemacs_mule, safe_codings)); 5719 safe_codings = Fcons (Qraw_text, Fcons (Qemacs_mule, safe_codings));
5720 return safe_codings; 5720 return safe_codings;
5721 } 5721 }