GNU bug report logs - #12367
24.2.50; cl-defun: unused key args are picked up as unused variables

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Thu, 6 Sep 2012 12:20:02 UTC

Severity: minor

Found in version 24.2.50

Done: Christopher Schmidt <christopher <at> ch.ristopher.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: 12367 <at> debbugs.gnu.org
Subject: bug#12367: 24.2.50; cl-defun: unused key args are picked up as unused variables
Date: Thu,  6 Sep 2012 13:10:05 +0100 (BST)
severity: minor

    ;; -*- lexical-binding: t -*-

    (require 'cl-lib)
    (cl-defun rms (&key foo))

Byte compile this piece of code.

    Warning: Unused lexical variable `foo'

GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2012-09-06.

        Christopher




This bug report was last modified 11 years and 356 days ago.

Previous Next


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