bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#25558: Spurious warnings with variables mentioned only pcase guard p


From: Clément Pit--Claudel
Subject: bug#25558: Spurious warnings with variables mentioned only pcase guard patterns
Date: Fri, 27 Jan 2017 19:14:54 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

The following causes a warning (unused variable 'b'):

  (pcase '(1 2) ((and `(,a ,b) (guard (equal a b))) a))

This is due to pcase let-binding 'a' twice; once around the guard test ('(equal 
a b)'), and once around the body ('a').

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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