GNU bug report logs -
#51576
27.2; Bad error message for `defface' with no doc string
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51576 in the body.
You can then email your comments to 51576 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51576
; Package
emacs
.
(Wed, 03 Nov 2021 02:31:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 03 Nov 2021 02:31:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51576
; Package
emacs
.
(Wed, 03 Nov 2021 02:37:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 51576 <at> debbugs.gnu.org (full text, mbox):
> (defface foo '((t :background "gray70" :inherit region))
> :group 'faces :type 'sexp)
Typo (doesn't matter for the report though).
Remove the :type 'sexp.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51576
; Package
emacs
.
(Wed, 03 Nov 2021 22:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 51576 <at> debbugs.gnu.org (full text, mbox):
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.
Added tag(s) easy and confirmed.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 03 Nov 2021 22:30:03 GMT)
Full text and
rfc822 format available.
bug Marked as found in versions 29.0.50.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 03 Nov 2021 22:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51576
; Package
emacs
.
(Thu, 04 Nov 2021 18:24:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 51576 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefan <at> marxist.se> writes:
> I can reproduce this on current master. I agree that it would be better
> to say that the docstring is missing here.
I've now done this on the trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 29.1, send any further explanations to
51576 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 04 Nov 2021 18:24:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 03 Dec 2021 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 145 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.