[Top][All Lists]

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

Re: Lexical byte-compilation warnings cleanup

From: Dmitri Paduchikh
Subject: Re: Lexical byte-compilation warnings cleanup
Date: Wed, 21 Aug 2013 11:19:23 +0600
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier wrote replying to Drew Adams:

>> Excuse me for not following the thread and perhaps not understanding what
>> you say here.  Are you saying that if `lexical-binding' is non-nil then
>> a function parameter whose name is the same as a dynamically scoped
>> variable is "not allowed" or does not refer to that variable?

> Indeed, it does not refer to the dynamically bound variable.

The warning seems to say opposite:

In toplevel form:
test.el:3:1:Warning: Argument load-path is not a lexical variable

This is for the following simple test case compiled by Emacs 24.3:

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

(defun my-test (load-path)
  (car load-path))

With best regards
Dmitri Paduchikh

reply via email to

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