[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-function-source-directory
From: |
Eli Zaretskii |
Subject: |
Re: find-function-source-directory |
Date: |
Sun, 18 Feb 2018 20:40:50 +0200 |
> 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).
RE: find-function-source-directory, Drew Adams, 2018/02/18