Commit ddc62155 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina
Browse files

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

infinite loop check.

Fixes: debbugs:13438
parent 267eacb5
2013-01-23 Fabián Ezequiel Gallina <fgallina@cuca>
* imenu.el (imenu-default-create-index-function): Remove useless
infinite loop check. (Bug#13438)
2013-01-23 Alan Mackenzie <acm@muc.de>
 
Fix a bug in the state cache mechanism. Refactor this a bit.
......
......@@ -683,8 +683,6 @@ The alternate method, which is the one most often used, is to call
(goto-char (point-max))
;; Search for the function
(while (funcall imenu-prev-index-position-function)
(when (= pos (point))
(error "Infinite loop at %s:%d: imenu-prev-index-position-function does not move point" (buffer-name) pos))
(setq pos (point))
(save-excursion
(setq name (funcall imenu-extract-index-name-function)))
......
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