From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4473: marked as done (after-load-functions: files are not absolute, some are missed) Date: Fri, 18 Sep 2009 06:30:07 +0000 Message-ID: References: <5hiqfglqgc.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1253255407-20315-0" X-Trace: ger.gmane.org 1253256470 21025 80.91.229.12 (18 Sep 2009 06:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 06:47:50 +0000 (UTC) To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 08:47:44 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoXFu-0002xi-F7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 08:47:43 +0200 Original-Received: from localhost ([127.0.0.1]:42578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoXFt-0005AH-Qo for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 02:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoXFT-0004x1-EL for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 02:47:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoXFN-0004vN-H5 for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 02:47:14 -0400 Original-Received: from [199.232.76.173] (port=59125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoXFM-0004vK-Vl for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 02:47:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60273) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoXFI-0007kX-D1; Fri, 18 Sep 2009 02:47:04 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8I6l1LH022630; Thu, 17 Sep 2009 23:47:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8I6U78L020345; Thu, 17 Sep 2009 23:30:07 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4473 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31204 Archived-At: This is a multi-part message in MIME format... ------------=_1253255407-20315-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 18 Sep 2009 02:25:23 -0400 with message-id <5hiqfglqgc.fsf@fencepost.gnu.org> and subject line Re: bug#4473: after-load-functions: files are not absolute= , some are missed has caused the Emacs bug report #4473, regarding after-load-functions: files are not absolute, some are missed to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4473: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4473 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1253255407-20315-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2009 23:03:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,FVGT_m_MULTI_ODD, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8HN2vUw018447 for ; Thu, 17 Sep 2009 16:02:59 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoQ09-00050u-G3 for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 19:02:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoQ05-000507-0C for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 19:02:56 -0400 Received: from [199.232.76.173] (port=58017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoQ04-000504-Qs for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 19:02:52 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:60403) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoQ04-0007mh-Ch for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 19:02:52 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MoQ03-0000Mt-T7; Thu, 17 Sep 2009 19:02:52 -0400 From: Glenn Morris To: bug-gnu-emacs@gnu.org Subject: after-load-functions: files are not absolute, some are missed X-Spook: EuroFed Khaddafi Audiotel PGP Zachawi White Water ASDIC X-Ran: Lu!B8rGXg3=/`3?SjI$HfBp5c60-P*tZ(MnF2ca[@G6AsU)K4;mXI#5QP'NMr-4-PK*>@^ X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 17 Sep 2009 19:02:51 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) In the current CVS trunk, I found myself having a (slight) need for a list of the dumped lisp files. I thought a simple patch like the following would work, but it has some problems: i) the file names stored are not absolute, though the doc of after-load-functions says they should be. (It's actually better in this case that they are non-absolute, but it conflicts with the doc.) ii) some files are missing. It turns out it is the non-compiled ones loaded after the setting of load-source-file-function. If this is non-nil, looks like Fload returns before running `after-load-functions'? *** loadup.el 15 Sep 2009 03:46:08 -0000 1.184 --- loadup.el 17 Sep 2009 22:57:00 -0000 *************** *** 64,69 **** --- 64,79 ---- ;; implemented in subr.el. (add-hook 'after-load-functions '(lambda (f) (garbage-collect))) + (defvar dumped-lisp-files nil + "List of Lisp files dumped with (i.e., compiled into) this Emacs.") + + (or dumped-lisp-files + (progn + (setq dumped-lisp-files '("subr" "emacs-lisp/backquote" + "emacs-lisp/byte-run")) + (add-hook 'after-load-functions + '(lambda (f) (add-to-list 'dumped-lisp-files f))))) + ;; We specify .el in case someone compiled version.el by mistake. (load "version.el") *************** *** 318,323 **** --- 328,335 ---- (equal (nth 4 command-line-args) "bootstrap")) (setcdr load-path nil)) + (remove-hook 'after-load-functions + '(lambda (f) (add-to-list 'dumped-lisp-files f))) (remove-hook 'after-load-functions '(lambda (f) (garbage-collect))) (setq inhibit-load-charset-map nil) ------------=_1253255407-20315-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4473-done) by emacsbugs.donarmstrong.com; 18 Sep 2009 06:25:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8I6PN3l019874 for <4473-done@emacsbugs.donarmstrong.com>; Thu, 17 Sep 2009 23:25:25 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MoWuJ-0003Ah-6V; Fri, 18 Sep 2009 02:25:23 -0400 From: Glenn Morris To: Juanma Barranquero Cc: 4473-done@emacsbugs.donarmstrong.com Subject: Re: bug#4473: after-load-functions: files are not absolute, some are missed References: X-Spook: keyhole Guantanamo SEAL Team 6 Taiwan Nazi CIDA JSOFC3IP X-Ran: fLY(mw?aE-{\nW[+ch,5.';>* X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 18 Sep 2009 02:25:23 -0400 In-Reply-To: (Juanma Barranquero's message of "Fri, 18 Sep 2009 05:18:17 +0200") Message-ID: <5hiqfglqgc.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juanma Barranquero wrote: > During preloading, the file name recorded is relative to the main Lisp > directory. These file names are converted to absolute at startup. > > So perhaps the docstring of `after-load-functions' should be fixed to > note this discrepancy. Bah, it's a fairly obscure use case, that turns out not to even be necessary in this case. So probably not worth mentioning. Thanks for setting me straight. ------------=_1253255407-20315-0--