Function: nxml-choose-suitable-coding-system
nxml-choose-suitable-coding-system is a byte-compiled function defined
in nxml-mode.el.gz.
Signature
(nxml-choose-suitable-coding-system SUITABLE-CODING-SYSTEMS)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-choose-suitable-coding-system (suitable-coding-systems)
(let (ret coding-system)
(if (and buffer-file-coding-system
(memq (coding-system-base buffer-file-coding-system)
suitable-coding-systems))
buffer-file-coding-system
(while (and suitable-coding-systems (not ret))
(setq coding-system (car suitable-coding-systems))
(if (coding-system-get coding-system 'mime-charset)
(setq ret coding-system)
(setq suitable-coding-systems (cdr suitable-coding-systems))))
ret)))