From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitri Paduchikh Newsgroups: gmane.emacs.devel Subject: Re: Lexical byte-compilation warnings cleanup Date: Wed, 21 Aug 2013 11:19:23 +0600 Message-ID: <87fvu3pqn8.fsf@dpaduchikh.invalid> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377096221 27080 80.91.229.3 (21 Aug 2013 14:43:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 14:43:41 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 21 16:43:41 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VC9dL-0007Sn-BK for ged-emacs-devel@m.gmane.org; Wed, 21 Aug 2013 16:43:39 +0200 Original-Received: from localhost ([::1]:54132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC9dL-0008H1-0p for ged-emacs-devel@m.gmane.org; Wed, 21 Aug 2013 10:43:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC0pU-0003ej-DT for emacs-devel@gnu.org; Wed, 21 Aug 2013 01:19:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC0pL-0000WF-8p for emacs-devel@gnu.org; Wed, 21 Aug 2013 01:19:36 -0400 Original-Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:37088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC0pL-0000Vw-1e for emacs-devel@gnu.org; Wed, 21 Aug 2013 01:19:27 -0400 Original-Received: by mail-la0-f51.google.com with SMTP id es20so1021369lab.10 for ; Tue, 20 Aug 2013 22:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=FWDtotkn9hGbIk+9FUHk6Hu7C0EEy2mXbR6WjltAGvU=; b=wqF+Bcsc5ohDCOCuRALj61zYjXj0HxudOjPDMrYwd5W+rFd0YJCRHeIrynNJ0MJ5oC FsJTovzQh9tibmvkTe1g7fsx21PVY19LcTpQGfm1GY2MVFGA1gsyelRg36aPjb/F0iUF FMMx1fIhGDyVBzWT3L8xW+WhdyihAKZcx5SQt1195+xzbbA3gh9jthcI+YewRvWeWUk6 DFUqW78eqmSaAa87crZqX8JPNKwMUSGx0qSsfTGtfBXkmAp0cbyCrcMNdBhbD4fhWGaA S8tQwSUi8qhKT/OHm5oGZbS62IVRGVmMrERZ5sxEZpPL/3eIiuwNiCX65GrP+3aniyjj oKVg== X-Received: by 10.152.2.74 with SMTP id 10mr4819las.36.1377062365817; Tue, 20 Aug 2013 22:19:25 -0700 (PDT) Original-Received: from paduch.telenet.ru ([46.48.49.226]) by mx.google.com with ESMTPSA id n15sm2036444laa.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 20 Aug 2013 22:19:24 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 20 Aug 2013 16:41:22 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 X-Mailman-Approved-At: Wed, 21 Aug 2013 10:43:26 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162954 Archived-At: 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