GNU bug report logs -
#6716
23.2; Setting `find-function-source-path' has no effect.
Previous Next
Reported by: Štěpán Němec <stepnem <at> gmail.com>
Date: Sat, 24 Jul 2010 11:58:02 UTC
Severity: normal
Tags: moreinfo
Found in version 23.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Because `find-library-name' receives as its LIBRARY argument the full
path, but doesn't strip the directory part, setting
`find-function-source-path' has no effect on symbol finding -- Emacs
still tries the path guessed according to load path (which is not
correct in case you have the Elisp sources in directory different from
the compiled files).
This simple change seems to fix it for me:
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 216d91b..f704c63 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -150,10 +150,10 @@ (defun find-library-name (library)
(if (string-match "\\.el\\(c\\(\\..*\\)?\\)\\'" library)
(setq library (replace-match "" t t library)))
(or
- (locate-file library
+ (locate-file (file-name-nondirectory library)
(or find-function-source-path load-path)
(find-library-suffixes))
- (locate-file library
+ (locate-file (file-name-nondirectory library)
(or find-function-source-path load-path)
load-file-rep-suffixes)
(error "Can't find library %s" library)))
Regards,
Štěpán
This bug report was last modified 3 years and 90 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.