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>; Done: Stefan Kangas <stefankangas@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug unarchived. Request was from "Basil L. Contovounesios" <basil@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 14 Feb 2025 15:46:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 10:46:13 2025
Received: from localhost ([127.0.0.1]:51289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tixtN-0006oK-0a
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 10:46:13 -0500
Received: from lists.gnu.org ([2001:470:142::17]:46518)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <philipk@HIDDEN>)
 id 1tixtK-0006o3-R2
 for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 10:46:11 -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 <philipk@HIDDEN>)
 id 1tixtF-0000bp-Au
 for bug-gnu-emacs@HIDDEN; Fri, 14 Feb 2025 10:46:05 -0500
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philipk@HIDDEN>)
 id 1tixtB-0004Du-6a
 for bug-gnu-emacs@HIDDEN; Fri, 14 Feb 2025 10:46:03 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 3FDDD240103
 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Feb 2025 16:45:55 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1739547956; bh=QaqU0vy7icC9SrCyhrWUWn42BneeyPKHYkec+OzfVNo=;
 h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version:
 Content-Type:From;
 b=b6qkFDSodDw+jAmSCo3st+N59YHDz2X3oQoaSSBAy/vZvxtSTosGV1pBhMtgPybDm
 yhVRxwQwNVqEz56HNRoxkD0B5h/ysZ2JNfO9iR8lxxyoUE6PWMZIsU776TMdZdl5YO
 kqpro1eYz+5oAcaSQ9R+gWFx1RpD0I2eYoOIYtGd88joaglLzvHR1V4oAz8bIZRikx
 WwXrTvA1drj0rqKId6jvnfp0Dj+OwMaIzxagYq3mCZPlIsLEF9dIwlZfz8A7jih5G9
 //iSNHhUlttpyt5BUUMbo7xNdhrpg3g5Ns0UC56J6ELW90Z7zT8TvmmFe9Tfv++i/6
 P9pALv+2aQyxA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YvbxG66nrz6twR;
 Fri, 14 Feb 2025 16:45:54 +0100 (CET)
From: Philip Kaludercic <philipk@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: [GNU ELPA] Use lisp-data-mode in generated *-pkg.el files
In-Reply-To: <CADwFkmk_DtzFDfw16neC5gtTf+o3KX6JBiLt9mwRCTb4KZCzUQ@HIDDEN>
References: <CADwFkmk_DtzFDfw16neC5gtTf+o3KX6JBiLt9mwRCTb4KZCzUQ@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; keydata=
 mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI
 BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0
 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB
 BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE
 Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK
 NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof
 z4oM
OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66;
 url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66";
 preference=signencrypt
Date: Fri, 14 Feb 2025 15:45:54 +0000
Message-ID: <87cyfkttql.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@HIDDEN;
 helo=mout02.posteo.de
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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 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: bug-gnu-emacs@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 (/)

Stefan Kangas <stefankangas@HIDDEN> writes:

> 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 do think that it used to be a function, but that was changed a number
of years ago.

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

The only negative to this patch is that users on Emacs 27 or before will
get a warning about an invalid mode, but otherwise I think that this is
a good idea.

> 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)





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76264; Package emacs. Full text available.

Message received at 76264-done <at> debbugs.gnu.org:


