all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* find-function-source-directory
@ 2018-02-18 16:16 Richard Copley
  2018-02-18 18:40 ` find-function-source-directory Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Copley @ 2018-02-18 16:16 UTC (permalink / raw)
  To: help-gnu-emacs

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?



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-19 15:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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       ` 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

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.