* emacs-lisp/find-func.el (find-function-noselect): Handle

subroutines.
* help-fns.el (help-C-file-name): Added autoload mark for
`find-function-noselect'.
This commit is contained in:
Masatake YAMATO 2005-05-30 18:06:02 +00:00
parent e9bd578264
commit 6dfa731f20
3 changed files with 11 additions and 3 deletions

View file

@ -246,8 +246,6 @@ searched for in `find-function-source-path' if non nil, otherwise
in `load-path'."
(if (not function)
(error "You didn't specify a function"))
(and (subrp (symbol-function function))
(error "%s is a primitive function" function))
(let ((def (symbol-function function))
aliases)
(while (symbolp def)
@ -265,6 +263,8 @@ in `load-path'."
(let ((library
(cond ((eq (car-safe def) 'autoload)
(nth 1 def))
((subrp def)
(help-C-file-name def 'subr))
((symbol-file function 'defun)))))
(find-function-search-for-symbol function nil library))))