From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: ignoring autoloads in preloaded files on Windows Date: Sat, 10 Oct 2009 07:13:28 +0200 Message-ID: References: <83eipfmuaz.fsf@gnu.org> <0my40kr72.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1255151729 16658 80.91.229.12 (10 Oct 2009 05:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 05:15:29 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 10 07:15:19 2009 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 1MwUIV-0008I4-Gp for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2009 07:15:15 +0200 Original-Received: from localhost ([127.0.0.1]:33344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwUIU-0000tA-Px for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2009 01:15:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwUHI-0000In-19 for emacs-devel@gnu.org; Sat, 10 Oct 2009 01:14:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwUHC-0000EZ-7q for emacs-devel@gnu.org; Sat, 10 Oct 2009 01:13:58 -0400 Original-Received: from [199.232.76.173] (port=33087 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwUHB-0000EG-T0 for emacs-devel@gnu.org; Sat, 10 Oct 2009 01:13:54 -0400 Original-Received: from mail-fx0-f205.google.com ([209.85.220.205]:47912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwUH7-0000jL-Rn; Sat, 10 Oct 2009 01:13:50 -0400 Original-Received: by fxm1 with SMTP id 1so6396005fxm.31 for ; Fri, 09 Oct 2009 22:13:48 -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=2kzRsBlrGj/1ga8ILnm57S3q8gi9SaJvcGEgeSUr6wo=; b=MlGMGYt/Y8XEsh8D68BM20bkT8bqrPbc3ytVB866ONRY3wMjFW/x0x+d7Yz/Ztyh/N v3wEUIMVBhZOfNIlPm0/EgJfwoCx2+X5sQ4XwSNa5YTc7v+5X+8PZvnNT1i9ywwE/u9O Bsej858+rSktoMFfy8M3dXwZ2w6P1Kn2llbHs= 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=VY8Chet6yExI0uavY3xgaqxBaBpkqdz7j1yST+zutrXlpPtHRl97Au/G5F93qhqjhB tZXixx5H3ierVGcWExj9kfbtLjdcdHjD8kkzPsjsQAz3mU1o/cVD4+Fm5lDjs9oCAicR 20N5TyWoMwTg8NFVNWabCGYRNrBbYrXLZmJhA= Original-Received: by 10.239.179.80 with SMTP id c16mr179433hbg.155.1255151628228; Fri, 09 Oct 2009 22:13:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 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:116048 Archived-At: On Sat, Oct 10, 2009 at 06:17, Juanma Barranquero wrote: > Aha. I think you're generating echolisp.tmp in the root, instead of > lib-src/. Wrong, wrong, wrong! > If I move it to source and regenerate the autoloads, I see > "skipped" indeed: That's true indeed. The real problem is that, in (when (ignore-errors (delete-file tmpfile) (shell-command (format "make -C %s echolisp > %s" mdir tmpfile)) (file-readable-p tmpfile)) ...) `delete-file' has to be inside its own (ignore-errors); otherwise, executing the function when there's no echolisp.tmp will skip the make generation altogether. This is why copying a fresh echolisp.tmp to lib-src worked. Changing the code to (when (ignore-errors (ignore-errors (delete-file tmpfile)) (shell-command (format "make -C %s echolisp > %s" mdir tmpfile)) (file-readable-p tmpfile)) works, both bootstrapping and doing "make autoloads". That said, right now loaddefs.el is 27241 bytes shorter than before, or 97,76% of what used to be. Not much of a gain. Juanma