[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29585: 26.0.90; Elint gives spurious warning with condition-case-unl

From: John Wiegley
Subject: bug#29585: 26.0.90; Elint gives spurious warning with condition-case-unless-debug
Date: Tue, 05 Dec 2017 14:26:08 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin)

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
     ,@(mapcar (lambda (handler)
                 `((debug ,@(if (listp (car handler)) (car handler)
                              (list (car handler))))
                   ,@(cdr handler)))
--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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]