[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.
- Loading souce Elisp faster, Stefan Monnier, 2013/02/24
- Re: Loading souce Elisp faster, Lennart Borgman, 2013/02/24
- Re: Loading souce Elisp faster, Stefan Monnier, 2013/02/24
- Re: Loading souce Elisp faster, Lennart Borgman, 2013/02/24
- Re: Loading souce Elisp faster, Stefan Monnier, 2013/02/24
- Re: Loading souce Elisp faster,
Stephen J. Turnbull <=
- Re: Loading souce Elisp faster, Stefan Monnier, 2013/02/24
- Re: Loading souce Elisp faster, Paul Eggert, 2013/02/25
- Re: Loading souce Elisp faster, Xue Fuqiao, 2013/02/25
- Re: Loading souce Elisp faster, Eli Zaretskii, 2013/02/25
- Re: Loading souce Elisp faster, Paul Eggert, 2013/02/25
- Re: Loading souce Elisp faster, Werner LEMBERG, 2013/02/26
- Re: Loading souce Elisp faster, Andreas Schwab, 2013/02/26
- Re: Loading souce Elisp faster, Leo Liu, 2013/02/25
- Re: Loading souce Elisp faster, Ted Zlatanov, 2013/02/25
- Re: Loading souce Elisp faster, Kenichi Handa, 2013/02/26