(edebug-instrument-function): Err if find-function-noselect gives no position.

This commit is contained in:
Richard M. Stallman 2006-07-12 16:04:23 +00:00
parent 39ff5f6495
commit fea7b5149b

View file

@ -3419,6 +3419,8 @@ go to the end of the last sexp, or if that is the same point, then step."
func)
(t
(let ((loc (find-function-noselect func)))
(unless (cdr loc)
(error "Could not find the definition in its file"))
(with-current-buffer (car loc)
(goto-char (cdr loc))
(edebug-eval-top-level-form)