aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/mule-conf.el74
1 files changed, 36 insertions, 38 deletions
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index ee14a592d88..442232105a6 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -216,12 +216,16 @@
216 216
217(put 'undecided-unix 'coding-system 'undecided) 217(put 'undecided-unix 'coding-system 'undecided)
218(put 'undecided-unix 'eol-type 0) 218(put 'undecided-unix 'eol-type 0)
219(put 'undecided-unix 'eol-variant t)
219(put 'undecided-dos 'coding-system 'undecided) 220(put 'undecided-dos 'coding-system 'undecided)
220(put 'undecided-dos 'eol-type 1) 221(put 'undecided-dos 'eol-type 1)
222(put 'undecided-dos 'eol-variant t)
221(put 'undecided-mac 'coding-system 'undecided) 223(put 'undecided-mac 'coding-system 'undecided)
222(put 'undecided-mac 'eol-type 2) 224(put 'undecided-mac 'eol-type 2)
225(put 'undecided-mac 'eol-variant t)
223(put 'undecided 'coding-system 226(put 'undecided 'coding-system
224 (vector t ?+ "Detect coding-system automatically" nil nil)) 227 (vector t ?+ "No conversion on encoding, automatic conversion on decoding"
228 nil nil))
225(put 'undecided 'eol-type 229(put 'undecided 'eol-type
226 (vector 'undecided-unix 230 (vector 'undecided-unix
227 'undecided-dos 231 'undecided-dos
@@ -231,22 +235,30 @@
231 235
232(make-coding-system 236(make-coding-system
233 'emacs-mule 0 ?= 237 'emacs-mule 0 ?=
234 "Internal coding system used in a buffer.") 238 "Emacs internal format used in buffer and string")
235 239
236(make-coding-system 240(make-coding-system
237 'iso-2022-7 2 ?J 241 'iso-2022-7bit 2 ?J
238 "Coding system based on ISO2022 7-bit encoding." 242 "ISO 2022 based 7-bit encoding using only G0"
239 '((ascii t) nil nil nil 243 '((ascii t) nil nil nil
240 short ascii-eol ascii-cntl seven)) 244 short ascii-eol ascii-cntl seven))
241 245
242(make-coding-system 246(make-coding-system
243 'iso-2022-int-1 2 ?I 247 'iso-2022-7bit-ss2 2 ?<
244 "ISO-2022-INT-1" 248 "ISO 2022 based 7-bit encoding using SS2 for 96-charset"
245 '((ascii t) (korean-ksc5601 t) nil nil 249 '((ascii t) nil t nil
246 short ascii-eol ascii-cntl seven locking-shift)) 250 short ascii-eol ascii-cntl seven nil single-shift))
251
252(make-coding-system
253 'iso-2022-7bit-lock 2 ?>
254 "ISO-2022 coding system using Locking-Shift for 96-charset"
255 '((ascii t) t nil nil
256 nil ascii-eol ascii-cntl locking-shift))
257
258(define-coding-system-alias 'iso-2022-7bit-lock 'iso-2022-int-1)
247 259
248(make-coding-system 260(make-coding-system
249 'iso-2022-cjk 2 ?I 261 'iso-2022-7bit-lock-ss2 2 ?i
250 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN" 262 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN"
251 '((ascii t) 263 '((ascii t)
252 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 t) 264 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 t)
@@ -256,39 +268,25 @@
256 short ascii-eol ascii-cntl seven locking-shift single-shift nil nil nil 268 short ascii-eol ascii-cntl seven locking-shift single-shift nil nil nil
257 init-bol)) 269 init-bol))
258 270
259(make-coding-system 271(define-coding-system-alias 'iso-2022-7bit-lock-ss2 'iso-2022-cjk)
260 'iso-2022-ss2-8 2 ?I
261 "ISO-2022 coding system using SS2 for 96-charset in 8-bit code."
262 '((ascii t) nil t nil
263 nil ascii-eol ascii-cntl nil nil single-shift))
264 272
265(make-coding-system 273(make-coding-system
266 'iso-2022-ss2-7 2 ?I 274 'iso-2022-8bit-ss2 2 ?@
267 "ISO-2022 coding system using SS2 for 96-charset in 7-bit code." 275 "ISO 2022 based 8-bit encoding using SS2 for 96-charset"
268 '((ascii t) nil t nil 276 '((ascii t) nil t nil
269 short ascii-eol ascii-cntl seven nil single-shift)) 277 nil ascii-eol ascii-cntl nil nil single-shift))
270
271(make-coding-system
272 'iso-2022-lock 2 ?i
273 "ISO-2022 coding system using Locking-Shift for 96-charset."
274 '((ascii t) t nil nil
275 nil ascii-eol ascii-cntl locking-shift))
276 278
277;; The other coding-systems are defined in each language specific 279;; The other coding-systems are defined in each language specific
278;; section of languages.el. 280;; section of languages.el.
279 281
280;; Setting coding system 'undecided for reading any files. Though, 282;; Setting coding system `undecided' for reading any files. Though,
281;; compiled Emacs Lisp files (*.elc) should never be decoded nor 283;; compiled Emacs Lisp files (*.elc) should never be decoded nor
282;; encoded. 284;; encoded.
283 285
284(setq coding-system-alist 286(setq file-coding-system-alist
285 '((insert-file-contents 287 '(("\\.elc$" . (no-conversion . no-conversion))
286 ("\\.elc$" . (no-conversion . nil)) 288 ("loaddefs.el$" . (no-conversion . no-conversion))
287 ("loaddefs.el$" . (no-conversion . nil)) 289 ("" . (undecided . nil))))
288 ("" . (undecided . nil)))
289 (write-region
290 ("\\.elc$" . (nil . no-conversion))
291 ("loaddefs.el$" . (nil . no-conversion)))))
292 290
293 291
294;;; Setting coding categories and their priorities. 292;;; Setting coding categories and their priorities.
@@ -299,12 +297,12 @@
299;; language environment. 297;; language environment.
300 298
301(setq coding-category-emacs-mule 'emacs-mule 299(setq coding-category-emacs-mule 'emacs-mule
302 coding-category-sjis 'sjis 300 coding-category-sjis 'japanese-shift-jis
303 coding-category-iso-7 'iso-2022-7 301 coding-category-iso-7 'iso-2022-7bit
304 coding-category-iso-8-1 'iso-8859-1 302 coding-category-iso-8-1 'iso-latin-1
305 coding-category-iso-8-2 'iso-8859-1 303 coding-category-iso-8-2 'iso-latin-1
306 coding-category-iso-else 'iso-2022-lock 304 coding-category-iso-else 'iso-2022-7bit-lock
307 coding-category-big5 'big5 305 coding-category-big5 'chinese-big5
308 coding-category-binary 'no-conversion) 306 coding-category-binary 'no-conversion)
309 307
310(set-coding-priority 308(set-coding-priority