From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: simple loaded during startup Date: Sat, 24 Feb 2007 15:10:22 +0200 Message-ID: References: <200702240059.l1O0xMX1010398@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1172322655 31168 80.91.229.12 (24 Feb 2007 13:10:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2007 13:10:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 24 14:10:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKwfn-0004NZ-LR for ged-emacs-devel@m.gmane.org; Sat, 24 Feb 2007 14:10:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKwfn-0003BK-Ba for ged-emacs-devel@m.gmane.org; Sat, 24 Feb 2007 08:10:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKwfc-0003B5-SQ for emacs-devel@gnu.org; Sat, 24 Feb 2007 08:10:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKwfb-0003Am-EA for emacs-devel@gnu.org; Sat, 24 Feb 2007 08:10:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKwfb-0003Aj-C8 for emacs-devel@gnu.org; Sat, 24 Feb 2007 08:10:35 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HKwfa-0003Ck-U4 for emacs-devel@gnu.org; Sat, 24 Feb 2007 08:10:35 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-20-14.inter.net.il [80.230.20.14]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BYJ84133 (AUTH halo1); Sat, 24 Feb 2007 15:10:13 +0200 (IST) In-reply-to: <200702240059.l1O0xMX1010398@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Fri, 23 Feb 2007 16:59:22 -0800) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:66741 Archived-At: > From: Dan Nicolaescu > Date: Fri, 23 Feb 2007 16:59:22 -0800 > > Doing > strace -o emacs.strace emacs -Q --no-site-file -nw > and then > grep simple emacs.strace > > shows that "simple" is being loaded during startup. This seems strange > given that "simple" should be in the dumped image... > If one deletes all traces of simple.el simple.elc simple.el.gz etc > then emacs gives a "Wrong type argument: nil" error when starting up. > > Does anyone know if loading "simple" at startup is intentional? Actually, Emacs doesn't _load_ simple.elc (put a breakpoint in Fload, and you'll never see "simple" being loaded), it only locates it. This is because startup.el:command-line does this: ;; Convert preloaded file names to absolute. (let ((lisp-dir (file-truename (file-name-directory (locate-file "simple" load-path (get-load-suffixes)))))) (Armed with lisp-dir, it then proceeds to convert relative file names in load-history into absolute file names.) IOW, we use simple.elc as an indicator where the Lisp files reside on the file system, which is the value of lisp-dir computed in the above snippet. I don't see anything wrong with that. Do you?