comparison src/coding.c @ 103306:3680b4fe0f79

* coding.c (get_translation_table): Check Venable_character_translation.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 04 Jun 2009 01:06:04 +0000
parents 2f7395806731
children 45564d023acc
comparison
equal deleted inserted replaced
103305:ba9d933971ca 103306:3680b4fe0f79
6621 int encodep, *max_lookup; 6621 int encodep, *max_lookup;
6622 { 6622 {
6623 Lisp_Object standard, translation_table; 6623 Lisp_Object standard, translation_table;
6624 Lisp_Object val; 6624 Lisp_Object val;
6625 6625
6626 if (NILP (Venable_character_translation))
6627 {
6628 if (max_lookup)
6629 *max_lookup = 0;
6630 return Qnil;
6631 }
6626 if (encodep) 6632 if (encodep)
6627 translation_table = CODING_ATTR_ENCODE_TBL (attrs), 6633 translation_table = CODING_ATTR_ENCODE_TBL (attrs),
6628 standard = Vstandard_translation_table_for_encode; 6634 standard = Vstandard_translation_table_for_encode;
6629 else 6635 else
6630 translation_table = CODING_ATTR_DECODE_TBL (attrs), 6636 translation_table = CODING_ATTR_DECODE_TBL (attrs),