From d0b22d7de60c793079adabbae643002e3ccaa167 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Dec 2007 12:38:46 +0000 Subject: [PATCH] (latexenc-find-file-coding-system): If both coding-system-for-write and buffer-file-coding-system of latex-main-file are nil, use `undecided'. --- lisp/international/latexenc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.2