NetBSD Problem Report #58071
From he@smistad.uninett.no Sun Mar 24 11:10:25 2024
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6601C1A9239
for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Mar 2024 11:10:25 +0000 (UTC)
Message-Id: <20240324111018.8E37143F099@smistad.uninett.no>
Date: Sun, 24 Mar 2024 12:10:18 +0100 (CET)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gnats send-pr.el fails to work with emacs 28.x
X-Send-Pr-Version: 3.95
>Number: 58071
>Category: bin
>Synopsis: gnats send-pr.el fails to work with emacs 28.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 24 11:15:00 +0000 2024
>Originator: Havard Eidnes
>Release: NetBSD 10.0_RC3
>Organization:
I try...
>Environment:
System: NetBSD smistad.uninett.no 10.0_RC3 NetBSD 10.0_RC3 (GENERIC) #9: Mon Feb 5 17:38:53 CET 2024 he@smistad.uninett.no:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
send-pr.el version 3.95 fails to load in emacs 28.2 with:
defconst: Invalid function: `(("Category" send-pr::set-categories (,(or (gnats::get-config "DEFAULT_CATEGORY") nil)) enum) ("Class" (("sw-bug") ("doc-bug") ("change-request") ("support")) (,(or (gnats::get-config "DEFAULT_CLASS") 0)) enum) ("Confidential" (("yes") ("no")) (,(or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1)) enum) ("Severity" (("non-critical") ("serious") ("critical")) (,(or (gnats::get-config "DEFAULT_SEVERITY") 1)) enum) ("Priority" (("low") ("medium") ("high")) (,(or (gnats::get-config "DEFAULT_PRIORITY") 1)) enum) ("Release" nil (,(or (gnats::get-config "DEFAULT_RELEASE") "<NetBSD-current source date>")) text) ("Submitter-Id" nil (,(or (gnats::get-config "SUBMITTER") "net")) text) ("Synopsis" nil nil text (lambda (a b c) (gnats::set-mail-field "Subject" c))))
This comes from this part in send-pr.el:
;;; Ideally we would get all the following values from a central database
;;; during runtime instead of having them here in the code.
;;;
(defconst send-pr::fields
(` (("Category" send-pr::set-categories
(, (or (gnats::get-config "DEFAULT_CATEGORY") nil)) enum)
("Class" (("sw-bug") ("doc-bug") ("change-request") ("support"))
(, (or (gnats::get-config "DEFAULT_CLASS") 0)) enum)
("Confidential" (("yes") ("no"))
(, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1)) enum)
("Severity" (("non-critical") ("serious") ("critical"))
(, (or (gnats::get-config "DEFAULT_SEVERITY") 1)) enum)
("Priority" (("low") ("medium") ("high"))
(, (or (gnats::get-config "DEFAULT_PRIORITY") 1)) enum)
("Release" nil
(, (or (gnats::get-config "DEFAULT_RELEASE") "<NetBSD-current source date>"))
text)
("Submitter-Id" nil
(, (or (gnats::get-config "SUBMITTER") "net")) text)
("Synopsis" nil nil text
(lambda (a b c) (gnats::set-mail-field "Subject" c)))))
"AList, keyed on the name of the field, of:
1) The field name.
2) The list of completions. This can be a list, a function to call, or nil.
3) The default value.
4) The type of the field.
5) A sub-function to call when changed.")
My send-pr.el file is dated November 1998, so has
not changed since, and quite a bit of water has flowed
into the ocean since then, and quite a few things have
happened to GNU emacs since then too...
This appears to be the same version
we still distribute as part of send-pr in NetBSD.
>How-To-Repeat:
Try to use M-x send-pr and watch it fail.
>Fix:
Sorry, don't know.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.