mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 16:20:17 -08:00
(find-function-noselect): Call symbol-file with `defun'.
(find-variable-noselect): Call symbol-file with `defvar'.
This commit is contained in:
parent
5cb345c184
commit
9f14330b7b
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue