GNU bug report logs - #51576
27.2; Bad error message for `defface' with no doc string

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 3 Nov 2021 02:31:01 UTC

Severity: minor

Tags: confirmed, easy

Found in versions 29.0.50, 27.2

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 51576 <at> debbugs.gnu.org
Subject: Re: bug#51576: 27.2;
 Bad error message for `defface' with no doc string
Date: Wed, 3 Nov 2021 15:29:44 -0700
tags 51576 + confirmed easy
found 51576 29.0.50
thanks

Drew Adams <drew.adams <at> oracle.com> writes:

> emacs -Q
>
> Eval this:
>
> (defface foo '((t :background "gray70" :inherit region))
>   :group 'faces :type 'sexp)
>
> Instead of telling you the doc string is missing, the error message says
> this:
>
> Debugger entered--Lisp error: (error "Unknown keyword faces")
>   signal(error ("Unknown keyword faces"))
>   error("Unknown keyword %s" faces)
>   custom-handle-keyword(foo faces :type custom-face)
>   custom-handle-all-keywords(foo (faces :type sexp) custom-face)
>   custom-declare-face(foo ((t :background "gray70" :inherit region)) :group faces :type sexp)
>   eval-region(146 231 t #f(compiled-function (ignore) #<bytecode 0x2293dd9>))  ; Reading at buffer position 151
>   elisp--eval-defun()
>   eval-defun(nil)
>   funcall-interactively(eval-defun nil)
>   call-interactively(eval-defun nil nil)
>   command-execute(eval-defun)

I can reproduce this on current master.  I agree that it would be better
to say that the docstring is missing here.




This bug report was last modified 3 years and 255 days ago.

Previous Next


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