From: Eli Zaretskii Date: Sat, 8 Dec 2007 12:38:46 +0000 (+0000) Subject: (latexenc-find-file-coding-system): If both coding-system-for-write and X-Git-Tag: emacs-pretest-22.1.90~282 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0b22d7de60c793079adabbae643002e3ccaa167;p=emacs.git (latexenc-find-file-coding-system): If both coding-system-for-write and buffer-file-coding-system of latex-main-file are nil, use `undecided'. --- diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index 57013b59538..cc52eb4cbdf 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el @@ -181,7 +181,8 @@ coding system names is determined from `latex-inputenc-coding-alist'." (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of the CS. (with-current-buffer latexenc-main-buffer - (or coding-system-for-write buffer-file-coding-system)))) + (or coding-system-for-write buffer-file-coding-system + 'undecided)))) 'undecided)))) 'undecided))