From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: find-function-source-directory
Date: Sun, 18 Feb 2018 20:40:50 +0200 [thread overview]
Message-ID: <83tvue9m4t.fsf@gnu.org> (raw)
In-Reply-To: <CAPM58oj3On8njmY5m0C152-zCV=YOSVfo0HJ8g=QG7BJT-3veQ@mail.gmail.com> (message from Richard Copley on Sun, 18 Feb 2018 16:16:03 +0000)
> From: Richard Copley <rcopley@gmail.com>
> Date: Sun, 18 Feb 2018 16:16:03 +0000
>
> I want 'find-function' to go to the .el files in my build directory
> "c:/projects/emacs/", not the installed .el.gz files
> in "c:/msys64/mingw64/share/emacs/27.0.50/". The docstring for
> 'find-function' suggests it's possible (but doesn't give an example):
>
> The library where FUNCTION is defined is searched for in
> ‘find-function-source-path’, if non-nil, otherwise in ‘load-path’.
>
> I tried each of these in my init file, with no effect:
>
> (setq find-function-source-path "c:/projects/emacs/")
> (setq find-function-source-path "c:/projects/emacs/lisp/")
> (setq find-function-source-path
> (mapcar
> (lambda (x)
> (if (string-match "\\`c:/msys64/mingw64/share/emacs/27.0.50/" x)
> (replace-match "c:/projects/emacs/" nil nil x)
> x))
> load-path))
>
> Did I miss something?
Anything that is called "path" should be a list of directories, nopt a
single file name (this is GNU, remember?). So try something like
this:
(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).
next prev parent reply other threads:[~2018-02-18 18:40 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 ` Eli Zaretskii [this message]
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 ` find-function-source-directory tomas
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=83tvue9m4t.fsf@gnu.org \
--to=eliz@gnu.org \
--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.