Remove bookmark fringe marks when deleting all bookmarks
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Feb 2025 09:33:34 +0000 (11:33 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Feb 2025 09:33:34 +0000 (11:33 +0200)
* lisp/bookmark.el (bookmark-delete-all): Remove fringe marks for
all the bookmarks.  (Bug#75953)

lisp/bookmark.el

index cd59293e0a46a62c37ad094beb57114563febef7..153646c1fff932bde2e5d44825ed7afa24a46b98 100644 (file)
@@ -1584,6 +1584,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)