]> git.eshelyaron.com Git - emacs.git/commitdiff
(ucs-set-table-for-input): If
authorKenichi Handa <handa@m17n.org>
Wed, 24 Dec 2003 02:09:40 +0000 (02:09 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 24 Dec 2003 02:09:40 +0000 (02:09 +0000)
translation-table-for-encode is a symbol, get its
translation-table property.

lisp/international/ucs-tables.el

index d91a4b9fbf29aecfb92569455cb461f4c4e57d51..476c8dfc19116516d0f49984ba14fd266cc9da96 100644 (file)
@@ -2507,6 +2507,8 @@ BUFFER defaults to the current buffer."
                     (coding-system-base default-buffer-file-coding-system))))
       (when cs
        (setq table (coding-system-get cs 'translation-table-for-encode))
+       (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)))
        (when (char-table-p table)