Subject: bug#14548: 24.3.1; [PATCH] image-dired-dired-toggle-marked-thumbs conflicts with other modes using overlays

From: E Sabof <[email-masked]>
Date: Thu, 13 Jun 2013 15:39:49 +0100

On Thu, Jun 13, 2013 at 3:18 PM, Stefan Monnier <[email-masked]>wrote:

> >> !        (let* ((cur-ovs (overlays-in (point) (1+ (point))))
> >> !               (thumb-ov (car (cl-remove-if-not
> >> !                               (lambda (ov) (overlay-get ov
> 'thumb-file))
> >> !                               cur-ovs))))
> >> !          (if thumb-ov
> >> !              (delete-overlay thumb-ov)
>
> BTW, now that I actually look at the code, I twonder why it doesn't use
> remove-overlays.
>
>
>         Stefan
>

It's a toggler. It will remove the overlay if present, or create one. And
remove-overlays always returns nil.

Evgeni