From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Wed, 27 Feb 2013 10:21:31 -0500 Message-ID: References: <87hal05omn.fsf@engster.org> <87wqtv3utc.fsf@engster.org> <87liaa4wp9.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361978505 15842 80.91.229.3 (27 Feb 2013 15:21:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 15:21:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 16:22:09 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 1UAipa-0002ed-U2 for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2013 16:22:07 +0100 Original-Received: from localhost ([::1]:58323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAipF-0003Vg-NS for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2013 10:21:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAip9-0003Uz-Em for emacs-devel@gnu.org; Wed, 27 Feb 2013 10:21:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAip8-0007O6-H2 for emacs-devel@gnu.org; Wed, 27 Feb 2013 10:21:39 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:44308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAip3-0007Mb-6S; Wed, 27 Feb 2013 10:21:33 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r1RFLVK5028297; Wed, 27 Feb 2013 10:21:31 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 991EEB40E2; Wed, 27 Feb 2013 10:21:31 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Wed, 27 Feb 2013 09:28:02 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4505=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4505> : streams <914481> : uri <1356622> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:157435 Archived-At: > In any case, this is not relevant to the question at hand, which aims to > completely side-step find-file when `load'ing a (utf-8) .el file. > Since decoding utf-8 is not in general trivial, that's not a trivial > thing to do. On the other hand, if the default encoding were > utf-8-emacs, that would make it trivial. Maybe in that case > it would be possible to just read the file. Yes, that's what this discussion is about: use the same fast-path as is used for .elc files. Stefan PS: AFAIK, even if it's utf-8-unix, we can read it as utf-8-emacs and have the right answer.