]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-variable-noselect): Make it work
authorDave Love <fx@gnu.org>
Fri, 3 Jan 2003 21:12:01 +0000 (21:12 +0000)
committerDave Love <fx@gnu.org>
Fri, 3 Jan 2003 21:12:01 +0000 (21:12 +0000)
with new load-history format.

lisp/emacs-lisp/find-func.el

index 1ca39b461f704bc27bf375006e2167579693b14b..4192209b7d8699dd6107460709fd92349d23b836 100644 (file)
@@ -312,7 +312,8 @@ 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"))
-  (let ((library (or file (symbol-file variable))))
+  ;; Fixme: I think `symbol-file' should be fixed instead.  -- fx 
+  (let ((library (or file (symbol-file (cons 'defvar variable)))))
     (find-function-search-for-symbol variable 'variable library)))
 
 ;;;###autoload