emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [Bug] Export Coding System


From: Achim Gratz
Subject: Re: [O] [Bug] Export Coding System
Date: Fri, 22 Feb 2013 15:06:47 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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 coding system indicator in the modeline even if it
is not (yet) associated with a file.  That coding system always seems to be the
default coding system as provided by the language environment.

> Anyway, with the same context described above, what's the return value
> for:
> 
>   (detect-coding-string (org-export-as 'latex) t)

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.

I think that the export buffer coding system should be explicitly set (via
buffer-file-coding-system, which is automatically buffer-local) to copy the
coding of the parent buffer (or the coding specified via export options if
anything like that exists) so that the default choice of the language
environment doesn't kick in.


Regards,
Achim.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]