* imenu.el (imenu-default-create-index-function): Remove useless
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 23 Jan 2013 21:55:46 +0000 (18:55 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 23 Jan 2013 21:55:46 +0000 (18:55 -0300)
infinite loop check.

Fixes: debbugs:13438

lisp/ChangeLog
lisp/imenu.el

index 49fbf0e..cddc9dd 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 80dacf9..b72cbeb 100644 (file)
@@ -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)))