From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17467: 24.3; locate-library returning spurious path Date: Sun, 11 May 2014 17:56:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399845448 17855 80.91.229.3 (11 May 2014 21:57:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 21:57:28 +0000 (UTC) Cc: 17467 <17467@debbugs.gnu.org> To: Alex Kosorukoff Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 23:57:20 2014 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 1WjbkG-00014n-Mx for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 23:57:20 +0200 Original-Received: from localhost ([::1]:34456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjbkG-0005F0-AJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 17:57:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjbk5-0005Es-S4 for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 17:57:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjbjy-0004Bj-7x for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 17:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjbjy-0004BL-54 for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 17:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wjbjx-0001eg-PR for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 17:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 May 2014 21:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17467 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17467-submit@debbugs.gnu.org id=B17467.13998453836313 (code B ref 17467); Sun, 11 May 2014 21:57:01 +0000 Original-Received: (at 17467) by debbugs.gnu.org; 11 May 2014 21:56:23 +0000 Original-Received: from localhost ([127.0.0.1]:59789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjbjK-0001dl-KN for submit@debbugs.gnu.org; Sun, 11 May 2014 17:56:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:55349) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjbjJ-0001dW-4R for 17467@debbugs.gnu.org; Sun, 11 May 2014 17:56:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVMXW5vY/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASUYpYhg0wh X-IPAS-Result: ArUGAIDvNVMXW5vY/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASUYpYhg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="62369312" Original-Received: from 23-91-155-216.cpe.pppoe.ca (HELO pastel.home) ([23.91.155.216]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 May 2014 17:56:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3AC48600A4; Sun, 11 May 2014 17:56:15 -0400 (EDT) In-Reply-To: (Alex Kosorukoff's message of "Sun, 11 May 2014 13:45:12 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:88941 Archived-At: > The issue is that locate-library returns spurious paths like ".*/tramp" or > ".*xxx/tramp.gz" I don't see why these are necessarily spurious. Please give very concrete examples, so as to make it crystal clear why they're spurious. > This is both unexpected and incorrect given this function name and > spec. Unexpected to you, obviously, but I'm not convinced it's unexpected in general (after all, I don't remember other bug-reports in this area) and definitely not incorrect. See the docstring of `load': Execute a file of Lisp code named FILE. First try FILE with `.elc' appended, then try with `.el', then try FILE unmodified (the exact suffixes in the exact order are determined by `load-suffixes'). Environment variable references in [...] Of course, there's an ambiguity about how the search is performed, w.r.t. to whether it does: (dolist (s suffixes) (dolist (d load-path) ...))) or (dolist (d load-path) (dolist (s suffixes) ...))) We do the second, so that a compiled file in a later directory does not override a non-compiled file in an earlier directory. Stefan