From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] isearch: lazy-highlighting of sub-exps of regexps Date: Wed, 24 Nov 2010 01:55:32 +0000 Organization: JURTA Message-ID: <87pqtv32p7.fsf@mail.jurta.org> References: <87oc9g7t08.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290564271 8177 80.91.229.12 (24 Nov 2010 02:04:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 02:04:31 +0000 (UTC) Cc: Andrew Helsley , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 03:04:22 2010 Return-path: 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 ) id 1PL4ib-00025g-9q for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 03:04:21 +0100 Original-Received: from localhost ([127.0.0.1]:33456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL4ia-0000VT-OL for ged-emacs-devel@m.gmane.org; Tue, 23 Nov 2010 21:04:20 -0500 Original-Received: from [140.186.70.92] (port=35926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL4iT-0000U7-Er for emacs-devel@gnu.org; Tue, 23 Nov 2010 21:04:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PL4iS-00019t-BC for emacs-devel@gnu.org; Tue, 23 Nov 2010 21:04:13 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:44771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PL4iS-00019L-7A for emacs-devel@gnu.org; Tue, 23 Nov 2010 21:04:12 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 499A56E807D; Tue, 23 Nov 2010 18:04:10 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 932C1451C1A5; Tue, 23 Nov 2010 18:04:08 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Tue, 23 Nov 2010 09:48:54 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) 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." 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 Xref: news.gmane.org gmane.emacs.devel:133103 Archived-At: >>> Using this feedback should make it easier for the user to accurately >>> build a replacement string when they invoke query-replace-regexp' >>> directly from `isearch-mode'. This supposes that lazy-highlighting is not removed at the time when the user types the replacement in the minibuffer. > Of course, to make it yet a bit easier, we should provide an "ireplace" > mode (where the replacement is shown incrementally as the user types > the replacement spec). Should this interactive replacement modify the buffer or just show replacements using e.g. overlays? >> Thanks, but we already have a request in the bug database with a set >> of different patches to implement it: http://debbugs.gnu.org/6227 >> There is no decision yet what is the best of them. > > Could someone take a close look and install such a feature? The most difficult question (as usual) is color selection for sub-exps faces. I think the most intuitive would be a rainbow.