[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replace selective-display in Gnus
From: |
Reiner Steib |
Subject: |
Re: Replace selective-display in Gnus |
Date: |
Wed, 14 Oct 2009 21:05:01 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) |
On Sat, Aug 29 2009, Dan Nicolaescu wrote:
> Reiner Steib <address@hidden> writes:
>
> > On Sat, Aug 29 2009, Stefan Monnier wrote:
> >
> > >> Could someone propose a patch how to use invisible overlays here? It
> > >> should be compatible with Emacs 21 (and up) and XEmacs 21.4 (and up)
> > >> if possible.
> > >
> > > Here is the gnus-sum.el code I'm using nowadays.
> >
> > Thanks.
> >
> > > IIRC it's not 100% correct (the behavior is not quite the same as
> > > the current one).
> >
> > What is the difference? (I don't use this feature so I'll probably
> > won't notice it.)
Unanswered, AFAICS?
> > > This includes unrelated changes, and uses remove-overlays which was
> > > new in Emacs-22.
> >
> > As we need the old code for compatibility with older Emacsen, I think
> > I will install it with some (fboundp 'remove-overlays) conditionals.
>
> Instead of conditionals you could replace `remove-overlays' calls with
> something like:
>
> (dolist (ov (overlays-in from to))
> (when (overlay-get ov 'gnus-sum)
> (delete-overlay ov)))))
>
> which should work everywhere.
Thanks, Stefan and Dan. I have committed this.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
- Re: Replace selective-display in Gnus,
Reiner Steib <=