]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove bookmark fringe marks when deleting all bookmarks
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Feb 2025 09:33:34 +0000 (11:33 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:12:10 +0000 (12:12 +0100)
* lisp/bookmark.el (bookmark-delete-all): Remove fringe marks for
all the bookmarks.  (Bug#75953)

(cherry picked from commit fdc6842a44e76db35432305455a05f2125962a62)

lisp/bookmark.el

index 0ab50cae0097f4fcdeaf7c09bd4d20663a75fa08..ce3487f4da7aa96c28d65b08910a21c2e17fdcae 100644 (file)
@@ -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)