From: Fabián Ezequiel Gallina Date: Wed, 23 Jan 2013 21:55:46 +0000 (-0300) Subject: * imenu.el (imenu-default-create-index-function): Remove useless X-Git-Tag: emacs-24.2.93~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ddc62155d24b9a9e24177bd5f13934e0d5b23159;p=emacs.git * imenu.el (imenu-default-create-index-function): Remove useless infinite loop check. Fixes: debbugs:13438 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 49fbf0eb5b6..cddc9dd078c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-01-23 Fabián Ezequiel Gallina + + * imenu.el (imenu-default-create-index-function): Remove useless + infinite loop check. (Bug#13438) + 2013-01-23 Alan Mackenzie Fix a bug in the state cache mechanism. Refactor this a bit. diff --git a/lisp/imenu.el b/lisp/imenu.el index 80dacf937df..b72cbeb42b4 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -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)))