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: Thu, 22 Aug 2013 11:05:07 +0600 Message-ID: <8761uypb7g.fsf@dpaduchikh.invalid> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377147935 5373 80.91.229.3 (22 Aug 2013 05:05:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2013 05:05:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 22 07:05:34 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 1VCN5S-0004qt-Am for ged-emacs-devel@m.gmane.org; Thu, 22 Aug 2013 07:05:34 +0200 Original-Received: from localhost ([::1]:57728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCN5R-0006jK-Qn for ged-emacs-devel@m.gmane.org; Thu, 22 Aug 2013 01:05:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCN5D-0006iQ-GR for emacs-devel@gnu.org; Thu, 22 Aug 2013 01:05:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCN55-00069O-3h for emacs-devel@gnu.org; Thu, 22 Aug 2013 01:05:19 -0400 Original-Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:40728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCN54-00069C-TQ for emacs-devel@gnu.org; Thu, 22 Aug 2013 01:05:11 -0400 Original-Received: by mail-la0-f43.google.com with SMTP id ep20so1040997lab.30 for ; Wed, 21 Aug 2013 22:05:10 -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=T52HGgtyc/iNuqSUPgF7lUodXqhJ414l/0xf1QEBYuM=; b=G+KMYAvMOnKO5lLgvCeGK0IhtuK6acvZJR2r+VxScccDHCR4JyOBVg03j4lA+zlLUC Qp3rvKl2wuq5wKb+25W882Yww5O5Oxlg6YA6zXV/I/eXEzYb0bAJOXPXrDoW/Z7NSkY5 98U9Efu1twjEB8yLFsnw9eGQL4WP4J8PSOVvLyZrlpJrqC8IshGe9WhIdbfmpAro225R JZ/4ApCqMvw1IG8/ul5dO+XBReXMPFGKrkz1F7xA48LsT54qte/DE2joTCjM2amMZs3L DrC3ETxWNzk4UtRHROSPuwJ8y4oU2eXqIfmyCbph2++2iy4a+weDrbfpVfotV8ArPgre x/PQ== X-Received: by 10.112.126.37 with SMTP id mv5mr10002211lbb.20.1377147909909; Wed, 21 Aug 2013 22:05:09 -0700 (PDT) Original-Received: from paduch.telenet.ru ([46.48.49.226]) by mx.google.com with ESMTPSA id b3sm4001138laf.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 22:05:08 -0700 (PDT) In-Reply-To: (Barry OReilly's message of "Wed, 21 Aug 2013 19:12:52 -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::22b 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:162968 Archived-At: Barry OReilly wrote: >>> The warning seems to say opposite: >> Yup. The way I thought about it when I wrote it is that `load-path' >> is a dynamically-scoped var, not a lexical var. But indeed, here it >> will (locally) be a lexical var, so the wording is rather poor. >> >> Suggestions for better wording? > How about: > Warning: Lexically bound argument %s is already defined as dynamically > bound IMO, this does not explain what happens actually. I would rather prefer such variant: Warning: Lexically bound argument shadows dynamic variable %s -- With best regards Dmitri Paduchikh