Re: [O] [Bug] Export Coding System

2013-02-27 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: Achim Gratz writes: I've just had a chance to test this on the system where the problem originally showed up (Cygwin with the current 24.3 pre-release). On this system, the buffer-file-coding-system is not copied and the (wrong) default takes

Re: [O] [Bug] Export Coding System

2013-02-26 Thread Achim Gratz
Nicolas Goaziou n.goaziou at gmail.com writes: Does the following patch fix the problem? I've just had a chance to test this on the system where the problem originally showed up (Cygwin with the current 24.3 pre-release). On this system, the buffer-file-coding-system is not copied and the

Re: [O] [Bug] Export Coding System

2013-02-26 Thread Achim Gratz
Achim Gratz writes: I've just had a chance to test this on the system where the problem originally showed up (Cygwin with the current 24.3 pre-release). On this system, the buffer-file-coding-system is not copied and the (wrong) default takes over again. I'm puzzled, I can't see how this

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Achim Gratz
Nicolas Goaziou writes: No it is not irrelevant, it simply gets set too late in the game: it asks for the new coding system when it is time to save the buffer, while the content of the buffer has been cobbled together while assuming a different coding system. The only way I know (from

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: It doesn't fix the problem when I want to export the file in a different encoding (for instance by customizing Org Export Latex Coding System), that would require a second step of re-setting the buffer-file-coding-system before using it to determine what

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Achim Gratz
Nicolas Goaziou writes: Would the following patch work? Not for LaTeX export AFAICS, ox-latex doesn't seem to use org-export-coding-system. But that'd arguably be a bug in ox-latex, then (more specifically org-latex-guess-inputenc), which is easily fixed after that patch has been applied.

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Would the following patch work? Not for LaTeX export AFAICS, ox-latex doesn't seem to use org-export-coding-system. But that'd arguably be a bug in ox-latex, then (more specifically org-latex-guess-inputenc), I don't understand

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Achim Gratz
Nicolas Goaziou writes: Not for LaTeX export AFAICS, ox-latex doesn't seem to use org-export-coding-system. But that'd arguably be a bug in ox-latex, then (more specifically org-latex-guess-inputenc), I don't understand your answer. My default coding system is utf-8 and inputenc option is

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Introducing and using a defcustom specifically for LaTeX export (if anything at all). I don't think it is really important, considering you can also bind it buffer-wise. On the other hand, a back-end independent variable is much more easy to handle. Now

Re: [O] [Bug] Export Coding System

2013-02-23 Thread Achim Gratz
Nicolas Goaziou writes: Now I'll have to go and see what twisted ways it takes for the old exporter defcustoms to show up in customize, they shouldn't have been there at all. As I explained in my announcement for new export framework, this is due to customize autoloads from bundled Org

[O] [Bug] Export Coding System

2013-02-22 Thread Achim Gratz
I've ran into this before, but I guess I wasn't able to clearly explain what the issue was at the time... so let's try again. I'm exporting an Org file in UTF-8 to LaTeX. Unless I switch the coding system in Emacs from default to UTF-8 (which has the side effect that any new buffer will have

Re: [O] [Bug] Export Coding System

2013-02-22 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: I'm exporting an Org file in UTF-8 to LaTeX. Unless I switch the coding system in Emacs from default to UTF-8 (which has the side effect that any new buffer will have UTF-8 coding, which is usually not what I want), the LaTeX buffer gets

Re: [O] [Bug] Export Coding System

2013-02-22 Thread Achim Gratz
Nicolas Goaziou n.goaziou at gmail.com writes: IIUC, there is no such thing as a coding system associated to a buffer. A coding system only kicks in when doing some I/O operation. The coding system should be associated with the file the buffer is visiting, but a fresh buffer still shows a

Re: [O] [Bug] Export Coding System

2013-02-22 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou n.goaziou at gmail.com writes: IIUC, there is no such thing as a coding system associated to a buffer. A coding system only kicks in when doing some I/O operation. The coding system should be associated with the file the buffer is

Re: [O] [Bug] Export Coding System

2013-02-22 Thread Achim Gratz
Nicolas Goaziou writes: Depends on what language environment is set to, but with the default setting of my Emacs (German) it becomes iso-latin-1, independently of what the coding system in the original Org buffer was. In this case, it should be `utf-8', shouldn't it? I want it to be utf-8,

Re: [O] [Bug] Export Coding System

2013-02-22 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Depends on what language environment is set to, but with the default setting of my Emacs (German) it becomes iso-latin-1, independently of what the coding system in the original Org buffer was. In this case, it should be