bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14548: 24.3.1; [PATCH] image-dired-dired-toggle-marked-thumbs confli


From: E Sabof
Subject: bug#14548: 24.3.1; [PATCH] image-dired-dired-toggle-marked-thumbs conflicts with other modes using overlays
Date: Thu, 13 Jun 2013 15:39:49 +0100

On Thu, Jun 13, 2013 at 3:18 PM, Stefan Monnier <monnier@iro.umontreal.ca> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]