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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 27.2; Bad error message for `defface' with no doc string
Date: Wed, 3 Nov 2021 02:30:09 +0000
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)


In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1288)




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.