From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0BnxAdreuWaVCgEAqHPOHw:P1 (envelope-from ) for ; Mon, 12 Aug 2024 10:07:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0BnxAdreuWaVCgEAqHPOHw (envelope-from ) for ; Mon, 12 Aug 2024 12:07:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pengjiz.com header.s=fm1 header.b=Vwg8JJIr; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=eZ8ZEpl5; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723457241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RxU6ljBGpNoy+pXEUC03O8595yZfOni34J4PeJJkQ2c=; b=oXJU5V2LgMMRjYocRY2VjUNkD1utwjrmQF9OaTTCa6NxM2LfKFm6AKo4WVtWKWXtO3W8CA 1tybRBD4c50daubHx3dQCsIWRO8vIQgfBfDBwfB9m8EgAuf59pvhNNDa9rtMmgzk/QHV8U 35Pt2fio3vSKCD/0vT1nP+1i1GfnJYHqVp7EfX9Un6+5WsTD+YzIB4X7cFcKDif/NpjFDD goHQWAUfDCKRKs0XDMjucU7Gvi7eWHEcAOekLygXKqAAOEqILqRzWdtas/kYlkUWyjd4tP zsIkUnPqqTsB0KMrIbpo4GmC3xQ5EFkDgOBBmpNycX6GeVB/eTeVjwdJhkzMdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pengjiz.com header.s=fm1 header.b=Vwg8JJIr; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=eZ8ZEpl5; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723457241; a=rsa-sha256; cv=none; b=pftzZT6tKfrZvIHWV5a2yYUpwDbpHgrmHZSjNk/uXxfI5x6vi8tEK4vJuDe81CsInZC2Jr rX3/o/zejyTRohfFe8+YSekplTSWyZ60pIatW0KCW8BwazWQaAIMXvFl529NptEOHFZ02t joMT8kOrPJIp0B8wWZlf5RuaYsoiGKYayPFBBPzDH2v9JATG+k9vUDHi9ZDlz/Qiq4UHK5 hzCHPtyr4xTMYAuUiTYL/mNUKVvyjlljLOeJ9hUqimy5VoMvpeFwdybmk9w3jpO6p2liUz tlgxSvTTbVtyhRK0bK4fd8dT2IQnqIPvH4mY3m9qxoZkc9HqFysTOgHIzGbL/A== Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6EAED51DAD for ; Mon, 12 Aug 2024 12:07:21 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 109095E525; Mon, 12 Aug 2024 10:07:19 +0000 (UTC) X-Greylist: delayed 448 seconds by postgrey-1.36 at yantan; Mon, 12 Aug 2024 05:01:15 UTC Received: from fout1-smtp.messagingengine.com (fout1-smtp.messagingengine.com [103.168.172.144]) by mail.notmuchmail.org (Postfix) with ESMTPS id 7E8B15E50D for ; Mon, 12 Aug 2024 05:01:15 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 0CA60138FC9A for ; Mon, 12 Aug 2024 00:53:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Mon, 12 Aug 2024 00:53:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1723438426; x=1723524826; bh=19BeE5wG3h6iaoM/jEKLvPqCJywjUqqq vSObnEG7Dhc=; b=Vwg8JJIrEM9RRBRqRXywlxWtSMzR4LsP6zURhvoK5RNHXZjw pqELkWjLi3AP9Cb5n4nRGjncQmIRGX9vpDO1BxnIf6IUPTmdqDCM7S01Y4Engpox JQjTZmuEbHPP9rbv2N15qTz3I+GlNZIWsbFj3YFiiS0cz4HWpJHxVdk0Zp5Xleh7 YeDg6WVMFbhJK8fp+bmp5m0hbF0FVqK4PUicV2PSHjfTDOkeMsQwtCaYvp8HAHmJ aOrc72Dy62NEpFhWxECfnbPgKP0EAdecoZU+lqMl8PCAiQyG8X21Pr1k79SQrAxE haLDlXGs80LOT4j3hLrbSvq+DHT9/3IgzvfjIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1723438426; x=1723524826; bh=19BeE5wG3h6iaoM/jEKLvPqCJywjUqqqvSO bnEG7Dhc=; b=eZ8ZEpl5LDOW4yd4geHP96aHkNZhUoKN3qtesK/swGW+VQ/n8+G yOZ54oErYsxH85CN7RanbfqbRWTzZUoW7RNKYfvZVvunLdaoVD1D2JCshe76mqNo mPzQxHgXYPFyW5ACsizB69IM4d2iZOPiXhZwsefu4q524FjSjBs4jc+6UsMovsoV G+isDkzZeXt53yv8cu9MQSRE3z95fOnI+M7+/8IN+KYQMXhdgrGdm/ipl70xxS2E VAIbRPOXX1wQDtiJH8ZyD8teL+02OOUEHOyxn99FAfjl59jIlPHotbY6jJobhqCA RSS2lhb0JrsYX/ez7AA0JZZ+Wt4olI98Jhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrleelgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkf ggtgesthdtredttddttdenucfhrhhomheprfgvnhhgjhhiucgkhhgrnhhguceomhgvsehp vghnghhjihiirdgtohhmqeenucggtffrrghtthgvrhhnpedtfeeutdfghffffffhleduff evveeghedvueejkeegteetjeekjeduteethfefgeenucffohhmrghinhepghhithhhuhgs rdgtohhmpdhmvghsohhnrdgsuhhilhgunecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepmhgvsehpvghnghhjihiirdgtohhmpdhnsggprhgtphht thhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehnohhtmhhutghhsehnoh htmhhutghhmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 12 Aug 2024 00:53:44 -0400 (EDT) From: Pengji Zhang To: notmuch@notmuchmail.org Subject: Emacs: Generate autoloads during installation? Date: Mon, 12 Aug 2024 12:53:22 +0800 Message-ID: <87o75yl4u5.fsf@pengjiz.com> MIME-Version: 1.0 X-MailFrom: me@pengjiz.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: YUSAHIWLLFBHJXB4E2CRGX5PVAV65WIW X-Message-ID-Hash: YUSAHIWLLFBHJXB4E2CRGX5PVAV65WIW X-Mailman-Approved-At: Mon, 12 Aug 2024 10:07:16 +0000 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: 7bit Content-Type: text/plain; format="flowed"; charset="us-ascii" X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6EAED51DAD X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.78 X-Spam-Score: -1.78 X-TUID: giShOtuqVB2C Hello! I found that with the shipped Makefile, installing the Emacs Lisp package does not generate autoloads, even though many entry points have been marked with the autoload cookie. Namely, after: ./configure make make install one still has to 'require' the library in order to use, say, 'M-x notmuch'. That is a minor annoyance to me because in my workflow I often need to start a few Emacs instances, and loading Notmuch and all its dependencies is not trivial on my machine. I wonder if we could generate and install a 'notmuch-autoloads.el' file as well during installation, like mu4e[1]. So we only need to load that file at Emacs startup, which should be much cheaper. Thanks in advance! Cheers, Pengji [1] https://github.com/djcb/mu/blob/af6ca080a4d956a0c706f5a01b767435d372ffd6/mu4e/meson.build#L110-L120