From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 08:24:27 +0100 Organization: Linux Private Site Message-ID: <87obf8zwic.fsf@Rainer.invalid> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361777089 23660 80.91.229.3 (25 Feb 2013 07:24:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 07:24:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 08:25:12 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 1U9sQv-0000H9-Nm for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 08:25:09 +0100 Original-Received: from localhost ([::1]:33534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9sQa-0007vI-VX for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 02:24:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9sQX-0007v5-HY for emacs-devel@gnu.org; Mon, 25 Feb 2013 02:24:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9sQW-0000XG-98 for emacs-devel@gnu.org; Mon, 25 Feb 2013 02:24:45 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:51595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9sQW-0000X8-2P for emacs-devel@gnu.org; Mon, 25 Feb 2013 02:24:44 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U9sQo-00009D-He for emacs-devel@gnu.org; Mon, 25 Feb 2013 08:25:02 +0100 Original-Received: from pd9eb5ae9.dip.t-dialin.net ([217.235.90.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 08:25:02 +0100 Original-Received: from Stromeko by pd9eb5ae9.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 08:25:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb5ae9.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.93 (gnu/linux) Cancel-Lock: sha1:P0QoF9DQ3S2Hwmjmi2T8w8jVP4U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:157312 Archived-At: Stefan Monnier writes: > For source files in utf-8 encoding this does not need to be the case: we > could load them without going through load-with-code-conversion. > And given that utf-8 should be the standard encoding for Elisp files > (if not quite now, surely in some not too distant future), this is an > important case. > > 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). There's always the option to introduce a new suffix ".el8" to indicate that the file _must_ be UTF-8, which saves you the bother of checking. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds