]> code.delx.au - gnu-emacs/commitdiff
* lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.
authorBoruch Baum <boruch_baum@gmx.com>
Thu, 9 Apr 2015 15:07:15 +0000 (11:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Apr 2015 15:07:15 +0000 (11:07 -0400)
Fixes: debbugs:20212
lisp/bookmark.el

index dc8057e6e0d00b8f99312485aeef97907596d376..4baf00b647b600f97bf6e35e47e93326d5721f6c 100644 (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))