From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Last steps for pretesting (true file names in load-history?) Date: Wed, 19 Apr 2006 22:53:19 +0000 (GMT) Message-ID: References: Reply-To: Alan Mackenzie NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1145486966 17408 80.91.229.2 (19 Apr 2006 22:49:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 22:49:26 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 20 00:49:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWLU0-0005Cf-94 for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2006 00:49:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWLTz-0000sx-MT for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 18:49:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWLTo-0000sr-8L for emacs-devel@gnu.org; Wed, 19 Apr 2006 18:49:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWLTn-0000sV-E3 for emacs-devel@gnu.org; Wed, 19 Apr 2006 18:48:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWLTn-0000sS-94 for emacs-devel@gnu.org; Wed, 19 Apr 2006 18:48:59 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWLUy-0002hp-2D; Wed, 19 Apr 2006 18:50:13 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id WAA00355; Wed, 19 Apr 2006 22:53:20 GMT X-Sender: root@acm.acm Original-To: Stefan Monnier In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53111 Archived-At: Evening again, Stefan! On Wed, 19 Apr 2006, Stefan Monnier wrote: >> (iv) A problem in Emacs (See: Subject: Problem mit symlinks, >> locate-library and load-history. Date: Tue, 19 Mar 2006). This is >> caused by (a) load-history storing a promiscuous mix of true file names >> and file names containing symbolic links; (b) eval-after-load only >> recognising files as being already loaded if they're the ones currently >> showing on load-path. I've half-solved this problem by writing a >> function to search load-history properly, which I posted to emacs-devel. >> Richard tentatively approved it. Would it be possible to define >> load-history such that all file names in it are true names? >As mentioned in that thread, I think it's better to "truify" names >on-the-fly when you need it rather than directly inside load-history. I think that's wrong. Every time you evaluate an eval-after-load form, you've got to scan the list of loaded files in load-history. The way you suggest, the names in load-history would need to be "truified" (Hey, that's a lovely word!) many times, once for each eval-after-load. If you "truify" the names as you enter them into load-history, you only need to do it once. However, I think it is urgently necessary to define rigorously what file name goes into load-history. The lack of this rigour is what triggered a bug in CC Mode "File mode specification error: (void-variable c-font-lock-keywords-3)". I think the absolute true file name would be the best. > Stefan -- Alan.