emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent iso-8859 unification for some files?


From: Kenichi Handa
Subject: Re: Prevent iso-8859 unification for some files?
Date: Sat, 2 Feb 2002 08:24:19 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

Andreas Schwab <address@hidden> writes:
> IMHO the right way to fix the ucs-table breakage is to use hex escapes
> instead of literal characters, since the file depends on exact codes.  If
> you agree I'll do the necessary changes.

There's an easier solution.  We can make a new coding system
that is same as iso-2022-7bit except for that it explicitly
has a empty translation table.

(let ((table (make-translation-table)))
  (make-coding-system 'iso-2022-7bit-no-trans 2 ?J
   "Same as iso-2022-7bit but suppress any translations."
   '((ascii t) nil nil nil short ascii-eol ascii-cntl seven)
   `((safe-charsets . t)
     (composition . t)
     (translation-table-for-decode . ,table)
     (translation-table-for-encode . ,table))))

Then, we can put this coding system in coding: tag.

---
Ken'ichi HANDA
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]