From 62e75060813370b825cda4720253ba31ffada7e3 Mon Sep 17 00:00:00 2001 From: Boruch Baum Date: Thu, 9 Apr 2015 11:07:15 -0400 Subject: [PATCH] * lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop. Fixes: debbugs:20212 --- lisp/bookmark.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.2