Function: latexenc-coding-system-to-inputenc

latexenc-coding-system-to-inputenc is an autoloaded and byte-compiled function defined in latexenc.el.gz.

Signature

(latexenc-coding-system-to-inputenc CS)

Documentation

Return the corresponding input encoding for the specified coding system.

Return nil if no matching input encoding can be found.

Source Code

;; Defined in /usr/src/emacs/lisp/international/latexenc.el.gz
;;;###autoload
(defun latexenc-coding-system-to-inputenc (cs)
  "Return the corresponding input encoding for the specified coding system.
Return nil if no matching input encoding can be found."
  (let (result)
    (catch 'result
      (dolist (elem latex-inputenc-coding-alist result)
	(let ((elem-cs (cdr elem)))
	  (when (and (coding-system-p elem-cs)
		     (coding-system-p cs)
		     (eq (coding-system-base cs) (coding-system-base elem-cs)))
	    (setq result (car elem))
	    (throw 'result result)))))))