Function: coding-system-change-text-conversion
coding-system-change-text-conversion is a byte-compiled function
defined in mule-cmds.el.gz.
Signature
(coding-system-change-text-conversion CODING-SYSTEM CODING)
Documentation
Return a coding system which differs from CODING-SYSTEM in text conversion.
The returned coding system converts text by CODING but end-of-line as the same way as CODING-SYSTEM. If CODING is nil, the returned coding system detects how text is formatted automatically while decoding.
Probably introduced at or before Emacs version 20.3.
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule-cmds.el.gz
(defun coding-system-change-text-conversion (coding-system coding)
"Return a coding system which differs from CODING-SYSTEM in text conversion.
The returned coding system converts text by CODING
but end-of-line as the same way as CODING-SYSTEM.
If CODING is nil, the returned coding system detects
how text is formatted automatically while decoding."
(let ((eol-type (coding-system-eol-type coding-system)))
(coding-system-change-eol-conversion
(if coding coding 'undecided)
(if (numberp eol-type) (aref [unix dos mac] eol-type)))))