Re: [O] [org-e-latex] Coding System

2012-11-22 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: I looked at the code/documentation and it seems the intention is to do the reverse lookup, that is look at the buffer encoding and decide what to give inputenc as argument (when it is specified as AUTO in the header template). I maintain that the

Re: [O] [org-e-latex] Coding System

2012-11-22 Thread Achim Gratz
Nicolas Goaziou writes: Anyway, if you think it's useful to provide a patch, I suggest to dynamically bind `org-export-coding-system' in `org-e-latex-export-to-latex' before `org-export-to-file' is called. You'll have to open outfile in order to apply `latexenc-find-file-coding-system'.

Re: [O] [org-e-latex] Coding System

2012-11-22 Thread Thomas S. Dye
Aloha Achim, Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Anyway, if you think it's useful to provide a patch, I suggest to dynamically bind `org-export-coding-system' in `org-e-latex-export-to-latex' before `org-export-to-file' is called. You'll have to open outfile in

Re: [O] [org-e-latex] Coding System

2012-11-22 Thread Achim Gratz
Thomas S. Dye writes: I don't follow the details of this discussion, but I wonder how important AUTO really is? I'm afraid I can't follow you… AFAIK, specifying AUTO in the LaTeX header is supposed to be replaced by whatever the coding system of the LaTeX buffer happens to be when it gets

Re: [O] [org-e-latex] Coding System

2012-11-22 Thread Thomas S. Dye
Achim Gratz strom...@nexgo.de writes: Thomas S. Dye writes: I don't follow the details of this discussion, but I wonder how important AUTO really is? I'm afraid I can't follow you… AFAIK, specifying AUTO in the LaTeX header is supposed to be replaced by whatever the coding system of the

Re: [O] [org-e-latex] Coding System

2012-11-19 Thread Suvayu Ali
On Mon, Nov 19, 2012 at 07:28:30AM +, Achim Gratz wrote: When the new exporter produces a TeX file that contains unicode characters, Emacs tries to save this file with coding systems `undecided-unix´ and `iso-latin1-unix´, both of which don't work of course (and the latter would likely be

Re: [O] [org-e-latex] Coding System

2012-11-19 Thread Achim Gratz
Suvayu Ali writes: On Mon, Nov 19, 2012 at 07:28:30AM +, Achim Gratz wrote: This is not an answer to the issue above; but if you are using utf-8, should you not already be having something like this in your init file? (prefer-coding-system 'utf-8) This should circumvent the problem.

Re: [O] [org-e-latex] Coding System

2012-11-19 Thread Achim Gratz
I looked at the code/documentation and it seems the intention is to do the reverse lookup, that is look at the buffer encoding and decide what to give inputenc as argument (when it is specified as AUTO in the header template). I maintain that the other way around (looking at the header template

[O] [org-e-latex] Coding System

2012-11-18 Thread Achim Gratz
When the new exporter produces a TeX file that contains unicode characters, Emacs tries to save this file with coding systems `undecided-unix´ and `iso-latin1-unix´, both of which don't work of course (and the latter would likely be wrong for some characters). While it should be possible to