aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-02-22 13:44:59 +0000
committerEli Zaretskii2002-02-22 13:44:59 +0000
commit73066974211d2f993a7eb43a937a33dbc6045330 (patch)
tree4dfd0c0c2148201275a2fa1aaf72bf3585eac457
parent835cbadb3fa1792c6fb9716b502f7502d018f57b (diff)
downloademacs-73066974211d2f993a7eb43a937a33dbc6045330.tar.gz
emacs-73066974211d2f993a7eb43a937a33dbc6045330.zip
(ctext-no-compositions): New coding system.
(compount-text-no-extensions): Renamed from compound-text. (x-ctext-no-extensions, ctext-no-extensions): Aliases for compound-text-no-extensions. (compound-text): Redefined using post-read and pre-write conversions.
-rw-r--r--lisp/international/mule-conf.el36
1 files changed, 34 insertions, 2 deletions
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index 91fa47642d2..fb615b6bdb9 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -410,8 +410,10 @@ is treated as a character."
410 (composition . t))) 410 (composition . t)))
411 411
412(make-coding-system 412(make-coding-system
413 'compound-text 2 ?x 413 'compound-text-no-extensions 2 ?x
414 "Compound text based generic encoding for decoding unknown messages." 414 "Compound text based generic encoding for decoding unknown messages.
415
416This coding system does not support ICCCM Extended Segments."
415 '((ascii t) (latin-iso8859-1 katakana-jisx0201 t) t t 417 '((ascii t) (latin-iso8859-1 katakana-jisx0201 t) t t
416 nil ascii-eol ascii-cntl nil locking-shift single-shift nil nil nil 418 nil ascii-eol ascii-cntl nil locking-shift single-shift nil nil nil
417 init-bol nil nil) 419 init-bol nil nil)
@@ -419,6 +421,36 @@ is treated as a character."
419 (mime-charset . x-ctext) 421 (mime-charset . x-ctext)
420 (composition . t))) 422 (composition . t)))
421 423
424(define-coding-system-alias
425 'x-ctext-no-extensions 'compound-text-no-extensions)
426(define-coding-system-alias
427 'ctext-no-extensions 'compound-text-no-extensions)
428
429;; Same as compound-text-no-extensions, but doesn't produce composition
430;; escape sequences. Used in post-read and pre-write conversions of
431;; compound-text, see mule.el.
432(make-coding-system
433 'ctext-no-compositions 2 ?x
434 "Compound text based generic encoding for decoding unknown messages.
435
436Like `compound-text-no-extensions', but does not produce escape sequences
437for compositions."
438 '((ascii t) (latin-iso8859-1 katakana-jisx0201 t) t t
439 nil ascii-eol ascii-cntl nil locking-shift single-shift nil nil nil
440 init-bol nil nil)
441 '((safe-charsets . t)
442 (mime-charset . x-ctext)))
443
444(make-coding-system
445 'compound-text 5 ?x
446 "Compound text encoding with ICCCM Extended Segment extensions.
447
448This coding system should be used only for X selections. It is inappropriate
449for decoding and encoding files, process I/O, etc."
450 nil
451 '((post-read-conversion . ctext-post-read-conversion)
452 (pre-write-conversion . ctext-pre-write-conversion)))
453
422(define-coding-system-alias 'x-ctext 'compound-text) 454(define-coding-system-alias 'x-ctext 'compound-text)
423(define-coding-system-alias 'ctext 'compound-text) 455(define-coding-system-alias 'ctext 'compound-text)
424 456