From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qFvKHQ6pmmELHwEAgWs5BA (envelope-from ) for ; Sun, 21 Nov 2021 21:16:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QK5hGQ6pmmHPcgAAbx9fmQ (envelope-from ) for ; Sun, 21 Nov 2021 20:16:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 21B313215C for ; Sun, 21 Nov 2021 21:16:14 +0100 (CET) Received: from localhost ([::1]:35374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1motG1-0002UN-7w for larch@yhetil.org; Sun, 21 Nov 2021 15:16:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1motFq-0002Tx-3p for guix-patches@gnu.org; Sun, 21 Nov 2021 15:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1motFp-0004Ar-Rp for guix-patches@gnu.org; Sun, 21 Nov 2021 15:16:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1motFp-0005rF-Ny for guix-patches@gnu.org; Sun, 21 Nov 2021 15:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51755] [PATCH 1/1] gnu: proof-general: Adjust autoloads for Emacs. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Nov 2021 20:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51755 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 51755@debbugs.gnu.org, zimoun Received: via spool by 51755-submit@debbugs.gnu.org id=B51755.163752574322491 (code B ref 51755); Sun, 21 Nov 2021 20:16:01 +0000 Received: (at 51755) by debbugs.gnu.org; 21 Nov 2021 20:15:43 +0000 Received: from localhost ([127.0.0.1]:46105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1motFW-0005qg-Ol for submit@debbugs.gnu.org; Sun, 21 Nov 2021 15:15:42 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1motFU-0005qQ-96 for 51755@debbugs.gnu.org; Sun, 21 Nov 2021 15:15:41 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 28CE960007; Sun, 21 Nov 2021 20:15:32 +0000 (UTC) From: Nicolas Goaziou References: <20211110192622.368232-1-zimon.toutoune@gmail.com> <20211110193748.368696-1-zimon.toutoune@gmail.com> <8735npwdvr.fsf@nicolasgoaziou.fr> <6aab24bab9512e0957e33256a3addf1076a9d012.camel@gmail.com> Date: Sun, 21 Nov 2021 21:15:30 +0100 In-Reply-To: <6aab24bab9512e0957e33256a3addf1076a9d012.camel@gmail.com> (Liliana Marie Prikler's message of "Sun, 21 Nov 2021 20:07:48 +0100") Message-ID: <87y25huuxp.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637525774; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=3LXFLYWroO1ccz1aNJOJfTSFYUfII+Px/9ng726pTcE=; b=uGiJQQCAdJGmeCmyy3mjLbMQAnpsaHxffQq8UJJ5uJkY/bgIpOUADcOivL3ahTSmd4sIpM JZfSaVP17jGNB6kjwpGhKaI7VDgvvqy75jaIMssbkQYz9gSQMtdsggecznp4cikKkrM74i 8bdFr0AyUOYI+kPwf2xdoKp+shgyftMP6Ev8D0SQdIgRE4YfFG2HAUSbV8+0Ly3VPCHTCM S80gXx0Fr4XVtjTD8lmDIPNPwTYYNJJvzEuj37Y8A5rXEj19ELybq2yhqXgwmrVJ6kvfzw 01Wzh3hJzZdL5qxn2CqHuMQONDng0q8th72Qd2gHUUrhBIbpLWFzVWV6eT+ryA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637525774; a=rsa-sha256; cv=none; b=LrAN719WctuZmkECOKoKZqTdrfP9BGZsM1UVfw9UFfj5SQlbsUK4G059bnLYHveH47xFkF GVUztoPDCc/oOmVN3rka4fS97E9QWd7VnqdKldlMB3OUxutespyERNqPKsvPZ4NT5XKIcG 6HvHQw0WHPc9xL41Zfp217rxanSGairWlzGeaK5cizGoTugpTgpzcXEikZdIkW6JBT91Uj pUNR5m2DE8pu63lYz6Pt74y4xsT5CKs2+MtdHL8tltIwt5kDaf8XR0ZlsVcvc11FuDErJa 7tzMLdrp0fk4CPXY0LxOyIvCRKjZcMcQwoNsAuLaG+2hKxzZ+kHdH9JNbYIcqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 21B313215C X-Spam-Score: -2.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wgo6Tt3kPv2F Hello, Liliana Marie Prikler writes: > Am Sonntag, den 21.11.2021, 19:40 +0100 schrieb Nicolas Goaziou: >> So, IIUC, the above is basically a hack: you disguise the main file >> into an autoloads file because no autoloads file is generated from >> the code base? If so, this might deserve a longer comment, IMO. Actually, my assumption was wrong. "proof-general.el" is a meta-autoloads file: ;; This file is a thin, package.el-friendly wrapper around generic/proof-site, ;; suitable for execution on Emacs start-up. It serves two purposes: ;; ;; * Setting up the load path when byte-compiling PG. ;; * Loading a minimal PG setup on startup (not all of Proof General, of course; ;; mostly mode hooks and autoloads). > On a related note, what would be so bad about having to (require > 'proof-general) interactively? When not byte compiled, the file only does (require 'proof-site (expand-file-name "generic/proof-site" pg-init--pg-root))) I guess we could also provide a single autoloads file doing just that or, according to the manual, (load "PROOF-GENERAL-HOME/generic/proof-site.el") > Alternatively, we could in an after- > unpack phase add autoload cookies to the source file or write our own > autoloads altogether. WDYT? Autoload cookies are already present in the code base, but in sub-directories. OTOH, I assume the solution proposed by Zimoun, as hackish as it is, works well enough. And it requires less work. IMO, it is acceptable with a good comment. Regards, -- Nicolas Goaziou