Function: detect-coding-with-language-environment

detect-coding-with-language-environment is an autoloaded and byte-compiled function defined in mule-util.el.gz.

Signature

(detect-coding-with-language-environment FROM TO LANG-ENV)

Documentation

Detect a coding system for the text between FROM and TO with LANG-ENV.

The detection takes into account the coding system priorities for the language environment LANG-ENV.

Probably introduced at or before Emacs version 20.3.

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule-util.el.gz
;;;###autoload
(defun detect-coding-with-language-environment (from to lang-env)
  "Detect a coding system for the text between FROM and TO with LANG-ENV.
The detection takes into account the coding system priorities for the
language environment LANG-ENV."
  (let ((coding-priority (get-language-info lang-env 'coding-priority)))
    (if coding-priority
	(with-coding-priority coding-priority
          (detect-coding-region from to)))))