From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" <drew.adams@oracle.com> Newsgroups: gmane.emacs.bugs Subject: bug#5661: 23.1.92; `find-library-name' should find a loaded library Date: Sun, 28 Feb 2010 15:11:49 -0800 Message-ID: <D0D99DC7E82F449DAC8687ECF89123D4@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267399420 6488 80.91.229.12 (28 Feb 2010 23:23:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2010 23:23:40 +0000 (UTC) To: 5661@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 01 00:23:36 2010 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1NlsU4-0002Mm-5o for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 00:23:36 +0100 Original-Received: from localhost ([127.0.0.1]:38323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlsU3-0001SV-Ev for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 18:23:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlsTy-0001Rg-QI for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 18:23:30 -0500 Original-Received: from [140.186.70.92] (port=42474 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlsTx-0001RV-PN for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 18:23:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1NlsTw-000502-V9 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 18:23:29 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45088) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1NlsTw-0004zu-P7 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2010 18:23:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1NlsJq-0000SC-Hx; Sun, 28 Feb 2010 18:13:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Drew Adams" <drew.adams@oracle.com> Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2010 23:13:02 +0000 Resent-Message-ID: <handler.5661.B.12673987641732@debbugs.gnu.org> Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5661 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: <emacs-pretest-bug@gnu.org> Original-Received: via spool by submit@debbugs.gnu.org id=B.12673987641732 (code B ref -1); Sun, 28 Feb 2010 23:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2010 23:12:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1NlsJY-0000Rt-62 for submit@debbugs.gnu.org; Sun, 28 Feb 2010 18:12:44 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <drew.adams@oracle.com>) id 1NlsJK-0000Rk-42 for submit@debbugs.gnu.org; Sun, 28 Feb 2010 18:12:42 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:37122 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from <drew.adams@oracle.com>) id 1NlsJG-0008CI-6l for emacs-pretest-bug@gnu.org; Sun, 28 Feb 2010 18:12:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38490) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from <drew.adams@oracle.com>) id 1NlsJF-00008B-T5 for emacs-pretest-bug@gnu.org; Sun, 28 Feb 2010 18:12:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <drew.adams@oracle.com>) id 1NlsJE-0003rv-RV for emacs-pretest-bug@gnu.org; Sun, 28 Feb 2010 18:12:25 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:43714) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <drew.adams@oracle.com>) id 1NlsJE-0003ro-L7 for emacs-pretest-bug@gnu.org; Sun, 28 Feb 2010 18:12:24 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1SNCMtg027092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <emacs-pretest-bug@gnu.org>; Sun, 28 Feb 2010 23:12:23 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1SMu8Bs018044 for <emacs-pretest-bug@gnu.org>; Sun, 28 Feb 2010 23:12:22 GMT Original-Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 55304071267398707; Sun, 28 Feb 2010 15:11:47 -0800 Original-Received: from dradamslap1 (/24.5.179.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 28 Feb 2010 15:11:46 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acq4y2guPOHoKxjBQ8isop0yDXtjDg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4B8AF856.005F:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 28 Feb 2010 18:13:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/bug-gnu-emacs> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35363 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/35363> emacs -Q Put this code in a new file throw-a.el in a directory that is not in your `load-path': (defun foo () (message "foo")) (provide 'throw-a) In that same directory, do this: M-x load-file RET throw-a.el RET M-x load-library RET find-func RET M-: (find-library-name "throw-a") RET It should find the library (since it was loaded and thus provided), but instead it raises an error: Debugger entered--Lisp error: (error "Can't find library throw-a") signal(error ("Can't find library throw-a")) error("Can't find library %s" "throw-a") find-library-name("throw-a") eval((find-library-name "throw-a")) eval-expression((find-library-name "throw-a") nil) call-interactively(eval-expression nil nil) The doc string says nothing about searching only the `load-path'. It's reasonable to think that this should be able to find the library either by checking loaded libraries or by searching the `load-path'. Consider, for example, using `finder-commentary' after having loaded the library using `load-file' but not having the library in the `load-path'. The library is known to the current session, but Emacs isn't smart enough to find it.