From: Eli Zaretskii Date: Sat, 1 Feb 2025 09:33:34 +0000 (+0200) Subject: Remove bookmark fringe marks when deleting all bookmarks X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=baaff6a1bd92ccbff8e70dc3bf562956456b9420;p=emacs.git Remove bookmark fringe marks when deleting all bookmarks * lisp/bookmark.el (bookmark-delete-all): Remove fringe marks for all the bookmarks. (Bug#75953) (cherry picked from commit fdc6842a44e76db35432305455a05f2125962a62) --- diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 0ab50cae009..ce3487f4da7 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1568,6 +1568,8 @@ confirmation." (when (or no-confirm (yes-or-no-p "Permanently delete all bookmarks? ")) (bookmark-maybe-load-default-file) + (dolist (bm bookmark-alist) + (bookmark--remove-fringe-mark bm)) (setq bookmark-alist-modification-count (+ bookmark-alist-modification-count (length bookmark-alist))) (setq bookmark-alist nil)