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

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

bug#12367: 24.2.50; cl-defun: unused key args are picked up as unused va


From: Stefan Monnier
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

>     ;; -*- 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





reply via email to

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