summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-12-27 16:17:10 +0000
committerRichard M. Stallman <rms@gnu.org>2004-12-27 16:17:10 +0000
commit9f14330b7bd7166616c72898e1f33fd556266b1c (patch)
treec2ca217e661693de838799aacf4bdbffee2ee7c8 /lisp/emacs-lisp
parent5cb345c184f835909aed741d09f43c1ff5b8c943 (diff)
downloademacs-9f14330b7bd7166616c72898e1f33fd556266b1c.tar.gz
emacs-9f14330b7bd7166616c72898e1f33fd556266b1c.tar.bz2
emacs-9f14330b7bd7166616c72898e1f33fd556266b1c.zip
(find-function-noselect): Call symbol-file with `defun'.
(find-variable-noselect): Call symbol-file with `defvar'.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/find-func.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 2a58c10f827..a70adb4d423 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -242,7 +242,7 @@ in `load-path'."
(let ((library
(cond ((eq (car-safe def) 'autoload)
(nth 1 def))
- ((symbol-file function)))))
+ ((symbol-file function 'defun)))))
(find-function-search-for-symbol function nil library))))
(defalias 'function-at-point 'function-called-at-point)
@@ -347,8 +347,7 @@ The library where VARIABLE is defined is searched for in FILE or
`find-function-source-path', if non nil, otherwise in `load-path'."
(if (not variable)
(error "You didn't specify a variable"))
- ;; Fixme: I think `symbol-file' should be fixed instead. -- fx
- (let ((library (or file (symbol-file (cons 'defvar variable)))))
+ (let ((library (or file (symbol-file variable 'defvar))))
(find-function-search-for-symbol variable 'variable library)))
;;;###autoload