help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Emacs text bug


From: Doug Lewan
Subject: RE: Emacs text bug
Date: Thu, 31 Jan 2013 18:36:51 +0000

> (9) kill-buffer RET foo.org RET
> (10) find-file foo.org RET, sees it's back to raw-text, not utf-8, with
>      characters mangled.

I think that's what you should expect. Once you kill the buffer, emacs forgets 
all about the file that it had held.

Apparently emacs can't figure out that the file is UTF-8. You'll need to 
provide a hint. `-*- coding: utf-8 -*-' in the first line is one way. You'll 
find more in the emacs info page, node `Coding Systems'.

I hope this helps.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

When I do good, I feel good. When I do bad, I feel bad and that's my religion. 
- Abraham Lincoln

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of drain
> Sent: Thursday, 2013 January 31 12:56
> To: address@hidden
> Subject: Re: Emacs text bug
> 
> Still problems.
> 
> (1) revert-buffer-with-coding system RET
> (2) utf-8 RET
> (3) "Revert buffer from file[...]" y RET
> (4) [characters appear as they should now]
> (5) [make change so I can save]
> (6) save-buffer
> (7) "Select coding system (default raw-text)" utf-8
> (8) "wrote buffer [...]"
> (9) kill-buffer RET foo.org RET
> (10) find-file foo.org RET, sees it's back to raw-text, not utf-8, with
>      characters mangled.
> 
> 
> 
> --
> View this message in context: http://emacs.1067599.n5.nabble.com/Emacs-
> text-bug-tp276577p276925.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.




reply via email to

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