From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Tom <levelhalom@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Structural regular expressions
Date: Tue, 7 Sep 2010 20:27:43 +0000 (UTC)
Message-ID: <loom.20100907T222143-475@post.gmane.org>
References: <loom.20100907T212314-566@post.gmane.org>
	<AANLkTimYvE0aqrG-OQxuY6BTca7ngzrfQUa62mOxyV=+@mail.gmail.com>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: dough.gmane.org 1283891290 9284 80.91.229.12 (7 Sep 2010 20:28:10 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Tue, 7 Sep 2010 20:28:10 +0000 (UTC)
To: emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 07 22:28:08 2010
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.69)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1Ot4lz-0006lV-EZ
	for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2010 22:28:07 +0200
Original-Received: from localhost ([127.0.0.1]:52505 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1Ot4ly-0007Qv-MZ
	for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2010 16:28:06 -0400
Original-Received: from [140.186.70.92] (port=55946 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ot4lt-0007Qg-Hx
	for emacs-devel@gnu.org; Tue, 07 Sep 2010 16:28:02 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1Ot4ls-0001Jn-I7
	for emacs-devel@gnu.org; Tue, 07 Sep 2010 16:28:01 -0400
Original-Received: from lo.gmane.org ([80.91.229.12]:47542)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1Ot4ls-0001Jg-Ac
	for emacs-devel@gnu.org; Tue, 07 Sep 2010 16:28:00 -0400
Original-Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1Ot4ln-0006fO-HC
	for emacs-devel@gnu.org; Tue, 07 Sep 2010 22:27:55 +0200
Original-Received: from 94-21-222-239.pool.digikabel.hu ([94.21.222.239])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-devel@gnu.org>; Tue, 07 Sep 2010 22:27:55 +0200
Original-Received: from levelhalom by 94-21-222-239.pool.digikabel.hu with local
	(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <emacs-devel@gnu.org>; Tue, 07 Sep 2010 22:27:55 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 12
Original-X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: sea.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 94.21.222.239 (Opera/9.80 (Windows NT 6.1; U;
	en) Presto/2.6.30 Version/10.61)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=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
Xref: news.gmane.org gmane.emacs.devel:129757
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/129757>

Lennart Borgman <lennart.borgman <at> gmail.com> writes:
> 
> Looks indeed like a useful idea. I suggest adding a new function
> argument PREDICATE to query-replace-regexp etc. (Think of the argument
> PREDICATE in completing-read.)
> 

It can be a good start, but the feature in the E editor is more general
than search and replace. You can perform any operation on the selected 
text. It's sort of like working on the narrowed part of a buffer, only 
the narrowed part in this case consists of several separate ranges of 
the same buffer (like all comments, etc.).