]> code.delx.au - gnu-emacs/commitdiff
(eshell-test-goto-func): Call symbol-file with `defun'.
authorRichard M. Stallman <rms@gnu.org>
Mon, 27 Dec 2004 16:15:53 +0000 (16:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 27 Dec 2004 16:15:53 +0000 (16:15 +0000)
lisp/eshell/esh-test.el

index 076505da14efaf8d6584cd6cecda8d9aff625aa1..c1b121bbf73e39290939e067da7963b006100350 100644 (file)
   (let ((fsym (get-text-property (point) 'test-func)))
     (when fsym
       (let* ((def (symbol-function fsym))
-            (library (locate-library (symbol-file fsym)))
+            (library (locate-library (symbol-file fsym 'defun)))
             (name (substring (symbol-name fsym)
                              (length "eshell-test--")))
             (inhibit-redisplay t))