Function: merge-coding-systems
merge-coding-systems is a byte-compiled function defined in
mule.el.gz.
Signature
(merge-coding-systems FIRST SECOND)
Documentation
Fill in any unspecified aspects of coding system FIRST from SECOND.
Return the resulting coding system.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule.el.gz
(defun merge-coding-systems (first second)
"Fill in any unspecified aspects of coding system FIRST from SECOND.
Return the resulting coding system."
(let ((base (coding-system-base second))
(eol (coding-system-eol-type second)))
;; If FIRST doesn't specify text conversion, merge with that of SECOND.
(if (eq (coding-system-base first) 'undecided)
(setq first (coding-system-change-text-conversion first base)))
;; If FIRST doesn't specify eol conversion, merge with that of SECOND.
(if (and (vectorp (coding-system-eol-type first))
(numberp eol) (>= eol 0) (<= eol 2))
(setq first (coding-system-change-eol-conversion
first eol)))
first))