aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-08-01 19:15:12 +0000
committerRichard M. Stallman1998-08-01 19:15:12 +0000
commitaa8c396e4a8097d012a32355595888919a78ca64 (patch)
tree42de8959c8c914a291ec2caa8dcd808936cf39e6
parent68cf9ca116f5ac764e922b4043898e649f5dc95d (diff)
downloademacs-aa8c396e4a8097d012a32355595888919a78ca64.tar.gz
emacs-aa8c396e4a8097d012a32355595888919a78ca64.zip
(find-function-search-for-symbol): Ignore directories
when looking for a library file.
-rw-r--r--lisp/emacs-lisp/find-func.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 1b2a43495c2..aebd8e68f80 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -28,10 +28,6 @@
28;; 28;;
29;; The funniest thing about this is that I can't imagine why a package 29;; The funniest thing about this is that I can't imagine why a package
30;; so obviously useful as this hasn't been written before!! 30;; so obviously useful as this hasn't been written before!!
31;;
32;; Put this file in your `load-path', byte-compile it and add the
33;; following code in your init file:
34;;
35;; ;;; find-func 31;; ;;; find-func
36;; (find-function-setup-keys) 32;; (find-function-setup-keys)
37;; 33;;
@@ -115,7 +111,8 @@ If VARIABLE-P is nil, `find-function-regexp' is used, otherwise
115 (if (string-match "\\.el\\(c\\)\\'" library) 111 (if (string-match "\\.el\\(c\\)\\'" library)
116 (setq library (substring library 0 (match-beginning 1)))) 112 (setq library (substring library 0 (match-beginning 1))))
117 (let* ((path find-function-source-path) 113 (let* ((path find-function-source-path)
118 (filename (if (file-exists-p library) 114 (filename (if (and (file-exists-p library)
115 (not (file-directory-p library)))
119 library 116 library
120 ;; use `file-name-sans-extension' here? (if it gets fixed) 117 ;; use `file-name-sans-extension' here? (if it gets fixed)
121 (if (string-match "\\(\\.el\\)\\'" library) 118 (if (string-match "\\(\\.el\\)\\'" library)