[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in international/latexenc.el: latexenc-coding-system-to-inputenc
From: |
Eli Zaretskii |
Subject: |
Re: bug in international/latexenc.el: latexenc-coding-system-to-inputenc |
Date: |
Sat, 08 Dec 2007 14:51:39 +0200 |
> From: Dan Nicolaescu <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Fri, 07 Dec 2007 10:24:51 -0800
>
> My bad (didn't check the results of M-/ properly whey typing this
> message), the call to coding-system-base is from:
> latexenc-find-file-coding-system
>
> The files needed to reproduce this were attached in a message in this
> thread, so you could try this. I don't know enough about coding systems
> to debug this myself.
Please try the patch below. I installed it on the Emacs 22 branch;
with any luck, it will be merged onto trunk by Miles.
2007-12-08 Eli Zaretskii <address@hidden>
* international/latexenc.el (latexenc-find-file-coding-system): If
both coding-system-for-write and buffer-file-coding-system of
latex-main-file are nil, use `undecided'.
Index: lisp/international/latexenc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/latexenc.el,v
retrieving revision 1.18.2.1
retrieving revision 1.18.2.2
diff -u -r1.18.2.1 -r1.18.2.2
--- lisp/international/latexenc.el 25 Jul 2007 06:54:49 -0000 1.18.2.1
+++ lisp/international/latexenc.el 8 Dec 2007 12:38:46 -0000 1.18.2.2
@@ -181,7 +181,8 @@
(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))