From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: Re: Question about copy-region-as-kill Date: 07 Apr 2002 01:55:15 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <1018162515.17903.21.camel@space-ghost> 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> <87vgb43thy.fsf@alice.dynodns.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1018162645 13430 127.0.0.1 (7 Apr 2002 06:57:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 7 Apr 2002 06:57:25 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16u6c9-0003UV-00 for ; Sun, 07 Apr 2002 08:57:25 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16u6px-0005lB-00 for ; Sun, 07 Apr 2002 09:11:41 +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 16u6bp-0004Gd-00; Sun, 07 Apr 2002 01:57:05 -0500 Original-Received: from monk.debian.net ([216.185.54.61] helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16u6aK-0004Ed-00 for ; Sun, 07 Apr 2002 01:55:32 -0500 Original-Received: from space-ghost.verbum.private (freedom.cis.ohio-state.edu [164.107.60.183]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id 36A96740009E for ; Sun, 7 Apr 2002 01:55:22 -0500 (EST) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id DFBC782D8A2; Sun, 7 Apr 2002 01:55:17 -0500 (EST) Original-To: emacs-devel@gnu.org In-Reply-To: <87vgb43thy.fsf@alice.dynodns.net> X-Mailer: Evolution/1.0 (Preview Release) 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:2446 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2446 On Sun, 2002-04-07 at 01:36, John Wiegley wrote: > 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. True, but if we had extents, then *both* approaches could be used. If it was inconvenient to record a list of your extents, then you could just search for them by property. I've often found recording lists to be inconvenient in the modes I've written; but I can see how it would be a very good approach to use in other situations. Note that Emacs already has `next-single-char-property-change'; I believe the very existence of this function supports my argument.