From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen <larsi@gnus.org> Newsgroups: gmane.emacs.bugs Subject: bug#5661: 23.1.92; `find-library-name' should find a loaded library Date: Sun, 01 May 2016 18:39:05 +0200 Message-ID: <87k2jdpwba.fsf@gnus.org> References: <D0D99DC7E82F449DAC8687ECF89123D4@us.oracle.com> <8760v2u4oa.fsf@gnus.org> <bacd6c73-ea4c-4655-9347-30c9af444a55@default> <87oa8uspgp.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462120847 30685 80.91.229.3 (1 May 2016 16:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 May 2016 16:40:47 +0000 (UTC) Cc: 5661@debbugs.gnu.org To: Drew Adams <drew.adams@oracle.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 01 18:40:34 2016 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 ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1awuQ4-0003Kc-Fi for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 18:40:32 +0200 Original-Received: from localhost ([::1]:33613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1awuQ0-0000Bk-MX for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 12:40:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1awuPp-0008Sl-BA for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 12:40:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1awuPd-0002Wh-JI for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 12:40:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1awuPd-0002Uy-H2 for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 12:40:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1awuPa-0000oL-2L for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 12:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen <larsi@gnus.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2016 16:40:02 +0000 Resent-Message-ID: <handler.5661.B5661.14621207533044@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5661 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5661-submit@debbugs.gnu.org id=B5661.14621207533044 (code B ref 5661); Sun, 01 May 2016 16:40:02 +0000 Original-Received: (at 5661) by debbugs.gnu.org; 1 May 2016 16:39:13 +0000 Original-Received: from localhost ([127.0.0.1]:60849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1awuOn-0000n2-Bv for submit@debbugs.gnu.org; Sun, 01 May 2016 12:39:13 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:39588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@gnus.org>) id 1awuOl-0000mt-UK for 5661@debbugs.gnu.org; Sun, 01 May 2016 12:39:12 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <larsi@gnus.org>) id 1awuOg-00007F-3a; Sun, 01 May 2016 18:39:09 +0200 In-Reply-To: <87oa8uspgp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 27 Apr 2016 23:37:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Xref: news.gmane.org gmane.emacs.bugs:117517 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/117517> Lars Ingebrigtsen <larsi@gnus.org> writes: > Drew Adams <drew.adams@oracle.com> writes: > >>> > 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'. >>> >>> That would be nice. But does Emacs have a record of all files it has >>> done `load-file' on somewhere? >> >> Sorry, I'm reading these really quickly. But does `load-history' >> apply here? > > Indeed it seems like that should do the trick. Does anybody object to > me extending `find-library-name' to check with `load-history' after it's > gone through the paths it's currently searching? Nobody seemed to object, so I've now implemented it. It was more twiddly than I assumed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no