From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Cleaning up code Date: Tue, 13 Aug 2013 12:30:47 -0400 Message-ID: References: <87eh9x62o1.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376411472 17134 80.91.229.3 (13 Aug 2013 16:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 16:31:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 13 18:31:13 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 1V9HUz-0006VD-N7 for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 18:31:09 +0200 Original-Received: from localhost ([::1]:33662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HUz-00007d-0L for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 12:31:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HUn-00005I-Q5 for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9HUf-00015x-9p for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:30:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HUf-00015i-0y for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:30:49 -0400 Original-Received: from [98.143.210.201] (port=52934 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1V9HUe-0000Kl-FU; Tue, 13 Aug 2013 12:30:48 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 36FB6663DD; Tue, 13 Aug 2013 12:30:47 -0400 (EDT) In-Reply-To: <87eh9x62o1.fsf@gmx.de> (Michael Albinus's message of "Tue, 13 Aug 2013 17:17:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:162670 Archived-At: > However, setting `byte-compile-force-lexical-warnings' to t is too > coarse. For example, Tramp's macro `with-parsed-tramp-file-name' > let-binds several variables "just in case". They are reported as unused > then, on every invocation of that macro. Yup, that's one of the main problems: when a single let in the source ends up duplicated after expansion so some expansions may use it while others end up not using it. We need to add some way to tell Emacs that it should check "the sum of all uses" or something like that. In your case, this "sum" is open-ended, so we should instead just tell it not to check at all. Stefan