From: "John Wiegley" <johnw@gnu.org>
To: 29585@debbugs.gnu.org
Subject: bug#29585: 26.0.90; Elint gives spurious warning with condition-case-unless-debug
Date: Tue, 05 Dec 2017 14:26:08 -0800 [thread overview]
Message-ID: <m2bmjcke0v.fsf@newartisans.com> (raw)
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
next reply other threads:[~2017-12-05 22:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 22:26 John Wiegley [this message]
2019-07-14 18:24 ` bug#29585: 26.0.90; Elint gives spurious warning with condition-case-unless-debug Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bmjcke0v.fsf@newartisans.com \
--to=johnw@gnu.org \
--cc=29585@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.