From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 13:35:35 +0900 Message-ID: <87vc9h2ep4.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1361766953 13109 80.91.229.3 (25 Feb 2013 04:35:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 04:35:53 +0000 (UTC) Cc: Lennart Borgman , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 05:36:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U9pnR-00083V-Cu for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 05:36:13 +0100 Original-Received: from localhost ([::1]:57270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pn6-0004A8-Nu for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2013 23:35:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pn2-00042B-Ir for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:35:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9pmz-0001eo-UX for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:35:48 -0500 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:41126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pmz-0001ct-CY for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:35:45 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 0B9B03FA08BF; Mon, 25 Feb 2013 13:35:36 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 27DDE1A27AE; Mon, 25 Feb 2013 13:35:36 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta32) "habanero" b0d40183ac79 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.223 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157305 Archived-At: 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.