[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to overwrite completely a buffer with a file, with overwriting a
Re: How to overwrite completely a buffer with a file, with overwriting also the coding system ?
Sat, 09 May 2009 12:23:00 +0300
> Date: Sat, 09 May 2009 10:01:15 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> In any case, if you call the `find-auto-coding' function right after
> inserting the template, this function will tell you what encoding
> should the buffer use, taking into account the file's name and the
> `coding:' cookie. You can then set the right encoding by calling
Better yet, use `set-auto-coding'. It will call `find-auto-coding'
for you, and return a coding system ready to be used.