From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kosorukoff Newsgroups: gmane.emacs.bugs Subject: bug#17467: 24.3; locate-library returning spurious path Date: Sun, 11 May 2014 10:43:09 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c303a25f0c3204f9235ef1 X-Trace: ger.gmane.org 1399830263 11293 80.91.229.3 (11 May 2014 17:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 17:44:23 +0000 (UTC) Cc: 17467 <17467@debbugs.gnu.org> To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 11 19:44:16 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 1WjXnL-000133-Ef for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 19:44:15 +0200 Original-Received: from localhost ([::1]:33820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXnL-00033X-4m for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 May 2014 13:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXnD-00033O-EV for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:44:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjXn8-0005TD-LV for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:44:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjXn8-0005T9-Hu for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WjXn8-0001qw-8m for bug-gnu-emacs@gnu.org; Sun, 11 May 2014 13:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Kosorukoff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 May 2014 17:44:02 +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.13998302187078 (code B ref 17467); Sun, 11 May 2014 17:44:02 +0000 Original-Received: (at 17467) by debbugs.gnu.org; 11 May 2014 17:43:38 +0000 Original-Received: from localhost ([127.0.0.1]:59511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXmj-0001q5-DP for submit@debbugs.gnu.org; Sun, 11 May 2014 13:43:37 -0400 Original-Received: from mail-ob0-f173.google.com ([209.85.214.173]:50677) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjXmh-0001pr-2n for 17467@debbugs.gnu.org; Sun, 11 May 2014 13:43:35 -0400 Original-Received: by mail-ob0-f173.google.com with SMTP id wm4so7052437obc.4 for <17467@debbugs.gnu.org>; Sun, 11 May 2014 10:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=p2YNnYP3lmDzzMtOeGySWQDtKuBp9H3F6xrNPZuuWfI=; b=tL+wgWH15ZzdFEZzHGCKPBQJ0gHyjIl2/19FS0r8uB6kubZZfUqMveLMTaXh2zscdf +mTEOEO8eTy5jwMuQG+x/72wuUq9oa+7V0HrSY4LbsO5Xsfrp0enz9hdb7izE4UftMrE AlBFkrRk2L3tA5ZdiGGki2SlUNL41YmPA4ycotG8ZkwXmY+ePCmLnU7eIyLDCnSW9EdU Yk1rM6B7w82E2Gj+PqkHZTcgiU9Ti/ozjCHgRg2wW7XUVuulWdgdZ6Jcv2k7q7FnC0NE N1ejqT9UU2n05TCZT1xOiuaPQroX8+Ar3QHqd7UhwNpoybpDMCmgci7DTmgZLh7Ag4sr VKMw== X-Received: by 10.182.43.132 with SMTP id w4mr28215204obl.41.1399830209299; Sun, 11 May 2014 10:43:29 -0700 (PDT) Original-Received: by 10.182.240.131 with HTTP; Sun, 11 May 2014 10:43:09 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: enZzo-Aqlv6xl9WgKR54bZU2FPA 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:88909 Archived-At: --001a11c303a25f0c3204f9235ef1 Content-Type: text/plain; charset=UTF-8 You are right, I had my ~/.emacs.d in the load-path. I removed it as my first step to resolve this issue, but then I thought that even if it were in the load-path, returning the path to a file without a valid library extension is an unexpected behavior for locate-library. On Sun, May 11, 2014 at 10:37 AM, Glenn Morris wrote: > Alex Kosorukoff wrote: > > > I found this issue because (locate-library "tramp") was returning > > "/home/alex/.emacs.d/trump" not "../lisp/net/trum.elc". > > I assume there are some typos there... > > Anyway, sounds like you have your ~/.emacs.d directory in load-path? > You are strongly encouraged not to do that. > Newer Emacs will in fact warn you about it. > Because you can get problems just like this one! :) > --001a11c303a25f0c3204f9235ef1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You are right, I had my ~/.emacs.d in the load-path. I rem= oved it as my first step to resolve this issue, but then I thought that eve= n if it were in the load-path, returning the path to a file without a valid= library extension is an unexpected behavior for locate-library.


On Sun, May 1= 1, 2014 at 10:37 AM, Glenn Morris <rgm@gnu.org> wrote:
Alex Kosorukoff wrote:

> I found this issue because (locate-library "tramp") was retu= rning
> "/home/alex/.emacs.d/trump" not "../lisp/net/trum.elc&q= uot;.

I assume there are some typos there...

Anyway, sounds like you have your ~/.emacs.d directory in load-path?
You are strongly encouraged not to do that.
Newer Emacs will in fact warn you about it.
Because you can get problems just like this one! :)

--001a11c303a25f0c3204f9235ef1--