From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Claesson Newsgroups: gmane.emacs.bugs Subject: bug#12357: 24.2; list-load-path-shadow should ignore .dir-locals.el Date: Sat, 08 Sep 2012 16:08:03 +0200 Message-ID: <87ipbor4jg.fsf@bredband.net> References: <87harcsi6n.fsf@bredband.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347113325 357 80.91.229.3 (8 Sep 2012 14:08:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 14:08:45 +0000 (UTC) Cc: 12357@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 16:08:47 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TALiI-0006Ma-Ge for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 16:08:46 +0200 Original-Received: from localhost ([::1]:43297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TALiF-0008Jy-0j for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 10:08:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TALiC-0008Js-IC for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 10:08:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TALiB-00045j-Ah for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 10:08:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TALiB-00045d-6x for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 10:08:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TALiY-0001uT-5J for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 10:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan Claesson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Sep 2012 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12357-submit@debbugs.gnu.org id=B12357.13471133107304 (code B ref 12357); Sat, 08 Sep 2012 14:09:02 +0000 Original-Received: (at 12357) by debbugs.gnu.org; 8 Sep 2012 14:08:30 +0000 Original-Received: from localhost ([127.0.0.1]:48667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TALi1-0001tk-6m for submit@debbugs.gnu.org; Sat, 08 Sep 2012 10:08:30 -0400 Original-Received: from smtprelay-b22.telenor.se ([195.54.99.213]:54881) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TALhy-0001tb-7j for 12357@debbugs.gnu.org; Sat, 08 Sep 2012 10:08:27 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 51DCDEBA37 for <12357@debbugs.gnu.org>; Sat, 8 Sep 2012 16:08:01 +0200 (CEST) X-SMTPAUTH-B2: [b157288] X-SENDER-IP: [85.224.212.102] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlVXAKxQS1BV4NRmPGdsb2JhbABFhR6FI7ERGQEBAQE3NIIgAQEEAVYjBQsIAw4KCSUPAQQlChoTiAoKulUUkTUDqGI X-IronPort-AV: E=Sophos;i="4.80,391,1344204000"; d="scan'208";a="405648391" Original-Received: from c-66d4e055.1542-1-64736c20.cust.bredbandsbolaget.se (HELO goblin) ([85.224.212.102]) by ipb2.telenor.se with ESMTP; 08 Sep 2012 16:08:01 +0200 In-Reply-To: (Glenn Morris's message of "Fri, 07 Sep 2012 21:13:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63938 Archived-At: I did not think about that kind of shadowing. I agree that would also be nice to have reported. But i think it is a different thing. Also it could be that the user wants the lower dir-locals file to shadow the higher one. But i guess no user wants one lisp file to shadow another in the load-path. Maybe a separate command could search for dir-local files shadowing other dir-local files for a given directory or list of directories. (I could submit such a function.) I usually run list-load-path-shadows in the same go as compiling my elisp directory and just like it is nice to have no compiler warnings it is nice to have no shadow warnings. Regards, /Johan Glenn Morris writes: > Johan Claesson wrote: > >> A minor suggestion for shadow.el. list-load-path-shadows will detect >> if there are two lisp files with the same name in the load-path. Such >> a clash could cause problems for normal lisp files. But i think it is >> normal to have multiple .dir-locals.el files spread across the >> load-path. In order to avoid false warnings list-load-path-shadows >> could ignore the special file name .dir-locals.el. > > I think you are right, but if any one given directory has more than one > dir-locals file above it in the directory tree, then the "lowest" one > does indeed shadow all the "higher" ones. So it might be good to still > report such cases?