From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#43702: Emacs master: Incorrect highlighting in regexp isearch. Date: Wed, 7 Oct 2020 13:56:20 -0700 (PDT) Message-ID: <3128ed44-cdce-487a-b897-4c79e9d61d2c@default> References: <20200929121317.GA27007@ACM> <83wo0ck5ig.fsf@gnu.org> <20200929153355.GB27007@ACM> <87y2ks819k.fsf@gnus.org> <87y2krdqsk.fsf@mail.linkov.net> <87y2kp93dn.fsf@mail.linkov.net> <87mu0z3zxf.fsf@mail.linkov.net> <83ft6qa4ky.fsf@gnu.org> <87imbmqvki.fsf@mail.linkov.net> <831ria9z4s.fsf@gnu.org> <87r1q9onc0.fsf@mail.linkov.net> <1f93cbb9-9759-4b77-a6a2-64909bde0585@default> <87ft6pokx8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, larsi@gnus.org, 43702@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 07 22:57:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQGUn-000AVq-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 22:57:09 +0200 Original-Received: from localhost ([::1]:45672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQGUm-00027h-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 16:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQGUg-00027G-9E for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 16:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQGUf-0003Wj-Vu for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 16:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQGUf-0003w3-UM for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 16:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43702 X-GNU-PR-Package: emacs Original-Received: via spool by 43702-submit@debbugs.gnu.org id=B43702.160210419215088 (code B ref 43702); Wed, 07 Oct 2020 20:57:01 +0000 Original-Received: (at 43702) by debbugs.gnu.org; 7 Oct 2020 20:56:32 +0000 Original-Received: from localhost ([127.0.0.1]:58253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQGUB-0003vI-N0 for submit@debbugs.gnu.org; Wed, 07 Oct 2020 16:56:31 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:40642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQGUA-0003v5-Cr for 43702@debbugs.gnu.org; Wed, 07 Oct 2020 16:56:30 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 097KoCPL028917; Wed, 7 Oct 2020 20:56:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=s4cHD5xQTHTT0I3jK0IDEsq9cgkE/B20/2otxsxbTBw=; b=OaDNSNkisjrPBb+u5EKYB18UgqZ5iSYG/ChUx3fjDBem/soNzqC071w6YzpN+TFqHGc7 jLKfE4/+jxieIbbG8BCWcIO2a2jJbcMjGvAiVY0vLt3829kiLuPQJIMmU2luJwTCw2qp 0te5OH9z7Q6rnBrdecUowgjlhAgusdG8Z2eVWP/rvKWdJO5a0gJCjE18/vzYqMe+mLwo 3ZBTosmZNtUysO+fqyd/qUvskpmEwrn0QSBNo84S/pSGwHkmJVUFwmYdvZKBAJtGDRGH Ek+A6AATlCS/ZXiucJinh8CQBYUQHw3hovvrxsUl8G9E7Sxex2WYJ+5UxdJBe8fxwN5b Jg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 33xetb4ekh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 07 Oct 2020 20:56:24 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 097KorrD125488; Wed, 7 Oct 2020 20:56:23 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 3410k03vu3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 07 Oct 2020 20:56:23 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 097KuLan021602; Wed, 7 Oct 2020 20:56:22 GMT In-Reply-To: <87ft6pokx8.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9767 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070134 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9767 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 adultscore=0 mlxlogscore=999 phishscore=0 impostorscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070134 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190055 Archived-At: > >> Even the color scheme designed by Drew has problems. > > > > What problems? >=20 > On the screenshot you sent it's hard to tell 3 from 7, > 1 from 5, 2 from 6, 4 from 8. It's intentional. I explained why it's not a problem in practice. Few regexps use more than 4 groups. 1. Groups near each other, in group order, are easily distinguishable, regardless of where they are in the list. E.g., (2,3,4), (4,5 6), or (8,1,2). 2. Most important is distinguishing groups 1-4, without using faces that are too in-your-face or conflict with most other highlighting. 3. Hue, at the same saturation & value, is the best way to distinguish without violating #2. 4. Groups 5-8 are paler and more rarely used. Their differences need not be as pronounced as 1-4. But as you say, being able to customize is what's most important. And by doing so, to, in effect, shrink the number of faces in the cycle (by using identical definitions).