GNU bug report logs - #76264
[GNU ELPA] Use lisp-data-mode in generated *-pkg.el files

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Stefan Kangas <stefankangas@HIDDEN>; dated Thu, 13 Feb 2025 12:25:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Feb 2025 12:24:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 07:24:46 2025
Received: from localhost ([127.0.0.1]:41197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiYGr-0004AI-JJ
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 07:24:45 -0500
Received: from lists.gnu.org ([2001:470:142::17]:53350)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tiYGo-00049y-Vo
 for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 07:24:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1tiYGY-0004bA-Fj
 for bug-gnu-emacs@HIDDEN; Thu, 13 Feb 2025 07:24:28 -0500
Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1tiYGW-0002jO-LM
 for bug-gnu-emacs@HIDDEN; Thu, 13 Feb 2025 07:24:26 -0500
Received: by mail-ed1-x535.google.com with SMTP id
 4fb4d7f45d1cf-5ded1395213so838407a12.2
 for <bug-gnu-emacs@HIDDEN>; Thu, 13 Feb 2025 04:24:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739449463; x=1740054263; darn=gnu.org;
 h=cc:to:subject:message-id:date:mime-version:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=2ik3Fx9U03MveCh1x+8F7yFr+pLJZZVreAV56y5PNOY=;
 b=JNtxP2pdV/TFVu/qInOkVJ9VtdHkHeUuRJUeu+DDCkKFIbwKNDMJeaHC8qgOZdgyb9
 k9Pl0xK4K0cJkL9oSeJiHYuMM1hqK65Ghz/Wq/FEL+bqs7iOGtxPx97Kjq4Nlcw8jyF1
 WNGzdf6iGVZ/8U1Ed28C5HKqaGjJ81lsxcfzfXDwGpIJramL02vER0RfW0u1VPE6hSTj
 HmPo6S1imqMj3jZStkttS6Dz41+CsKEtapQR5Nfo1+Te6OmaXxpHQu9o5ovbJFDDsIa7
 DOExvjYtiQnLsuxgUG7DR1kDQ2J2lh2LSmYvJTNn/FMzwjquhHX179Su20T4D2BzEthK
 Vvog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739449463; x=1740054263;
 h=cc:to:subject:message-id:date:mime-version:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=2ik3Fx9U03MveCh1x+8F7yFr+pLJZZVreAV56y5PNOY=;
 b=MaISRD9SDfqHWB+vPgEzUphCD642qbjMItT/3r9/YNgc0EkeG8O2nVKjENxdvDBv+b
 btH+rldvBV+nJ8CCG9oJvt9keQobBdFYeRspLOnHbXNbHRKmAuJb//QCSLPA1MHY93hh
 15/G6OBzAxzd8D3tPwzq4Xonu0NcdaFVylrJ4MHzNwmVPFCdb/cHCSacKG+w7GZYl8/2
 NRXdTjnp0AJNxd3nOOtt9kjEDNBEHWMNk88dOmYwBDI20Ccsjx3hjx0i39rh+mIKkhJT
 Za71FoBw/W24xkynqbRvFzOiSsampXycwXQhShoFL/AZavW+vlCsels50O3XlEzZS1FV
 l+1w==
X-Gm-Message-State: AOJu0YzxAfcozRD6GPPbmmow2Nyxa+FClImiT0SvtWO0D5kCMOaR0nnU
 57GlL0MMuVtKPtCa7SHotVXIdfRfsvDJAOzsOC0vo85jEHQqIgES4QZtdAyLHasOytb4D9qrNww
 UmKFEsAFakQ2Lg/TKhoTc80svO1A7Fh1RD+4VYQ==
X-Gm-Gg: ASbGncsPiWIPp+ETni5xAlY9CrcdcQoV1OEb/mg8SI70+trYHE6oADPAzIt4EDoXx4T
 OtfvN1e6Rga6y3HtI5ifAe7aY/KPhgU4GuD0oCEnjiUmAa8gMIasLtjM10uvoZJCvQbX+RIu/+T
 s=
X-Google-Smtp-Source: AGHT+IEDfT2aJLq/UHquhPDUV6vV19ifFaPrNQ5YgUIubtwPUHBZIVyzH6entHV04u0udPEjTaPgFgyfJJUhgWSqVsU=
X-Received: by 2002:a05:6402:40c6:b0:5de:aa54:dc33 with SMTP id
 4fb4d7f45d1cf-5dec9ff9da2mr2572525a12.25.1739449462300; Thu, 13 Feb 2025
 04:24:22 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 13 Feb 2025 04:24:21 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
MIME-Version: 1.0
Date: Thu, 13 Feb 2025 04:24:21 -0800
X-Gm-Features: AWEUYZmp_IsfTaCNoiAC2KCO2ThSz10RpexiNVp9BU9ZRdf4Tr5MjkeqcYQYGb8
Message-ID: <CADwFkmk_DtzFDfw16neC5gtTf+o3KX6JBiLt9mwRCTb4KZCzUQ@HIDDEN>
Subject: [GNU ELPA] Use lisp-data-mode in generated *-pkg.el files
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::535;
 envelope-from=stefankangas@HIDDEN; helo=mail-ed1-x535.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Philip Kaludercic <philipk@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Severity: wishlist

The *-pkg.el files are not source files that should be executed, but
Lisp data files.  This has been the source of much confusion.

For example, it is currently completely confused in the lispref manual,
which talks about `define-package' as a function, despite the fact that
it has never been working like that and is now obsolete.  (I'm working
on a patch.)

I think we should install the following to start clearing up some of the
confusion.

Thoughts?

diff --git a/elpa-admin.el b/elpa-admin.el
index c127f50dcc..2ccfe35f81 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1516,7 +1516,7 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
 	(print-length nil))
     (elpaa--temp-file pkg-file)
     (write-region
-     (concat (format ";; Generated package description from %s.el
-*- no-byte-compile: t -*-\n"
+     (concat (format ";; Generated package description from %s.el
-*- mode: lisp-data; no-byte-compile: t -*-\n"
 		     name)
 	     (prin1-to-string
               (pcase-let ((`(,version ,desc ,requires ,extras)




Acknowledgement sent to Stefan Kangas <stefankangas@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76264; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Feb 2025 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.