From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Reworking loaddefs.el generation Date: Fri, 27 May 2022 12:53:54 +0200 Message-ID: <87ee0f8cvx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5361"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 27 13:23:51 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuY4M-0001Bu-SJ for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 13:23:50 +0200 Original-Received: from localhost ([::1]:49156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuY4L-00015n-RB for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 07:23:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuXbW-0007W9-Lj for emacs-devel@gnu.org; Fri, 27 May 2022 06:54:02 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:57150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuXbU-0002hj-JD for emacs-devel@gnu.org; Fri, 27 May 2022 06:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=H0QvkreE1cZBUOf8hHu1irDIw6AhDDgt14QNV9Dng4s=; b=lbBFlN7Dpia4v/AQFX7IyKVGRS xseJnb3TYRTkWACDKONivVIVZ0kCXT9eQCgQIL+1wRDhBrtkub19KptnpchY6KPPUBSv4GsMLrsBJ NRf5ql5ZuALYYk6KJZITFLkOkvHwJR3/54rsPXxuocLH5VUfKtijtcZ71Rg8yH5d8T0I=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuXbP-00075d-DF for emacs-devel@gnu.org; Fri, 27 May 2022 12:53:57 +0200 X-Now-Playing: felicita's _PC Music Volume 3_: "marzipan (feat. Caroline Polachek)" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290303 Archived-At: I've been working a bit on making loaddef file generation faster (and easier to comrehend). Building loaddefs currently takes about 10 seconds (on my build machine), and I've got it down to 2 seconds. (For my "make -j32" build, this means a reduction of 6% time, since that bit is single-threaded and make doesn't have anything else to schedule while Emacs is working.) But there's some bits here I don't quite understand. We have, for instance: # Update MH-E internal autoloads. These are not to be confused with # the autoloads for the MH-E entry points, which are already in loaddefs.el. MH_E_DIR = $(lisp)/mh-e MH_E_SRC = $(sort $(wildcard ${MH_E_DIR}/mh*.el)) MH_E_SRC := $(filter-out ${MH_E_DIR}/mh-loaddefs.el,${MH_E_SRC}) .PHONY: mh-autoloads mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el $(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC) $(emacs) -l autoload \ --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \ -f batch-update-autoloads $(MH_E_DIR) But if I say: $ touch lisp/mh-e/mh-e.el $ make The lisp/mh-e/mh-loaddefs.el is not regenerated. So either this Makefile snippet doesn't work, or I'm misreading what it's trying to do (which is quite possible). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no