From ddc62155d24b9a9e24177bd5f13934e0d5b23159 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Wed, 23 Jan 2013 18:55:46 -0300 Subject: [PATCH] * imenu.el (imenu-default-create-index-function): Remove useless infinite loop check. Fixes: debbugs:13438 --- lisp/ChangeLog | 5 +++++ lisp/imenu.el | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) 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))) -- 2.39.2