From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#6227: Color isearch regexp submatches differently Date: Fri, 11 Jun 2010 11:17:19 +0300 Organization: JURTA Message-ID: <87631qugyg.fsf@mail.jurta.org> References: <87bpca15ja.fsf@mail.jurta.org> <87wruv1ohr.fsf@mail.jurta.org> <877hmvtn9t.fsf@mail.jurta.org> <874ohyppfs.fsf@mail.jurta.org> <8739ww1tjp.fsf@mail.jurta.org> <87d3vyaodq.fsf@mail.jurta.org> <87hbla4nl4.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276244919 13596 80.91.229.12 (11 Jun 2010 08:28:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 08:28:39 +0000 (UTC) Cc: 6227@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 11 10:28:37 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OMzbQ-0001nK-Lc for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jun 2010 10:28:36 +0200 Original-Received: from localhost ([127.0.0.1]:35846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMzbP-00074y-DV for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jun 2010 04:28:35 -0400 Original-Received: from [140.186.70.92] (port=35322 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMzb9-00071Z-8N for bug-gnu-emacs@gnu.org; Fri, 11 Jun 2010 04:28:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMzb8-0002oB-2x for bug-gnu-emacs@gnu.org; Fri, 11 Jun 2010 04:28:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35893) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMzb8-0002o7-1X for bug-gnu-emacs@gnu.org; Fri, 11 Jun 2010 04:28:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMzSA-0004Lz-8T; Fri, 11 Jun 2010 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jun 2010 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6227 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6227-submit@debbugs.gnu.org id=B6227.127624433416729 (code B ref 6227); Fri, 11 Jun 2010 08:19:02 +0000 Original-Received: (at 6227) by debbugs.gnu.org; 11 Jun 2010 08:18:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMzS2-0004Lm-94 for submit@debbugs.gnu.org; Fri, 11 Jun 2010 04:18:54 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMzRz-0004LX-Ih for 6227@debbugs.gnu.org; Fri, 11 Jun 2010 04:18:51 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.28.166.cable.starman.ee [82.131.28.166]) by mx2.starman.ee (Postfix) with ESMTP id 151093F40BB; Fri, 11 Jun 2010 11:18:45 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Thu, 10 Jun 2010 20:44:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 11 Jun 2010 04:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37695 Archived-At: >> but set I suggest a default of 100. The loop costs essentially nothing >> for non-submatches and this is on command level. > > (/ (length (match-data)) 2) Then the loop should iterate from 1 up to the minimum of `(/ (length (match-data)) 2)' and `search-highlight-submatches'. As for the faces, perhaps we should dynamically create submatch faces like in `vc-annotate-lines' that uses `vc-annotate-color-map'. -- Juri Linkov http://www.jurta.org/emacs/