From: Boruch Baum Date: Thu, 9 Apr 2015 15:07:15 +0000 (-0400) Subject: * lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop. X-Git-Tag: emacs-25.0.90~2519 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62e75060813370b825cda4720253ba31ffada7e3;p=emacs.git * lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop. Fixes: debbugs:20212 --- diff --git a/lisp/bookmark.el b/lisp/bookmark.el index dc8057e6e0d..4baf00b647b 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -2064,7 +2064,8 @@ To carry out the deletions that you've marked, use \\\\ (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))