GNU bug report logs - #20123
24.4.91; Unwarranted "Unused lexical argument" for condition-case

Previous Next

Package: emacs;

Reported by: Oleh Krehel <ohwoeowho <at> gmail.com>

Date: Mon, 16 Mar 2015 18:48:01 UTC

Severity: minor

Merged with 15103

Found in versions 24.3.50, 24.4.91

Fixed in version 25.1

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Oleh Krehel <ohwoeowho <at> gmail.com>
Subject: bug#20123: closed (Re: bug#20123: 24.4.91; Unwarranted "Unused
 lexical argument" for condition-case)
Date: Mon, 16 Mar 2015 20:23:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#20123: 24.4.91; Unwarranted "Unused lexical argument" for condition-case

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 20123 <at> debbugs.gnu.org.

-- 
20123: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20123
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Oleh Krehel <ohwoeowho <at> gmail.com>
Cc: 20123-done <at> debbugs.gnu.org
Subject: Re: bug#20123: 24.4.91;
 Unwarranted "Unused lexical argument" for condition-case
Date: Mon, 16 Mar 2015 16:22:12 -0400
Version: 25.1

> I can confirm that this is fixed in 25.1, thanks. Sorry for the noise.

Thanks,


        Stefan

[Message part 3 (message/rfc822, inline)]
From: Oleh Krehel <ohwoeowho <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.91; Unwarranted "Unused lexical argument" for condition-case
Date: Mon, 16 Mar 2015 19:42:39 +0100
Hello,

Here's an example code:

    (define-error 'unsupported-mode-error "Unsupported mode")
    (condition-case e
        (if (eq 'a 'a)
            (message "test")
          (signal 'unsupported-mode-error major-mode))
      (unsupported-mode-error
       (signal (car e) (cdr e)))
      (error
       (message "error")))

As you can see, I'm trying to re-throw some of the errors, so the variable `e' is used
inside `condition-case'. But I still get an "Unused lexical argument" warning.

regards,
Oleh



This bug report was last modified 10 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.