Hi,

On Thu 28 May 2009 16:37, l...@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wi...@pobox.com> writes:
>
>> This is complicated in Guile by #!. A reasonable thing would be to have
>> the reader have a bit on whether it actually saw an expression yet or
>> not. If not, "^;+ [^\n]*coding: ..." would set the file's encoding.
>
> I think it would make sense to follow Emacs' specification of file-local
> variables as closely as possible (info "(emacs) Specifying File
> Variables"), as well as its naming scheme for encodings as shown by
> `M-x list-coding-systems'.

Good points. Although, I wonder how emacs does the right thing regarding
coding: if the variable list is at the end of a file. But certainly
recognizing it in the first two lines of the file would be robust and
follow emacs.

Andy
-- 
http://wingolog.org/


Reply via email to