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: Re: Reworking loaddefs.el generation Date: Fri, 27 May 2022 15:00:10 +0200 Message-ID: <87bkvj6sh1.fsf@gnus.org> References: <87ee0f8cvx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 27 15:08:14 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 1nuZhO-0006hz-KZ for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 15:08:14 +0200 Original-Received: from localhost ([::1]:42808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuZhM-0008Ol-KC for ged-emacs-devel@m.gmane-mx.org; Fri, 27 May 2022 09:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuZZk-0003GE-Ak for emacs-devel@gnu.org; Fri, 27 May 2022 09:00:21 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:58274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuZZi-0004pS-GK for emacs-devel@gnu.org; Fri, 27 May 2022 09:00:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=G1KVSRu47dPj33ATk6WYku55CypLpGNkX5yZIJrP8dE=; b=LzznFY/ONu+BwvxD+qm4JwuHy7 YLybx+CwPE7SrxrPIUcnZ81bTZRd3Ys/tWRm2UL75xy/rB7bOjPnwjo5zc5DedWtRXPLlrU24OO9n W31vyqtKZ0EDpHcNnnu4ChjfwZ/z6GRvhb5sqjFgVuQ4QjGjivOKg0ueUDdsjVpF+5u4=; 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 1nuZZb-0008BS-Au; Fri, 27 May 2022 15:00:13 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEW2wpmtuJSfoXWN dXgZGB5XU1XHxrT////kBx3DAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YFGA4RI6qk3VcAAAGoSURB VDjLjZRLboMwEIZniJT1DKhdYyfdl7hcoLH3UbD3qAvuf4SOMQZDq6q/EqL487xtAJKYCZALyRqh fPioCKAUJXsByKh0kjEXZmMMzYC5spvu8U8bAUnQAjxxBVCCO7wkMMcrwPvJJ4B74ODDZlc7cB9f /K/A1VBtAIsY0pjrCrhyQRR92KHDyi8AER1PU++TM2qvmyv3Op2X9RtzaUEzGJgm4A97tHiOEzdm Tjc1GqsZfI5NCCm3NvWfE3igz0kvFpBAC2/BhwOIwR9wns5fg/9h4RhpbMc3MWqpBDYEY1iPoP0C JKtzLjAMRhESZwAZxOKHbuk6RAB+a/E6j5jVfwHhXxZ4iHHTtIy8AC48WfdyxjdX83onzi+9tKQI bq1WpPhiUksK8JA7YtLkW4b57CbQqsb0+zpOckrAKr0m9l4W6Kr618pRUkEddoAjIOvMjcDk0caJ 4CkXOHR0ifFzuigTaPoQehlTV/sQZHsCdVg1qKoxGfwULl1EpsOOCBa7eHvlZqf9IBtR1axqSYPl d/5qedYcXxssrmD/iqkpuYteDkG+AXZJoFfktC8XAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA1 LTI0VDE0OjE3OjM1KzAwOjAwvhiZlQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0yNFQxNDox NzozNSswMDowMM9FISkAAAAASUVORK5CYII= X-Now-Playing: Porridge Radio's _Waterslide, Diving Board, Ladder To The Sky_: "Birthday Party" In-Reply-To: (Stefan Monnier's message of "Fri, 27 May 2022 08:43:49 -0400") 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:290309 Archived-At: Stefan Monnier writes: > BTW, I think `autoload.el` should be extended to provide explicit > support for these things like `mh-autoloads.el` so we don't need these > ad-hoc rules. Yes, my new version has that. =F0=9F=98=80 > Eg.g. I was thinking that file-local variables should be able to include > things like: > > ;; Local Variables: > ;; autoload-extra-cookies: ((mh "mh-loaddefs.el") (tramp "../net/tram= p-loaddefs.el")) > ;; End: > > which would tell `autoload.el` to look for > ";;;###\\(mh-\\|tramp-\\)?autoload" matches and depending on the exact > match put the resulting entry either in the normal `loaddefs.el`, or in > `mh-loaddefs.el` or in `tramp-loaddefs.el`. I'm doing the latter without the former, and that seems to work fine. That is, tramp.el currently has=20 ;;;###tramp-autoload ;;;###autoload that says exactly this, so my new code just uses that.=20=20 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no