From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: find-function-source-directory Date: Mon, 19 Feb 2018 12:44:20 +0100 Message-ID: <20180219114420.GA16648@tuxteam.de> References: <83tvue9m4t.fsf@gnu.org> <83mv069jlp.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1519041034 19119 195.159.176.226 (19 Feb 2018 11:50:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 11:50:34 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 12:50:29 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enjxO-0003Ja-B8 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 12:50:06 +0100 Original-Received: from localhost ([::1]:49703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enjzQ-0002YU-Dn for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 06:52:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enjrz-0005ao-HV for help-gnu-emacs@gnu.org; Mon, 19 Feb 2018 06:44:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enjrw-0002zj-FV for help-gnu-emacs@gnu.org; Mon, 19 Feb 2018 06:44:31 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:51824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enjrw-0002vX-1B for help-gnu-emacs@gnu.org; Mon, 19 Feb 2018 06:44:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=20171004; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=mQOFcdl5ilaERZPKSOeziFGw14xeA489brI5fyBIw3c=; b=baMQFqhGny12LaHHSs3sTPmj6CNmWlW2d+iK12VtJFvk4RRCRJqEoILtFttXY0bjQ2Bt+lBfIUYsM1k1CzCoRi8w+/KrYQZMjbaP8lDObQhTu4NTLEZEVEUDszzHcVaiCcmxGTb9ardRTqv7CQJdv4teB5qRd0916v9bg2wwwfHFO0zL3yyC6EvPEr5XZ4wjjHxmf59Vbrq1F751PspdC+vO/Vwo6L+DyJnPNh/99J+r/lbEaQig51EvE9AjEbMf8Rdxh4BVFZvJZZO7wzPSiN07Lsoc56l1wdDsJz8a4tIjGWs/S6ZL2FQGQQZa9FUfZT3189OiDXvR5o1oOnzH4Q==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1enjrp-0005jT-0W for help-gnu-emacs@gnu.org; Mon, 19 Feb 2018 12:44:21 +0100 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116045 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Feb 19, 2018 at 11:13:12AM +0000, Richard Copley wrote: > On 18 February 2018 at 19:35, Eli Zaretskii wrote: > >> Date: Sun, 18 Feb 2018 20:40:50 +0200 > >> From: Eli Zaretskii > >> > >> (setq find-function-source-path > >> '("c:/projects/emacs/lisp/" > >> "c:/projects/emacs/lisp/emacs-lisp/" > >> "c:/projects/emacs/lisp/net/" > >> ...)) > >> > >> (add more subdirectories instead of the ellipsis). > > > > This notwithstanding, I think that doc string is misleading: what you > > want to accomplish isn't possible, because find-function-source-path > > cannot override load-path in this use case. Or maybe I'm missing > > something. > > Ah, thanks. (Sorry, I missed this message earlier.) > I'm wondering if there is there any use for > find-function-source-path, if not that. Perhaps it > is an ex-feature? Hm. Looking at the elisp sources, it seems to me that this variable is used (cf. find-library-name) in a way that corresponds with its docstring. An extract: (defun find-library-name (library) "Return the absolute file name of the Emacs Lisp source of LIBRARY. LIBRARY should be a string (the name of the library)." ;; If the library is byte-compiled, try to find a source library by ;; the same name. (when (string-match "\\.el\\(c\\(\\..*\\)?\\)\\'" library) (setq library (replace-match "" t t library))) (or (locate-file library (or find-function-source-path load-path) (find-library-suffixes)) [...] So definitely not an ex-feature (at least not on 27.0.50). I don't know why ti isn't doing what you expect, though... Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlqKuJQACgkQBcgs9XrR2kaWYACggHyx+NU6iCJ0cadfrO2d78TF GW0An1xe9g9gfrd7L87WV8Lwmg/dm0hH =UbYA -----END PGP SIGNATURE-----