GNU bug report logs - #79172
[PATCH] Add SPDX support to copyright.el

Previous Next

Package: emacs;

Reported by: Antero Mejr <mail <at> antr.me>

Date: Mon, 4 Aug 2025 21:38:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 79172 AT debbugs.gnu.org.

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

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


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79172; Package emacs. (Mon, 04 Aug 2025 21:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Antero Mejr <mail <at> antr.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Aug 2025 21:38:02 GMT) Full text and rfc822 format available.

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

From: Antero Mejr <mail <at> antr.me>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add SPDX support to copyright.el
Date: Mon, 04 Aug 2025 21:36:54 +0000
[Message part 1 (text/plain, inline)]
Tags: patch

This patch updates copyright.el to auto-insert SPDX- declarations. There
is one new user-facing command 'copyright-spdx' and a few new
customizable variables.

It also makes the 'copyright' command use 'comment-add' so that the
comment marker ;; is correct in Lisp modes, for both the SPDX and
default formats.

While working on this I also noticed the copyright skeletons in
autoinsert.el are inconsistent - they have an extra space relative to
those of copyright.el. IMO autoinsert.el should be adjusted to use the
copyright.el code instead of reimplementing it.



In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2025-05-04 built on pop-os
Repository revision: 159e3a981ed5482393182b036e38818d42405c90
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Pop!_OS 22.04 LTS

[0001-Add-SPDX-support-to-copyright.el.patch (text/x-diff, attachment)]

This bug report was last modified 10 days ago.

Previous Next


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