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: Wed, 27 Apr 2016 23:37:26 +0200 Message-ID: <87oa8uspgp.fsf@gnus.org> References: <D0D99DC7E82F449DAC8687ECF89123D4@us.oracle.com> <8760v2u4oa.fsf@gnus.org> <bacd6c73-ea4c-4655-9347-30c9af444a55@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461793103 3420 80.91.229.3 (27 Apr 2016 21:38:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 21:38:23 +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 Wed Apr 27 23:38:11 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 1avX9u-0006zr-6d for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 23:38:10 +0200 Original-Received: from localhost ([::1]:45561 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 1avX9t-0004ZJ-H2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 17:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1avX9p-0004Vn-6j for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 17:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1avX9l-0004be-UU for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 17:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1avX9l-0004ba-Qr for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 17:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1avX9l-0005Uk-LZ for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 17:38:01 -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: Wed, 27 Apr 2016 21:38:01 +0000 Resent-Message-ID: <handler.5661.B5661.146179305121082@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.146179305121082 (code B ref 5661); Wed, 27 Apr 2016 21:38:01 +0000 Original-Received: (at 5661) by debbugs.gnu.org; 27 Apr 2016 21:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:50866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1avX9H-0005Ty-GX for submit@debbugs.gnu.org; Wed, 27 Apr 2016 17:37:31 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:50938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@gnus.org>) id 1avX9G-0005Tr-Is for 5661@debbugs.gnu.org; Wed, 27 Apr 2016 17:37:31 -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 1avX9E-00042G-6N; Wed, 27 Apr 2016 23:37:29 +0200 In-Reply-To: <bacd6c73-ea4c-4655-9347-30c9af444a55@default> (Drew Adams's message of "Wed, 27 Apr 2016 14:28:55 -0700 (PDT)") 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:116994 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/116994> 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no