From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman <lennart.borgman@gmail.com> Newsgroups: gmane.emacs.devel Subject: Re: Structural regular expressions Date: Tue, 7 Sep 2010 23:08:07 +0200 Message-ID: <AANLkTikxbD1pt22pHd0d5JtzXEpZ4-VVC_M7+HavwPov@mail.gmail.com> References: <loom.20100907T212314-566@post.gmane.org> <AANLkTimYvE0aqrG-OQxuY6BTca7ngzrfQUa62mOxyV=+@mail.gmail.com> <loom.20100907T222143-475@post.gmane.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1283893722 19736 80.91.229.12 (7 Sep 2010 21:08:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 21:08:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom <levelhalom@gmail.com> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 07 23:08:40 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 1Ot5PD-0003kO-W3 for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2010 23:08:40 +0200 Original-Received: from localhost ([127.0.0.1]:52915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot5PD-0000bQ-4j for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2010 17:08:39 -0400 Original-Received: from [140.186.70.92] (port=47397 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot5P4-0000b5-OG for emacs-devel@gnu.org; Tue, 07 Sep 2010 17:08:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <lennart.borgman@gmail.com>) id 1Ot5P2-0008Qn-T0 for emacs-devel@gnu.org; Tue, 07 Sep 2010 17:08:30 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:47270) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <lennart.borgman@gmail.com>) id 1Ot5P2-0008Qi-N7 for emacs-devel@gnu.org; Tue, 07 Sep 2010 17:08:28 -0400 Original-Received: by qyk2 with SMTP id 2so6290194qyk.0 for <emacs-devel@gnu.org>; Tue, 07 Sep 2010 14:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=Y/rs3DyvUF/atUBHP0HEv5xAd8S9wgV9Q+a1vwVWgnM=; b=fzhVUB1AO/aii/4+DXu4FzO+1eb2ZiCpiSR0IWRdGtwsOtno40DB4EwP4zwx0ONipE hz+2xNBheiZINdt/7FS+E9X5TKEVlaE4533ztDswrb2pHty1ivNnA1naXaiSeT0lvPNO D9deaWATwfOBPrDrVlkY+uc2LYia0kc9cvrNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=o3/i2IwMN7nlsbF+/ZDxIdfJUEpXqeY973csz0Mbmh4j2HkTOIoPZACr451WuZmluB 0RljEM4EPDNA5EJyA2fat5tiLRy++W/MPBaD0JA5xXpN6wtlu3W8Z62pMDFRFTxLnMF4 ABQIwMoEHM8FTMlOLCM/xK6YUzL2MZWlWlehY= Original-Received: by 10.224.6.145 with SMTP id 17mr927316qaz.130.1283893708129; Tue, 07 Sep 2010 14:08:28 -0700 (PDT) Original-Received: by 10.229.216.74 with HTTP; Tue, 7 Sep 2010 14:08:07 -0700 (PDT) In-Reply-To: <loom.20100907T222143-475@post.gmane.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:129758 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/129758> On Tue, Sep 7, 2010 at 10:27 PM, Tom <levelhalom@gmail.com> wrote: > 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.). That makes me think of my favorite idea for a better multi major mode support in Emacs: Hide parts of the buffer from all low level functions. Such an ability could be used here too.