[Top][All Lists]

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

Re: Loading souce Elisp faster

From: Stephen J. Turnbull
Subject: Re: Loading souce Elisp faster
Date: Mon, 25 Feb 2013 13:35:35 +0900

Stefan Monnier writes:
 > > Why not assuming it is utf-8? ;-)
 > > Unless there is a "-*- coding: ..." comment.
 > Hmm... that's very appealing, but what about those Elisp files that have
 > a "coding:" tag at the end of the file?  Or are these so rare it's not
 > worth the trouble to worry about them?

Recognize it -- you're going to read those lines anyway and you need
to recognize the comments at least, and a Boyer-Moore on the last 3000
characters of the file isn't too bad right? -- and either

(1) error, or
(2) warn and reload (too bad for the user if it's not reentrant ;-).

You can also fix up lisp-mode to warn about that, and maybe even make
it annoying to save in anything but utf-8.

reply via email to

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