emacs-devel
[Top][All Lists]

 From: Lennart Borgman Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 03:55:23 +0100

On Mon, Feb 25, 2013 at 3:53 AM, Stefan Monnier
>>> So basically, all we need to do is to be able to easily recognize "Elisp
>>> source in utf-8 encoding".  One way to do that would be to use
>>> a BOM-like marker, e.g. start utf-8 Elisp files with "\ufeff" either at
>>> the very beginning of the file or right after a semi-colon (for better
>>> backward compatibility).
>> Why not the normal comment about utf-8?
>
> The "normal comment" can also be at the end of the file, which is not
> an option.  But yes, the "-*- coding: utf-8 -*-" is another option
> (although properly supporting it is kind of a pain, and I'd like to find
> a more discrete solution for the "99% utf-8 future").

Why not assuming it is utf-8? ;-)
Unless there is a "-*- coding: ..." comment.