From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Question about copy-region-as-kill Date: Sat, 06 Apr 2002 23:36:25 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: <87vgb43thy.fsf@alice.dynodns.net> References: <87ofh09xjq.fsf@alice.dynodns.net> <200204050602.g3562Dl18586@aztec.santafe.edu> <87bscx7rlf.fsf@alice.dynodns.net> <200204061732.g36HWSb19584@aztec.santafe.edu> <87k7rkmuk0.fsf@alice.dynodns.net> <87zo0gbfb2.fsf@emacswiki.org> <1018138376.27236.49.camel@space-ghost> <87bscwe36t.fsf@tc-1-100.kawasaki.gol.ne.jp> <874rio5ide.fsf@alice.dynodns.net> <1018154686.1186.13.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018161559 12698 127.0.0.1 (7 Apr 2002 06:39:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 7 Apr 2002 06:39:19 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16u6Kd-0003Ih-00 for ; Sun, 07 Apr 2002 08:39:19 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16u6YR-0005Ph-00 for ; Sun, 07 Apr 2002 08:53:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16u6KO-0003EW-00; Sun, 07 Apr 2002 01:39:04 -0500 Original-Received: from mail.gci-net.com ([216.183.68.100] helo=gci-net.com) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16u6IG-0003AP-00 for ; Sun, 07 Apr 2002 01:36:52 -0500 Original-Received: from [216.183.69.157] (HELO aris) by gci-net.com (CommuniGate Pro SMTP 3.5b8) with ESMTP id 471358 for emacs-devel@gnu.org; Sat, 06 Apr 2002 23:22:48 -0700 Original-Received: from johnw by aris with local (Exim 3.35 #1 (Debian)) id 16u6Hp-0004Dv-00 for ; Sat, 06 Apr 2002 23:36:25 -0700 Original-To: emacs-devel@gnu.org X-Home-Page: http://www.gci-net.com/users/j/johnw/ X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xF40524D0 In-Reply-To: <1018154686.1186.13.camel@space-ghost> (Colin Walters's message of "06 Apr 2002 23:44:46 -0500") Original-Lines: 15 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2444 >>>>> 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