bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] Re: 11.81; *output* buffer is set to UTF-8


From: David Kastrup
Subject: Re: [Bug-AUCTeX] Re: 11.81; *output* buffer is set to UTF-8
Date: Tue, 30 Jan 2007 09:56:23 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Pofahl <address@hidden> writes:

> David Kastrup <dak <at> gnu.org> writes: 
>  
>>  
>> Peter Dyballa <Peter_Dyballa <at> Web.DE> writes: 
>>  
>> > Am 06.11.2005 um 10:09 schrieb David Kastrup: 
>> > 
>> >> The question is whether the _characters_ appearing in the buffer are 
>> >> what you would have expected. 
>> >> 
>> > 
>> > There are few problems before answering this ... 
>> > 
>> > I need a mathematical environment with ö or ä -- an ü would do it too, 
>> > I presume. Or an ß instead of β? Well, I have no idea whether this 
>> > nonsense is supported by TeX. 
> I had also the problem with the wrong saving of the file, 
> this is what I wrote into my init.el: 
>  
> ------------------------------------------------------------------------- 
> ;;; tell (x)-emacs what coding-system it should use under `LaTeX-mode':  
> (add-hook 'LaTeX-mode-hook 
>         (lambda() 
>            (set-buffer-file-coding-system 'raw-text) 
>          ;(setq coding-system-for-read 'raw-text) 
>          ;(setq buffer-file-coding-system-for-read 'raw-text) 
>          ;(setq file-coding-system-alist 'raw-text) 
>            (setq file-coding-system-alist  
>               (cons '("\\.\\(?:tex\\)\\'" . raw-text) 
> 'process-coding-system-alist)) 
>            )) 
> ------------------------------------------------------------------------- 

I have rarely seen any advice more disastrously wrong.

First you set the `file-coding-system-alist' in `LaTeX-mode-hook': at
this point of time, one file using LaTeX-mode has already been loaded.
Then you destroy the variable  `file-coding-system-alist' completely
(and globally) every time LaTeX-mode is entered with a nonsensical
setting concocted from the nonsensical coding system `raw-text' for
TeX files, and what likely was supposed to be the contents of the
completely unrelated `process-coding-system-alist', but actually
amounts to the symbol, rather, making `file-coding-system-alist'
contain an invalid value.

And then you set the buffer file coding system to 'raw-text', too.
`raw-text' is a unibyte format for byte streams that are not
interpreted as characters.

In civilized countries with active Emacs worship, actions like this
could cause an ostracism, and indeed this would explain why it took
you more than a year to read this report and reply to it.

Just for the record: what version of Emacs/XEmacs were you trying to
butcher into submission in this manner?  XEmacs 21.4 nomule?  Because
that is pretty much the only system I can think of where the
consequences might not lead to disaster rather soon and obviously.

-- 
David Kastrup




reply via email to

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