From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: find-function-source-directory
Date: Mon, 19 Feb 2018 12:44:20 +0100 [thread overview]
Message-ID: <20180219114420.GA16648@tuxteam.de> (raw)
In-Reply-To: <CAPM58ohNk_aufUKOyNSY2RwXJCtms0A9XQHe4U1+gKh8B97Srw@mail.gmail.com>
-----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 <eliz@gnu.org> wrote:
> >> Date: Sun, 18 Feb 2018 20:40:50 +0200
> >> From: Eli Zaretskii <eliz@gnu.org>
> >>
> >> (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-----
next prev parent reply other threads:[~2018-02-19 11:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-18 16:16 find-function-source-directory Richard Copley
2018-02-18 18:40 ` find-function-source-directory Eli Zaretskii
2018-02-18 19:35 ` find-function-source-directory Eli Zaretskii
2018-02-19 11:13 ` find-function-source-directory Richard Copley
2018-02-19 11:44 ` tomas [this message]
2018-02-19 15:36 ` find-function-source-directory Eli Zaretskii
2018-02-19 15:43 ` find-function-source-directory tomas
2018-02-18 19:53 ` find-function-source-directory Drew Adams
2018-02-18 20:18 ` find-function-source-directory Eli Zaretskii
[not found] ` <<a8455f40-e18a-44ac-8523-435e84f2d2e8@default>
[not found] ` <<83h8qe9hld.fsf@gnu.org>
2018-02-18 21:56 ` find-function-source-directory Drew Adams
2018-02-19 3:24 ` find-function-source-directory Richard Copley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180219114420.GA16648@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.