From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12367: 24.2.50; cl-defun: unused key args are picked up as unused variables Date: Thu, 06 Sep 2012 10:18:14 -0400 Message-ID: References: <87txvbz71n@ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346941146 4468 80.91.229.3 (6 Sep 2012 14:19:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 14:19:06 +0000 (UTC) To: 12367@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 16:19:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T9cv8-0001Qj-UR for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 16:19:03 +0200 Original-Received: from localhost ([::1]:47445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cv5-0006yT-NU for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 10:18:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cv3-0006yJ-79 for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9cuv-0000xl-Fu for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cuv-0000xh-Ci for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9cv7-00059K-Hv for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2012 14:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12367 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134694112919779 (code B ref -1); Thu, 06 Sep 2012 14:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2012 14:18:49 +0000 Original-Received: from localhost ([127.0.0.1]:44203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9cuu-00058w-If for submit@debbugs.gnu.org; Thu, 06 Sep 2012 10:18:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41986) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9cur-00058p-Vt for submit@debbugs.gnu.org; Thu, 06 Sep 2012 10:18:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9cuZ-0000t8-Pc for submit@debbugs.gnu.org; Thu, 06 Sep 2012 10:18:33 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cuZ-0000t3-ML for submit@debbugs.gnu.org; Thu, 06 Sep 2012 10:18:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cuT-0006xV-VX for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9cuO-0000qC-8n for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:21 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cuO-0000q5-4n for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 10:18:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FpYew/2dsb2JhbABEsEiDSYEIghYBBVYzCzQSFBgNiEW6CY0mgx4DozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="197700450" Original-Received: from 69-165-135-176.dsl.teksavvy.com (HELO pastel.home) ([69.165.135.176]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Sep 2012 10:18:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CC7DE58B33; Thu, 6 Sep 2012 10:18:14 -0400 (EDT) In-Reply-To: <87txvbz71n@ch.ristopher.com> (Christopher Schmidt's message of "Thu, 6 Sep 2012 13:10:05 +0100 (BST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63850 Archived-At: > ;; -*- lexical-binding: t -*- > (require 'cl-lib) > (cl-defun rms (&key foo)) > Byte compile this piece of code. > Warning: Unused lexical variable `foo' The warning is fine. But I guess the problem is that the normal fix (which is to rename `foo' to `_foo') won't work because it forces callers to use :_foo which is wrong. Stefan