From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Oleh Krehel <ohwoeowho@gmail.com>
Cc: 20123@debbugs.gnu.org
Subject: bug#20123: 24.4.91; Unwarranted "Unused lexical argument" for condition-case
Date: Mon, 16 Mar 2015 15:09:13 -0400 [thread overview]
Message-ID: <jwvbnjs7oc5.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87zj7czsv4.fsf@gmail.com> (Oleh Krehel's message of "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.
Yes, IIRC this bug was introduced in 24.1. It should be partially fixed
in 24.4 if you set byte-compile--use-old-handlers to nil. It should be
fixed in 25.1 where this var defaults to nil.
Can you confirm?
Stefan
next prev parent reply other threads:[~2015-03-16 19:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 18:42 bug#20123: 24.4.91; Unwarranted "Unused lexical argument" for condition-case Oleh Krehel
2015-03-16 18:57 ` Glenn Morris
2015-03-16 19:09 ` Stefan Monnier [this message]
2015-03-16 19:15 ` Oleh Krehel
2015-03-16 20:22 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvbnjs7oc5.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=20123@debbugs.gnu.org \
--cc=ohwoeowho@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).