GNU bug report logs - #16771
24.3.50; pcase generates irritating warnings

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Sun, 16 Feb 2014 20:34:01 UTC

Severity: minor

Tags: confirmed

Merged with 25558, 27545

Found in versions 24.3.50, 25.1

Fixed in version 28.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 16771 in the body.
You can then email your comments to 16771 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16771; Package emacs. (Sun, 16 Feb 2014 20:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Feb 2014 20:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; pcase generates irritating warnings 
Date: Sun, 16 Feb 2014 21:32:58 +0100
Compiling this example:
  ;; -*-lexical-binding:t-*-
  (eval-when-compile
    (require 'pcase))
  
  (defun foo (x)
    (pcase x
      ((and `(,sym)
            (guard (symbolp sym)))
       t)))

with emacs -batch -f batch-byte-compile foo.el produces this output:

  In toplevel form:
  foo.el:5:1:Warning: Unused lexical variable `sym'
  Wrote /tmp/foo.elc

This warning is annoying as sym is obviously used in the guard
expression and replacing sym with _sym also doesn't help because that
produces

  foo.el:5:1:Warning: variable `_sym' not left unused

In GNU Emacs 24.3.50.6 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2014-02-14 on ix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16771; Package emacs. (Mon, 17 Feb 2014 03:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 16771 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 16771 <at> debbugs.gnu.org
Subject: Re: bug#16771: 24.3.50; pcase generates irritating warnings
Date: Sun, 16 Feb 2014 22:27:23 -0500
> This warning is annoying

Agreed.  I have the impression we already have a bug-number for this
one, but maybe not.
I don't know yet how to fix this, sadly,


        Stefan




Forcibly Merged 16771 25558. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 28 Jan 2017 00:24:02 GMT) Full text and rfc822 format available.

Forcibly Merged 16771 25558 27545. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 01 Jul 2017 12:38:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 01 Jul 2017 12:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 25558 <at> debbugs.gnu.org and Clément Pit--Claudel <clement.pitclaudel <at> live.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 03 Sep 2021 08:50: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. (Fri, 01 Oct 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 179 days ago.

Previous Next


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