GNU bug report logs - #77454
30.1.50; *-pkg.el header comment broken on GNU/NonGNU ELPA (devel)

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Wed, 2 Apr 2025 10:44:01 UTC

Severity: normal

Found in version 30.1.50

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77454 in the body.
You can then email your comments to 77454 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org:
bug#77454; Package emacs. (Wed, 02 Apr 2025 10:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Mendler <mail <at> daniel-mendler.de>:
New bug report received and forwarded. Copy sent to monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org. (Wed, 02 Apr 2025 10:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.1.50; *-pkg.el header comment broken on GNU/NonGNU ELPA (devel)
Date: Wed, 02 Apr 2025 12:43:01 +0200
For example the Transient package has this header:

;; Generated package description from .el  -*- transientno-byte-compile: t -*-




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77454; Package emacs. (Thu, 17 Apr 2025 04:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 77454 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: 77454 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, Philip
 Kaludercic <philipk <at> posteo.net>
Subject: Re: bug#77454: 30.1.50; *-pkg.el header comment broken on
 GNU/NonGNU ELPA (devel)
Date: Thu, 17 Apr 2025 06:11:01 +0200
Daniel Mendler <mail <at> daniel-mendler.de> writes:

> For example the Transient package has this header:
>
> ;; Generated package description from .el  -*- transientno-byte-compile: t -*-

Ping. This problem is still present, for example:

;; Generated package description from mode: lisp-data; .el  -*- corfuno-byte-compile: t -*-




Reply sent to Philip Kaludercic <philipk <at> posteo.net>:
You have taken responsibility. (Thu, 17 Apr 2025 08:15:04 GMT) Full text and rfc822 format available.

Notification sent to Daniel Mendler <mail <at> daniel-mendler.de>:
bug acknowledged by developer. (Thu, 17 Apr 2025 08:15:04 GMT) Full text and rfc822 format available.

Message #13 received at 77454-done <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: 77454-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#77454: 30.1.50; *-pkg.el header comment broken on
 GNU/NonGNU ELPA (devel)
Date: Thu, 17 Apr 2025 08:13:56 +0000
[Message part 1 (text/plain, inline)]
Daniel Mendler <mail <at> daniel-mendler.de> writes:

> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>
>> For example the Transient package has this header:
>>
>> ;; Generated package description from .el  -*- transientno-byte-compile: t -*-
>
> Ping. This problem is still present, for example:
>
> ;; Generated package description from mode: lisp-data; .el  -*- corfuno-byte-compile: t -*-

It seems that there was just a swap-o in elpa-admin.el:

[Message part 2 (text/x-patch, inline)]
diff --git a/elpa-admin.el b/elpa-admin.el
index 7e6db3fbf3..9ff01721ab 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1519,12 +1519,12 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
                  (cdr metadata)))
       (write-region
        (concat (format ";; Generated package description from %s.el  -*- %sno-byte-compile: t -*-\n"
+		       name
 		       (let* ((emacs-req (assq 'emacs requires))
 		              (emacs-vers (car (cadr emacs-req))))
 		         (if (not (and emacs-vers (>= emacs-vers 28)))
 		             ""     ;Need compatibility with Emacs<28.
-		           "mode: lisp-data; "))
-		       name)
+		           "mode: lisp-data; ")))
 	       (prin1-to-string
                 (nconc
                  (list 'define-package
[Message part 3 (text/plain, inline)]
That now generates

;; Generated package description from corfu.el  -*- mode: lisp-data;
   no-byte-compile: t -*-

As this is a serious issue with a simple fix, I'll push the change
myself.  If that was a mistake, anyone can feel free to undo it.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77454; Package emacs. (Thu, 17 Apr 2025 08:55:04 GMT) Full text and rfc822 format available.

Message #16 received at 77454-done <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 77454-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#77454: 30.1.50; *-pkg.el header comment broken on
 GNU/NonGNU ELPA (devel)
Date: Thu, 17 Apr 2025 10:53:36 +0200
Philip Kaludercic <philipk <at> posteo.net> writes:

> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>
>> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>>
>>> For example the Transient package has this header:
>>>
>>> ;; Generated package description from .el  -*- transientno-byte-compile: t -*-
>>
>> Ping. This problem is still present, for example:
>>
>> ;; Generated package description from mode: lisp-data; .el  -*- corfuno-byte-compile: t -*-
>
> It seems that there was just a swap-o in elpa-admin.el:

Indeed.

> As this is a serious issue with a simple fix, I'll push the change
> myself.  If that was a mistake, anyone can feel free to undo it.

Thanks.

Daniel




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77454; Package emacs. (Thu, 17 Apr 2025 15:07:02 GMT) Full text and rfc822 format available.

Message #19 received at 77454-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, 77454-done <at> debbugs.gnu.org
Subject: Re: bug#77454: 30.1.50; *-pkg.el header comment broken on
 GNU/NonGNU ELPA (devel)
Date: Thu, 17 Apr 2025 11:06:33 -0400
> As this is a serious issue with a simple fix, I'll push the change
> myself.  If that was a mistake, anyone can feel free to undo it.

Thanks Philip, and sorry about the blunder,
I only "grep -l" for lisp-data to check that the test correctly decided
which packages could use `lisp-data-mode`, and completely missed that
the generated text was totally messed up.


        Stefan





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 May 2025 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 34 days ago.

Previous Next


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