Commit 48c828b9 authored by Glenn Morris's avatar Glenn Morris

* imenu.el (imenu-default-create-index-function):

Tweak infinite loop test to check for forward motion as well as none.
parent cd87ae10
2013-02-01 Glenn Morris <rgm@gnu.org>
* imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.
2013-02-01 Alex Harsanyi <AlexHarsanyi@gmail.com>
* net/soap-client.el (soap-invoke): Encode the string for
......
......@@ -676,12 +676,12 @@ The alternate method, which is the one most often used, is to call
;; in these major modes. But save that change for later.
(cond ((and imenu-prev-index-position-function
imenu-extract-index-name-function)
(let ((index-alist '()) (pos -1)
(let ((index-alist '()) (pos (point-max))
name)
(goto-char (point-max))
(goto-char pos)
;; Search for the function
(while (funcall imenu-prev-index-position-function)
(when (= pos (point))
(unless (< (point) pos)
(error "Infinite loop at %s:%d: imenu-prev-index-position-function does not move point" (buffer-name) pos))
(setq pos (point))
(save-excursion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment