* lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.

Fixes: debbugs:20212
This commit is contained in:
Boruch Baum 2015-04-09 11:07:15 -04:00 committed by Stefan Monnier
parent beaab89896
commit 62e7506081

View file

@ -2064,7 +2064,8 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
(defun bookmark-bmenu-goto-bookmark (name)
"Move point to bookmark with name NAME."
(goto-char (point-min))
(while (not (equal name (bookmark-bmenu-bookmark)))
(while (not (or (equal name (bookmark-bmenu-bookmark))
(eobp)))
(forward-line 1))
(forward-line 0))