Mercurial > emacs
changeset 48767:b5d58a537069
Fix properly.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 09 Dec 2002 18:01:21 +0000 |
parents | c413ffa94be5 |
children | 1c5f26ea4cbb |
files | lisp/international/ucs-tables.el |
diffstat | 1 files changed, 8 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/ucs-tables.el Mon Dec 09 15:55:32 2002 +0000 +++ b/lisp/international/ucs-tables.el Mon Dec 09 18:01:21 2002 +0000 @@ -70,18 +70,9 @@ ;; to inconsistent behaviour between CCL-based coding systems which ;; use explicit translation tables and the rest.) -;; Command `ucs-insert' is convenient for inserting a given Unicode. +;; Command `ucs-insert' is convenient for inserting a given unicode. ;; (See also the `ucs' input method.) -;; A replacement CCL program is provided which allows characters in -;; the `ucs-mule-to-mule-unicode' table to be displayed with an -;; iso-10646-encoded font. E.g. to use a `Unicode' font for Cyrillic: -;; -;; (set-fontset-font "fontset-startup" -;; (cons (make-char 'cyrillic-iso8859-5 160) -;; (make-char 'cyrillic-iso8859-5 255)) -;; '(nil . "ISO10646-1")) - ;;; Code: ;;; Define tables, to be populated later. @@ -1226,9 +1217,9 @@ (setq-default translation-table-for-input nil)) (when for-encode - ;; Make mule-utf-* disabled for all characters in - ;; ucs-mule-to-mule-unicode but what originally supported and what - ;; translated bt utf-translation-table-for-decode when + ;; Disable mule-utf-* encoding for all characters in + ;; ucs-mule-to-mule-unicode except what was originally supported + ;; and what is translated by utf-translation-table-for-decode when ;; `utf-fragment-on-decoding' is non-nil. (let ((coding-list '(mule-utf-8 mule-utf-16-be mule-utf-16-le)) (safe (coding-system-get 'mule-utf-8 'safe-chars))) @@ -2444,9 +2435,10 @@ (optimize-char-table encode-translator)) (if (charsetp cs) (push cs safe-charsets) - (setq safe-charsets - (append (delq 'ascii (coding-system-get cs 'safe-charsets)) - safe-charsets))) + (if (coding-system-p cs) + (setq safe-charsets + (append (delq 'ascii (coding-system-get cs 'safe-charsets)) + safe-charsets)))) (cond ((eq cs 'vietnamese-viscii) (coding-system-put 'vietnamese-viscii 'translation-table-for-input