Received: (at 76264-done) by debbugs.gnu.org; 13 Feb 2025 15:44:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 10:44:20 2025
Received: from localhost ([127.0.0.1]:44981 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tibO0-00011P-HT
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 10:44:20 -0500
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:53347)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tibNy-00011A-Co
 for 76264-done <at> debbugs.gnu.org; Thu, 13 Feb 2025 10:44:18 -0500
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-5deb956aa5eso1293497a12.2
 for <76264-done <at> debbugs.gnu.org>; Thu, 13 Feb 2025 07:44:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739461452; x=1740066252; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=kODU5DdlG0zUco9QlCo0c1yq7F2GE9LGYi29t+VIlA4=;
 b=JEsRTXn/v7PY2qRFFdy3O6uA6U0F5PJxBFOSReQYU+3DGm593OAv+lNUT6LAktMNeX
 XvdUror9eOHu4c1lb2zmDFigUjzGx8NeAKgjnAdZU17fEimXUEY8jy8Fin0YPA4F8URm
 hvkiXWPosFfO/kpzyQkhU9wQe4sNcOm0gtfFsJ4kyR9lNq+bqKgfe3OmjYUwXsGockti
 P9hM+y3XvZjPmu5ZUvelv3RvBJPgumjS2SXBaEnMpsKwFjD6XrhkwNZ+jZB4Enlo1++C
 23O30BRWUVImuLrm+H8ubVl27wK1atTwXnup5bd3Wnh6OtLp+/H6qs30zM0bFBX+ryzD
 CvZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739461452; x=1740066252;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kODU5DdlG0zUco9QlCo0c1yq7F2GE9LGYi29t+VIlA4=;
 b=kS0PmrjzeV6xXS9nfJu4t/y3M28pVcERXjxcE3T9MRpk78MbxJ2PXyBV+vCgREMpFj
 pOZvsh7htKCQal6iI+XekYEG/wPuMhscccQbMY57zDCg8T9BCKa6JQcBQfgWWPnFIJNv
 WRm3bfehWw7vNUkkUwt+zBglF/5DuW7rxZ0EG0ibznTT4L6kmq4J1Ss9eAw/LwbKqJ3A
 0USqa4ifyq3tbUcG92J/PaCMGcyaMIUDlS8ZgO3RCKt3fYMoLzTbgv7tTSSfMrh2QOTO
 qWgisMlsrs/k9IBjXXUyeMV1F8R3wd2KcQDZ5tgDpCHJ2lWjb5LXNd9Lhqj2XTEDi2fm
 n1ow==
X-Gm-Message-State: AOJu0YwImgW61fmfVLPIR9HXWngVD9bq/Z45OlXkTTDvx40yt6ZgiFZT
 tLaV755Tw4UGgecMYAy27cRM08+m917a26jGuKCyDmlybCbjVAIUAAdKXA2cXjHWXHQ/OOnkZk2
 9E4bk4iKs81Jjyrdfo9xl1EstCrOBiuqZyP5eSw==
X-Gm-Gg: ASbGncsF6y3mNIbffDQnUxDUsOuGr+CSgza4DnduTd3gcVSuFullUSac/AuvRP9vpmu
 hkUaUX6bz853cvNvpSCFUcMcnYenDoLU5iMl74whiH2siBaTWliChp+BDSrd2xRsalOkry+Poxn
 Y=
X-Google-Smtp-Source: AGHT+IHsipJSOTxffVcnKSBJE7EJbtryDwRcGhjYhaULrizlsEaoqMLim5pse69N+izPV0e2GcA6SaWCFg47nqSeOgw=
X-Received: by 2002:a05:6402:268c:b0:5dc:80ba:dda1 with SMTP id
 4fb4d7f45d1cf-5dec9d379aamr8066076a12.9.1739461451994; Thu, 13 Feb 2025
 07:44:11 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 13 Feb 2025 07:44:11 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <jwvjz9tan8y.fsf-monnier+emacs@HIDDEN>
References: <CADwFkmk_DtzFDfw16neC5gtTf+o3KX6JBiLt9mwRCTb4KZCzUQ@HIDDEN>
 <jwvjz9tan8y.fsf-monnier+emacs@HIDDEN>
MIME-Version: 1.0
Date: Thu, 13 Feb 2025 07:44:11 -0800
X-Gm-Features: AWEUYZnaWrElPT2pJkaeRwDR2GGHwErab_trHd-DCqtVgk3LQ6fyOHMY4kvWfhs
Message-ID: <CADwFkm=HBaddeBk6KgKmZFNV215tZPv5C867T=UKe3HgMctTww@HIDDEN>
Subject: Re: [GNU ELPA] Use lisp-data-mode in generated *-pkg.el files
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76264-done
Cc: 76264-done <at> debbugs.gnu.org
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: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

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

Thanks, pushed, closing.




Notification sent to Stefan Kangas <stefankangas@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Stefan Kangas <stefankangas@HIDDEN>:
You have taken responsibility. Full text available.

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: Wed, 19 Mar 2025 12:00:02 UTC

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