From 7b1824c287f633ab547d85ecf2b0fff4f03e3596 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 3 Jan 2003 21:12:01 +0000 Subject: [PATCH] (find-variable-noselect): Make it work with new load-history format. --- lisp/emacs-lisp/find-func.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 1ca39b461f7..4192209b7d8 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -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 -- 2.39.2