GNU bug report logs - #75953
30.0.92; Bookmark fringe indicator not removed

Previous Next

Package: emacs;

Reported by: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>

Date: Thu, 30 Jan 2025 21:05:02 UTC

Severity: normal

Found in version 30.0.92

Done: Eli Zaretskii <eliz <at> gnu.org>

To reply to this bug, email your comments to 75953 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#75953; Package emacs. (Thu, 30 Jan 2025 21:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 30 Jan 2025 21:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.92; Bookmark fringe indicator not removed
Date: Thu, 30 Jan 2025 22:04:20 +0100
Hello.

I'm sending this bug report as a continuation of this closed report 
bug#51233.

The fringe indicator for bookmarks is correctly set, but the procedure 
`bookmark-delete-all` does not delete the indicator.

Steps for reproduction:

1. Run emacs -q

2. Create a new file, say /tmp/test.txt

3. Ensure bookmark-set-fringe-mark is t (should be by default)

4. Add some text and bookmark the line: a fringe indicator should appear
   at the left

5. Call `bookmark-delete-all` to delete the bookmark: the fringe 
indicator is still there


Best regards,
Sergio.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75953; Package emacs. (Fri, 31 Jan 2025 08:04:02 GMT) Full text and rfc822 format available.

Message #8 received at 75953 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 75953 <at> debbugs.gnu.org
Subject: Re: bug#75953: 30.0.92; Bookmark fringe indicator not removed
Date: Fri, 31 Jan 2025 10:03:12 +0200
> Date: Thu, 30 Jan 2025 22:04:20 +0100
> From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
> 
> Hello.
> 
> I'm sending this bug report as a continuation of this closed report 
> bug#51233.
> 
> The fringe indicator for bookmarks is correctly set, but the procedure 
> `bookmark-delete-all` does not delete the indicator.
> 
> Steps for reproduction:
> 
> 1. Run emacs -q
> 
> 2. Create a new file, say /tmp/test.txt
> 
> 3. Ensure bookmark-set-fringe-mark is t (should be by default)
> 
> 4. Add some text and bookmark the line: a fringe indicator should appear
>     at the left
> 
> 5. Call `bookmark-delete-all` to delete the bookmark: the fringe 
> indicator is still there

Does the patch below give good results?

diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index cd59293..153646c 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1584,6 +1584,8 @@ bookmark-delete-all
   (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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75953; Package emacs. (Fri, 31 Jan 2025 20:09:01 GMT) Full text and rfc822 format available.

Message #11 received at 75953 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 75953 <at> debbugs.gnu.org
Subject: Re: bug#75953: 30.0.92; Bookmark fringe indicator not removed
Date: Fri, 31 Jan 2025 21:08:01 +0100
Hello!

On 1/31/25 09:03, Eli Zaretskii wrote:
> Does the patch below give good results?

Yes, the patch fixes the issue.

Thanks for taking a look at it.

Regards,
Sergio




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 01 Feb 2025 09:35:01 GMT) Full text and rfc822 format available.

Notification sent to Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>:
bug acknowledged by developer. (Sat, 01 Feb 2025 09:35:02 GMT) Full text and rfc822 format available.

Message #16 received at 75953-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 75953-done <at> debbugs.gnu.org
Subject: Re: bug#75953: 30.0.92; Bookmark fringe indicator not removed
Date: Sat, 01 Feb 2025 11:34:44 +0200
> Date: Fri, 31 Jan 2025 21:08:01 +0100
> Cc: 75953 <at> debbugs.gnu.org
> From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
> 
> Hello!
> 
> On 1/31/25 09:03, Eli Zaretskii wrote:
> > Does the patch below give good results?
> 
> Yes, the patch fixes the issue.
> 
> Thanks for taking a look at it.

Thanks, installed on the emacs-30 branch, and closing the bug.




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.