emacs-devel
[Top][All Lists]
Advanced

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

Re: Question about copy-region-as-kill


From: John Wiegley
Subject: Re: Question about copy-region-as-kill
Date: Sat, 06 Apr 2002 23:36:25 -0700
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>>>> On Sat Apr  6, Colin writes:

> You mean like changing the face of some text temporarily, and then
> just going through the buffer and deleting all the overlays to
> remove that face?

> This approach fails when you use overlays for any other purpose in
> the same buffer; you then can't just delete all the overlays.

Ah, not so.  You see, one's mode can internally maintain lists of the
overlays it uses for different purposes.  This is part of the beauty
of having them returned to the caller as created objects.  You then
just rip through the list, deleting the kind of overlay you wish.

John



reply via email to

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