diff options
author | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2013-01-23 18:55:46 -0300 |
---|---|---|
committer | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2013-01-23 18:55:46 -0300 |
commit | ddc62155d24b9a9e24177bd5f13934e0d5b23159 (patch) | |
tree | 9779edc19a9757af09cc27ac409968c9b6c750cb | |
parent | 267eacb5e3ef38b6e1ac70ee5e1922f58d764f15 (diff) | |
download | emacs-ddc62155d24b9a9e24177bd5f13934e0d5b23159.tar.gz |
* imenu.el (imenu-default-create-index-function): Remove useless
infinite loop check.
Fixes: debbugs:13438
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <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. 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))) |