GNU bug report logs -
#29585
26.0.90; Elint gives spurious warning with condition-case-unless-debug
Previous Next
Reported by: "John Wiegley" <johnw <at> gnu.org>
Date: Tue, 5 Dec 2017 22:27:02 UTC
Severity: minor
Tags: fixed
Found in version 26.0.90
Fixed in version 27.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 29585 in the body.
You can then email your comments to 29585 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#29585
; Package
emacs
.
(Tue, 05 Dec 2017 22:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"John Wiegley" <johnw <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 05 Dec 2017 22:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Wherever condition-case-unless-debug is used, elint will complain with:
use-package-core.el:1292:Warning: Not an error symbol in error handler: debug
This is due to the definition of condition-case-unless-debug:
--8<---------------cut here---------------start------------->8---
(defmacro condition-case-unless-debug (var bodyform &rest handlers)
"Like `condition-case' except that it does not prevent debugging.
More specifically if `debug-on-error' is set then the debugger will be invoked
even if this catches the signal."
(declare (debug condition-case) (indent 2))
`(condition-case ,var
,bodyform
,@(mapcar (lambda (handler)
`((debug ,@(if (listp (car handler)) (car handler)
(list (car handler))))
,@(cdr handler)))
handlers)))
--8<---------------cut here---------------end--------------->8---
Maybe elint needs to be taught about this case?
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#29585
; Package
emacs
.
(Sun, 14 Jul 2019 18:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 29585 <at> debbugs.gnu.org (full text, mbox):
"John Wiegley" <johnw <at> gnu.org> writes:
> Wherever condition-case-unless-debug is used, elint will complain with:
>
> use-package-core.el:1292:Warning: Not an error symbol in error handler: debug
>
> This is due to the definition of condition-case-unless-debug:
I've now added the macro to the elint definitions.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 14 Jul 2019 18:26:03 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
29585 <at> debbugs.gnu.org and "John Wiegley" <johnw <at> gnu.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 14 Jul 2019 18:26: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
.
(Mon, 12 Aug 2019 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.