when it might call us back infinitely.
Fixes: debbugs:10797
+2012-02-23 Dmitry Gutov <dgutov@yandex.ru>
+
+ * emacs-lisp/lisp.el (beginning-of-defun-raw): Don't call end-of-defun
+ when it might call us back infinitely (bug#10797).
+
2012-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuffer.el (completion-table-with-context): Fix inf-loop.
(if (> arg 0)
(dotimes (i arg)
(funcall beginning-of-defun-function))
- ;; Better not call end-of-defun-function directly, in case
- ;; it's not defined.
- (end-of-defun (- arg))))))
+ (dotimes (i (- arg))
+ (funcall end-of-defun-function))))))
((or defun-prompt-regexp open-paren-in-column-0-is-defun-start)
(and (< arg 0) (not (eobp)) (forward-char 1))