From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Cleaning up code Date: Tue, 13 Aug 2013 17:17:18 +0200 Message-ID: <87eh9x62o1.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376408285 30498 80.91.229.3 (13 Aug 2013 15:38:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 15:38:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 13 17:38:07 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 1V9Gfe-0008PY-06 for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 17:38:06 +0200 Original-Received: from localhost ([::1]:36474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Gfd-0008Sd-KD for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 11:38:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9GLk-0002SU-3Y for emacs-devel@gnu.org; Tue, 13 Aug 2013 11:17:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9GLb-00067f-6z for emacs-devel@gnu.org; Tue, 13 Aug 2013 11:17:32 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:52841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9GLa-00067B-L9 for emacs-devel@gnu.org; Tue, 13 Aug 2013 11:17:23 -0400 Original-Received: from detlef.gmx.de ([91.41.141.219]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0LobGI-1VkFre0WwE-00gWsV for ; Tue, 13 Aug 2013 17:17:20 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 07 Aug 2013 11:57:23 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:0dqcokT7PUoEYEex+KUsqcjfPcWw69AqyD9ZDBTVHT3zgobPqx2 tllHX+oB79Q2JeHUE7at6MEViTT6l6sRhwIm/i8WNH7CUhZ/EEmC9+LKXPffixISst9qZt/ 4TEBtPNjqnYj4ACy/06CJGJHRJq8isqHFIzWP7IldxGCwCEDN3lKF+PB8wEW1pfBIx1syJb pKtmkbS1tnKCa+CJizQKQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 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:162663 Archived-At: Stefan Monnier writes: > If you feel like cleaning up some code, but are not sure where to look, > try the patch below and then bootstrap Emacs. That should give you > enough warnings to keep you busy for a while. Yay! 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. Is there a way to tell the byte compiler, that these unused declarations are intended here? Otherwise, I would be swamped with warnings, and I won't see the real warnings I should care. > Stefan Best regards, Michael.