]> git.eshelyaron.com Git - emacs.git/commitdiff
(latexenc-find-file-coding-system): If both coding-system-for-write and
authorEli Zaretskii <eliz@gnu.org>
Sat, 8 Dec 2007 12:38:46 +0000 (12:38 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Dec 2007 12:38:46 +0000 (12:38 +0000)
buffer-file-coding-system of latex-main-file are nil, use `undecided'.

lisp/international/latexenc.el

index 57013b5953899eb0a9a95a2a9cdf8ada691981cb..cc52eb4cbdfbade5f378ab6c45f5e9cd16f2c088 100644 (file)
@@ -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))