From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: buffer-substring-filter Date: Mon, 14 Mar 2005 18:44:05 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1110846301 31527 80.91.229.2 (15 Mar 2005 00:25:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2005 00:25:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 15 01:25:01 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAzfN-0002Xi-Mj for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2005 01:12:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAzv8-0007BF-Q4 for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 19:28:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DAzs1-0006Kb-Is for emacs-devel@gnu.org; Mon, 14 Mar 2005 19:25:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DAzrw-0006Jl-H1 for emacs-devel@gnu.org; Mon, 14 Mar 2005 19:25:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAzoi-0005Zt-5G for emacs-devel@gnu.org; Mon, 14 Mar 2005 19:21:48 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DAzED-0001gI-Pl for emacs-devel@gnu.org; Mon, 14 Mar 2005 18:44:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DAzED-0003HP-Bs; Mon, 14 Mar 2005 18:44:05 -0500 Original-To: "Chong Yidong" In-reply-to: (cyd@stupidchicken.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34596 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34596 This is a clean implementation of the feature I had in mind. Using mapcar is a little wasteful, since it makes a list of the results only to throw them all away. Better to use dolist. It would be good to move point to BEG, temporarily, so that the functions can tell where the text came from in case they care. However, the real question is whether this is the right feature for doing the job. Have you changed longlines.el to use it? Does it do what longlines needs? I think that some other functions would need to use this feature. One is append-to-buffer. Also the rectangle functions should use it. Maybe other places too.