GNU bug report logs - #39995
28.0.50; Suboptimal error formatting for missing struct slot

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Mon, 9 Mar 2020 08:09:01 UTC

Severity: minor

Found in version 28.0.50

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: 39995-done <at> debbugs.gnu.org
Subject: Re: bug#39995: 28.0.50; Suboptimal error formatting for missing
 struct slot
Date: Sun, 12 Apr 2020 15:13:23 +0200
Am Mo., 9. März 2020 um 09:09 Uhr schrieb Philipp Stephani
<p.stephani2 <at> gmail.com>:
>
>
> The following happens at least in Emacs 27, I haven't checked other
> versions.
>
> $ emacs -Q -batch -l backtrace -l cl-lib -l cl-macs -eval '(cl-struct-slot-offset (quote backtrace-frame) (quote foobar))'
> struct %S has no slot %S: backtrace-frame, foobar
>
> This is because the error symbol `cl-struct-unknown-slot' has the
> message "struct %S has no slot %S", but the error system doesn't use the
> message as a format template.  Probably the error message should just be
> "struct has no slot" or so.

Fixed with commit 36873ef2b2.




This bug report was last modified 5 years and 34 days ago.

Previous Next


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