changeset 62796:bd02ca99bb04

(ucs-set-table-for-input): If translation-table-for-input of a coding system is a symbol, get its translation-table property.
author Kenichi Handa <handa@m17n.org>
date Fri, 27 May 2005 11:21:36 +0000
parents 9b285ff39db2
children cd4d7a8ee284
files lisp/international/ucs-tables.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/ucs-tables.el	Fri May 27 11:20:16 2005 +0000
+++ b/lisp/international/ucs-tables.el	Fri May 27 11:21:36 2005 +0000
@@ -2517,7 +2517,9 @@
 	(if (and table (symbolp table))
 	    (setq table (get table 'translation-table)))
 	(unless (char-table-p table)
-	  (setq table (coding-system-get cs 'translation-table-for-input)))
+	  (setq table (coding-system-get cs 'translation-table-for-input))
+	  (if (and table (symbolp table))
+	      (setq table (get table 'translation-table))))
 	(when (char-table-p table)
 	  (if buffer
 	      (with-current-buffer buffer