From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#4473: after-load-functions: files are not absolute, some are missed Date: Fri, 18 Sep 2009 02:11:50 +0200 Message-ID: References: Reply-To: Juanma Barranquero , 4473@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1253233665 18466 80.91.229.12 (18 Sep 2009 00:27:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 00:27:45 +0000 (UTC) Cc: 4473@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 02:27:38 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 1MoRK5-0000DP-2D for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 02:27:37 +0200 Original-Received: from localhost ([127.0.0.1]:56956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoRK3-00017o-N1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 20:27:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoRJp-0000zV-Mb for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 20:27:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoRJb-0000um-3U for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 20:27:12 -0400 Original-Received: from [199.232.76.173] (port=48394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoRJZ-0000ui-JC for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 20:27:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43228) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoRJY-0006si-ML for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 20:27:05 -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 n8I0R1e6031605; Thu, 17 Sep 2009 17:27:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8I0K3h7030584; Thu, 17 Sep 2009 17:20:03 -0700 Resent-Date: Thu, 17 Sep 2009 17:20:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juanma Barranquero Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 18 Sep 2009 00:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4473 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4473-submit@emacsbugs.donarmstrong.com id=B4473.125323273829786 (code B ref 4473); Fri, 18 Sep 2009 00:20:03 +0000 Original-Received: (at 4473) by emacsbugs.donarmstrong.com; 18 Sep 2009 00:12:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-fx0-f213.google.com (mail-fx0-f213.google.com [209.85.220.213]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8I0CGQr029524 for <4473@emacsbugs.donarmstrong.com>; Thu, 17 Sep 2009 17:12:17 -0700 Original-Received: by fxm9 with SMTP id 9so469418fxm.1 for <4473@emacsbugs.donarmstrong.com>; Thu, 17 Sep 2009 17:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=8i2GqM6GYzKiUAILfGX6nbOF3QSUDnsynEL5u5g9EXo=; b=MYMKq9kIg+BxVXsC4hgiTlZbYg025aA8/4Asnu90yN+UclbsaGy2YybMpoM8QeMTDK 2aTKTjziqNUjG552jVYJ9vEhbJgb9lNDpb0c4FQcL/EL63q9KjywJq/1Nbnq6Ckfv4t0 r9OOlRlpklyJXRPnbHXszXuzrUarDRgjy2fo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UGyV4MATPN7W+koLrFsz91KGfWeaSsIHmnVBzd9c/I06GbySCqQpRdvuh281nFSW+1 q1Qv6PmmylUiJKfC9rPlh/cOGFBNDBakGtQxNk5bYK6jDz5nJTEU7JqbyhLQ263c9/X3 3DYnc7nWH/pqveH4pYsk53FJLV86NimdYOdvo= Original-Received: by 10.239.134.221 with SMTP id a29mr66434hba.20.1253232730191; Thu, 17 Sep 2009 17:12:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 17 Sep 2009 20:27:12 -0400 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:31194 Archived-At: On Fri, Sep 18, 2009 at 01:02, Glenn Morris wrote: > > 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: BTW, doesn't the patch below work for you? On my Emacs, this results in ("tooltip.elc" "ediff-hook.elc" "vc-hooks.elc" "emacs-lisp/float-sup.elc" "mwheel.elc" "w32-fns.elc" "dos-w32.elc" "disp-table.elc" "ls-lisp.elc" "term/w32-win.elc" "term/common-win.elc" "w32-vars.elc" "tool-bar.elc" "dnd.elc" "international/fontset.elc" "image.elc" "fringe.elc" "buff-menu.elc" "replace.elc" "textmodes/fill.elc" "textmodes/text-mode.elc" "emacs-lisp/lisp-mode.elc" "textmodes/paragraphs.elc" "register.elc" "textmodes/page.elc" "emacs-lisp/lisp.elc" "paths.el" "menu-bar.elc" "rfn-eshadow.elc" "isearch.elc" "emacs-lisp/timer.elc" "select.elc" "scroll-bar.elc" "mouse.elc" "jit-lock.elc" "font-lock.elc" "emacs-lisp/syntax.elc" "facemenu.elc" "font-core.elc" "term/tty-colors.elc" "frame.elc" "window.elc" "indent.elc" "language/cham.el" "language/burmese.el" "language/khmer.el" "language/georgian.el" "language/utf-8-lang.el" "language/misc-lang.el" "language/vietnamese.elc" "language/tibetan.elc" "language/thai.el" "language/tai-viet.el" "language/lao.el" "language/korean.el" "language/japanese.el" "international/eucjp-ms.el" "international/cp51932.el" "language/hebrew.el" "language/greek.el" "language/romanian.el" "language/slovak.el" "language/czech.el" "language/european.elc" "language/ethiopic.elc" "language/english.el" "language/sinhala.el" "language/indian.elc" "language/cyrillic.elc" "language/chinese.elc" "international/charprop.el" "composite.elc" "international/characters.elc" "case-table.elc" "international/mule-cmds.elc" "epa-hook.elc" "jka-cmpr-hook.elc" "help.elc" "simple.elc" "abbrev.elc" "loaddefs.el" "startup.elc" "button.elc" "minibuffer.elc" "faces.elc" "cus-face.elc" "files.elc" "bindings.elc" "format.elc" "env.elc" "international/mule-conf.el" "international/mule.elc" "cus-start.elc" "emacs-lisp/map-ynp.elc" "custom.elc" "widget.elc" "version.el" "subr.elc" "emacs-lisp/backquote.elc" "emacs-lisp/byte-run.elc") which seems about right. Juanma Index: lisp/loadup.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/loadup.el,v retrieving revision 1.184 diff -u -2 -r1.184 loadup.el --- lisp/loadup.el 15 Sep 2009 03:46:08 -0000 1.184 +++ lisp/loadup.el 18 Sep 2009 00:06:20 -0000 @@ -65,4 +65,7 @@ (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.") + ;; We specify .el in case someone compiled version.el by mistake. (load "version.el") @@ -319,4 +322,7 @@ (setcdr load-path nil)) +(or dumped-lisp-files + (setq dumped-lisp-files (mapcar 'car load-history))) + (remove-hook 'after-load-functions '(lambda (f) (garbage-collect)))