GNU logs - #31953, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Van L <van@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 24 Jun 2018 07:48:02 +0000
Resent-Message-ID: <handler.31953.B.15298264727306 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 31953 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15298264727306
          (code B ref -1); Sun, 24 Jun 2018 07:48:02 +0000
Received: (at submit) by debbugs.gnu.org; 24 Jun 2018 07:47:52 +0000
Received: from localhost ([127.0.0.1]:33622 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fWzkW-0001tl-IP
	for submit <at> debbugs.gnu.org; Sun, 24 Jun 2018 03:47:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <van@HIDDEN>) id 1fWzkU-0001tW-LU
 for submit <at> debbugs.gnu.org; Sun, 24 Jun 2018 03:47:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <van@HIDDEN>) id 1fWzkO-0008Ks-Rr
 for submit <at> debbugs.gnu.org; Sun, 24 Jun 2018 03:47:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38052)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <van@HIDDEN>) id 1fWzkO-0008KX-Ng
 for submit <at> debbugs.gnu.org; Sun, 24 Jun 2018 03:47:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:32920)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <van@HIDDEN>) id 1fWzkN-00042N-Kl
 for bug-gnu-emacs@HIDDEN; Sun, 24 Jun 2018 03:47:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <van@HIDDEN>) id 1fWzkK-0008Di-GU
 for bug-gnu-emacs@HIDDEN; Sun, 24 Jun 2018 03:47:43 -0400
Received: from relay2-d.mail.gandi.net ([217.70.183.194]:55861)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <van@HIDDEN>) id 1fWzkK-0008BL-9a
 for bug-gnu-emacs@HIDDEN; Sun, 24 Jun 2018 03:47:40 -0400
X-Originating-IP: 203.213.106.91
Received: from epi.local (203-213-106-91.static.tpgi.com.au [203.213.106.91])
 (Authenticated sender: van@HIDDEN)
 by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A794440004
 for <bug-gnu-emacs@HIDDEN>; Sun, 24 Jun 2018 07:47:36 +0000 (UTC)
From: Van L <van@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
Date: Sun, 24 Jun 2018 17:47:31 +1000
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.4 (-----)

Hello.

Towards the transition to rx from regexp
may I suggest `highlight-rx` for `highlight-regexp`.

A usecase is to mark a region or string of few words
and to call `highlight-rx` which does a verbatim highlight.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Van L <van@HIDDEN>
Subject: bug#31953: Acknowledgement (feature request - `highlight-rx`
 interactively)
Message-ID: <handler.31953.B.15298264727306.ack <at> debbugs.gnu.org>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
X-Gnu-PR-Message: ack 31953
X-Gnu-PR-Package: emacs
Reply-To: 31953 <at> debbugs.gnu.org
Date: Sun, 24 Jun 2018 07:48:06 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 31953 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
31953: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31953
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 09 Oct 2019 22:03:02 +0000
Resent-Message-ID: <handler.31953.B31953.157065857013746 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Van L <van@HIDDEN>
Cc: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157065857013746
          (code B ref 31953); Wed, 09 Oct 2019 22:03:02 +0000
Received: (at 31953) by debbugs.gnu.org; 9 Oct 2019 22:02:50 +0000
Received: from localhost ([127.0.0.1]:54332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIK2j-0003Zd-Lx
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 18:02:49 -0400
Received: from quimby.gnus.org ([80.91.231.51]:45272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iIK2i-0003ZW-LD
 for 31953 <at> debbugs.gnu.org; Wed, 09 Oct 2019 18:02:49 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iIK2f-0005Ab-0H; Thu, 10 Oct 2019 00:02:47 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
Date: Thu, 10 Oct 2019 00:02:44 +0200
In-Reply-To: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN> (Van L.'s
 message of "Sun, 24 Jun 2018 17:47:31 +1000")
Message-ID: <8736g11ssb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Van L <van@HIDDEN> writes: > Towards the transition
 to rx from regexp > may I suggest `highlight-rx` for `highlight-regexp`.
 > > A usecase is to mark a region or string of few words > and to call
 `highlight-rx` which does a ver [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Van L <van@HIDDEN> writes:

> Towards the transition to rx from regexp
> may I suggest `highlight-rx` for `highlight-regexp`.
>
> A usecase is to mark a region or string of few words
> and to call `highlight-rx` which does a verbatim highlight.

Sorry, I'm not sure I understand what you're requesting here.

highlight-regexp is an alias for hi-lock-face-buffer which just does
some highlighting, as far as I can see.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
In-Reply-To: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 14 Oct 2019 23:55:02 +0000
Resent-Message-ID: <handler.31953.B31953.157109728725144 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157109728725144
          (code B ref 31953); Mon, 14 Oct 2019 23:55:02 +0000
Received: (at 31953) by debbugs.gnu.org; 14 Oct 2019 23:54:47 +0000
Received: from localhost ([127.0.0.1]:42422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKAAp-0006XU-6k
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 19:54:47 -0400
Received: from [80.91.231.51] (port=43652 helo=quimby.gnus.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iKAAm-0006XL-Ia
 for 31953 <at> debbugs.gnu.org; Mon, 14 Oct 2019 19:54:45 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>) id 1iKAAh-0005lc-F2
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 01:54:43 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
Date: Tue, 15 Oct 2019 01:54:39 +0200
Message-ID: <875zkqsx1c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Start of forwarded message From: VanL <van@HIDDEN>
 To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#31953: feature request
 - `highlight-rx` inte [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Start of forwarded message From: VanL <van@HIDDEN>
 To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#31953: feature request
 - `highlight-rx` inte [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: gnus.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)


-------------------- Start of forwarded message --------------------
From: VanL <van@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#31953: feature request - `highlight-rx` interactively
Date: Thu, 10 Oct 2019 18:15:38 +1100


>> A usecase is to mark a region or string of few words
>> and to call `highlight-rx` which does a verbatim highlight.
>
>Sorry, I'm not sure I understand what you're requesting here.
>
>highlight-regexp is an alias for hi-lock-face-buffer which just does
>some highlighting, as far as I can see.  

I was wanting to migrate from regexp to rx syntax for highlighting.
-------------------- End of forwarded message --------------------

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 00:37:01 +0000
Resent-Message-ID: <handler.31953.B31953.15710997626133 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 31953 <at> debbugs.gnu.org
Cc: VanL <van@HIDDEN>
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15710997626133
          (code B ref 31953); Tue, 15 Oct 2019 00:37:01 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 00:36:02 +0000
Received: from localhost ([127.0.0.1]:42459 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKAoj-0001ah-RG
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 20:36:02 -0400
Received: from [80.91.231.51] (port=44448 helo=quimby.gnus.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iKAoi-0001aR-9I
 for 31953 <at> debbugs.gnu.org; Mon, 14 Oct 2019 20:36:00 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iKAoe-00068h-16; Tue, 15 Oct 2019 02:35:58 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN>
Date: Tue, 15 Oct 2019 02:35:55 +0200
In-Reply-To: <875zkqsx1c.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 15 Oct 2019 01:54:39 +0200")
Message-ID: <87o8yirgk4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: (Please keep the debbugs address in the Cc list -- otherwise
 the bug tracker won't get the message.) >>> A usecase is to mark a region
 or string of few words >>> and to call `highlight-rx` which does a verbatim
 highlight. >> >>Sorry, I'm not sure I understand what you're requesting here.
 >> >>highlig [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: (Please keep the debbugs address in the Cc list -- otherwise
 the bug tracker won't get the message.) >>> A usecase is to mark a region
 or string of few words >>> and to call `highlight-rx` which does a verbatim
 highlight. >> >>Sorry, I'm not sure I understand what you're requesting here.
 >> >>highlig [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: ingebrigtsen.no]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

(Please keep the debbugs address in the Cc list -- otherwise the bug
tracker won't get the message.)

>>> A usecase is to mark a region or string of few words
>>> and to call `highlight-rx` which does a verbatim highlight.
>>
>>Sorry, I'm not sure I understand what you're requesting here.
>>
>>highlight-regexp is an alias for hi-lock-face-buffer which just does
>>some highlighting, as far as I can see.  
>
> I was wanting to migrate from regexp to rx syntax for highlighting.

`rx' returns a normal regexp, so you can use whatever you want, can't
you?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Phil Sainty <psainty@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 02:40:03 +0000
Resent-Message-ID: <handler.31953.B31953.157110719017953 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157110719017953
          (code B ref 31953); Tue, 15 Oct 2019 02:40:03 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 02:39:50 +0000
Received: from localhost ([127.0.0.1]:42517 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKCkX-0004fV-LU
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 22:39:49 -0400
Received: from smtp-4.orcon.net.nz ([60.234.4.59]:33773)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1iKCkU-0004fL-Js
 for 31953 <at> debbugs.gnu.org; Mon, 14 Oct 2019 22:39:49 -0400
Received: from [10.253.37.70] (port=40518 helo=webmail.orcon.net.nz)
 by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1)
 (envelope-from <psainty@HIDDEN>)
 id 1iKCkR-0007Z7-Ob; Tue, 15 Oct 2019 15:39:43 +1300
Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Tue, 15 Oct 2019 15:39:43 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 15 Oct 2019 15:39:43 +1300
From: Phil Sainty <psainty@HIDDEN>
In-Reply-To: <87o8yirgk4.fsf@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
Message-ID: <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 2019-10-15 13:35, Lars Ingebrigtsen wrote:
>> I was wanting to migrate from regexp to rx syntax for highlighting.
> 
> `rx' returns a normal regexp, so you can use whatever you want, can't
> you?

I think the idea is to be able to *interactively* enter rx syntax
and have it highlighted (as opposed to `highlight-regexp' which will
obviously treat what you enter interactively as an actual regexp,
rather than something to be transformed into one).

i.e. These would be equivalent:

M-x highlight-rx RET (or "foo" "bar") RET
M-x highlight-regexp RET \(foo\|bar\) RET






Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 07:54:02 +0000
Resent-Message-ID: <handler.31953.B31953.157112600431342 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Phil Sainty <psainty@HIDDEN>
Cc: VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157112600431342
          (code B ref 31953); Tue, 15 Oct 2019 07:54:02 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 07:53:24 +0000
Received: from localhost ([127.0.0.1]:42654 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKHe0-00089S-AL
	for submit <at> debbugs.gnu.org; Tue, 15 Oct 2019 03:53:24 -0400
Received: from [80.91.231.51] (port=51956 helo=quimby.gnus.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iKHdx-00089H-Fw
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 03:53:23 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iKHds-0001lj-KW; Tue, 15 Oct 2019 09:53:19 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
Date: Tue, 15 Oct 2019 09:53:16 +0200
In-Reply-To: <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN> (Phil
 Sainty's message of "Tue, 15 Oct 2019 15:39:43 +1300")
Message-ID: <87a7a2qwb7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Phil Sainty <psainty@HIDDEN> writes: > I think the idea
 is to be able to *interactively* enter rx syntax > and have it highlighted
 (as opposed to `highlight-regexp' which will > obviously treat what you enter
 interactively as an actual r [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Phil Sainty <psainty@HIDDEN> writes: > I think the idea
 is to be able to *interactively* enter rx syntax > and have it highlighted
 (as opposed to `highlight-regexp' which will > obviously treat what you enter
 interactively as an actual r [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: ingebrigtsen.no]
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Phil Sainty <psainty@HIDDEN> writes:

> I think the idea is to be able to *interactively* enter rx syntax
> and have it highlighted (as opposed to `highlight-regexp' which will
> obviously treat what you enter interactively as an actual regexp,
> rather than something to be transformed into one).
>
> i.e. These would be equivalent:
>
> M-x highlight-rx RET (or "foo" "bar") RET
> M-x highlight-regexp RET \(foo\|bar\) RET

Oh, I see.

I think it would be rather odd to have just one regexp-reading command
that uses the rx syntax interactively.  If this is something we want
(and I don't really envision people willingly typing in rx forms
interactively), then it should be fixed in `read-regexp'.  It could, for
instance, have a keystroke that changes the input mode.

But do we think that people want to type in rx forms?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 08:38:02 +0000
Resent-Message-ID: <handler.31953.B31953.15711286483039 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: Phil Sainty <psainty@HIDDEN>, VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15711286483039
          (code B ref 31953); Tue, 15 Oct 2019 08:38:02 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 08:37:28 +0000
Received: from localhost ([127.0.0.1]:42695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKIKe-0000mx-KX
	for submit <at> debbugs.gnu.org; Tue, 15 Oct 2019 04:37:28 -0400
Received: from mout.web.de ([217.72.192.78]:44769)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iKIKc-0000mg-FI
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 04:37:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571128629;
 bh=s6dUHAD3kYpeCCQqlafN+BRYvoX59CR2mfi/h6ISyYE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=UPQYkfzVWcVEhIrocD+KZRBMpDdwQXn+8do/Lsu3e25rakneJuk98et8MST3i2vCc
 8R6Wto6FsE/Qpzhx8spjQXoNcqcvKTv7zQFq/OObBN0iCp5l3OweqSnktry5ZWhL0D
 7zXpbOnFIyiSnfZswz2ejZKnL3fST/JS7H9hhmfY=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb102
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MK24P-1iIukT3Sdx-001QQw; Tue, 15
 Oct 2019 10:37:08 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <87a7a2qwb7.fsf@HIDDEN>
Date: Tue, 15 Oct 2019 10:37:14 +0200
In-Reply-To: <87a7a2qwb7.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 15 Oct 2019 09:53:16 +0200")
Message-ID: <874l0az9ol.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:IKbrhAQNt+HY4xqUKQ0+kuBWqiBKzsl1qneSPJSvAfpPF4WTbi8
 JG5LguJeqaZpAyIlXQK7eLNGzeRvKDPv59GymdP4YsLompstXSdQdKIsC6LDwnEf8eVK9An
 vjZn+Euyn76OhsZv63g3Ssjx5dZJ3MCexIMKhS627mg1bg1Rsvp5jifPzRQ/4R769YLA+sY
 jQM67nDQDEtfxn2j9oP/A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:W1CSMEUm2QU=:FtU0SZSpvyJNoRj2tcQQMm
 XQJEt3qiuVek+fRL8GRKRKU0DsDl4pSnJNe/E36O6rCjH0vsPenGPewpV4KothlI3F718Z5LZ
 948zrEG89SQ2IQNFFSd+RFtip4bODncsB9HqaT5Uea40BChgLgtpdnWMPvCtFEbWW254UL/Wy
 LICGnXs4fuK/eHYv4SM78M2ThtWkaX8hr8efrhkSzi2TlIfMdqKCavJEqYp7Wt5kCpVOVzf0S
 pkDv1YTolrQYM0H91UZqMmA9p34OEaw+B9oD6CbZwq6BkwVD/sLjC4Ub85aRykrixltE6wttl
 ysYkF6OtZOKwz7GbFpWNZv/XmRnW4spjfTP5AoHR2JNPVP+grwyDQmfltRMKK7nVIh0lPo96J
 SyVUYDZYGe+YOlTTUaFPqVrfdDBYtYUrQ+rGG4TA2EUdZlDPBHr5ZvDuYfWdgMK1ccOn3jRS8
 EJNNMVGeTs3kWLe6oovXvGh7v3z/g/7BdmlQIgUAKlHXuIypfxSCqFZvxRrKmx2mgW8cxwnQ1
 tODyyOWT+x41hBKSdrWgcWtAEdt2Gj8ScYKmE3Qa5rS7/RCklK7kj4PcwZBTtBYd5l0OForrb
 ubwG34UCVWp/SDv3BjXUHymUjCvL9tRPmyYnSFw9h0Pj4pYOh+MFxtW+x7SBed33vCB13WiRO
 LWRUJd9g4ujGOYxMLLikTgeVkVcKywJoTCYp2PGXe7eRnQIKYjLuT85CDAWiuSZcGw+oz9BEm
 PgfpDNrjZtFZ0KeC0dThKjeEj0dmXoQhdR2Y6/ja9ukmf1kacQg4Kc7B3HH/wMZpctIOuTdHf
 S5GPkzf/jL6mwR+SaDvKceqfx241mmr+Re06cGhUIdkcfRRD9Uo/7us/nsYldvlyWxC6WJ4P4
 yjHilq3BJfItOYusM+8A8kGj7XoEh8cn1vW8qnsQBVoRllwuCo62ceFEhY2tUpoX5NzPKUMe2
 rHGh1M+PQyJPOFqRx1T983xQjuy3GY5h50gqZ+/oK3uFevC7vxwV3fU7auVfv1z22dPd2kewb
 u7SvkiOdxeqkNuWuv3q6uz4G7j2K8QVkiLgDmgIiEzxKV2QBcmak1Uh5chXTgsR9vYn0tZ3Ae
 Aj/fshg7ph+Qs3Qk2mYtuLXPmiqO5tUMPHKiBHppRGm0PV/DH7IuPnGP4wTxJmPkYecayY9zd
 5YFBblQBgtECYnsrNUZwSO9a+6th/ULNJRQqgw+5zTxB3yBpb7rAubNpl3KLfMrkH4bQBVE1K
 xlPBhS2tTDOKngNprDw/8DKQ+HJ/nXi7yWpU1iSL6JhdQI8VxIMYwFu1gKSg=
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> But do we think that people want to type in rx forms?

I would welcome such a change.

But IMO instead of

  M-x highlight-rx RET (or "foo" "bar") RET

it's not much harder to enter (rx (or "foo" "bar")) - so I wonder if we
could also just allow to enter any Elisp expression?

Michael.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 08:44:02 +0000
Resent-Message-ID: <handler.31953.B31953.15711290223609 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Cc: Phil Sainty <psainty@HIDDEN>, VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15711290223609
          (code B ref 31953); Tue, 15 Oct 2019 08:44:02 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 08:43:42 +0000
Received: from localhost ([127.0.0.1]:42704 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKIQf-0000w9-MR
	for submit <at> debbugs.gnu.org; Tue, 15 Oct 2019 04:43:41 -0400
Received: from [80.91.231.51] (port=52906 helo=quimby.gnus.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iKIQe-0000w0-3F
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 04:43:40 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iKIQZ-0002FX-4G; Tue, 15 Oct 2019 10:43:37 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <87a7a2qwb7.fsf@HIDDEN> <874l0az9ol.fsf@HIDDEN>
Date: Tue, 15 Oct 2019 10:43:34 +0200
In-Reply-To: <874l0az9ol.fsf@HIDDEN> (Michael Heerdegen's message of "Tue, 15
 Oct 2019 10:37:14 +0200")
Message-ID: <87r23epfex.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > But
 IMO instead of > > M-x highlight-rx RET (or "foo" "bar") RET > > it's not
 much harder to enter (rx (or "foo" "bar")) - so I wonder if we > could also
 just allow to enter any Elisp expression? 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > But
 IMO instead of > > M-x highlight-rx RET (or "foo" "bar") RET > > it's not
 much harder to enter (rx (or "foo" "bar")) - so I wonder if we > could also
 just allow to enter any Elisp expression? 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: ingebrigtsen.no]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> But IMO instead of
>
>   M-x highlight-rx RET (or "foo" "bar") RET
>
> it's not much harder to enter (rx (or "foo" "bar")) - so I wonder if we
> could also just allow to enter any Elisp expression?

It's ambiguous, though -- you may want to search for "(rx (or "foo" "bar"))".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 09:10:01 +0000
Resent-Message-ID: <handler.31953.B31953.15711305605971 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: Phil Sainty <psainty@HIDDEN>, VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15711305605971
          (code B ref 31953); Tue, 15 Oct 2019 09:10:01 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 09:09:20 +0000
Received: from localhost ([127.0.0.1]:42714 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKIpT-0001YE-Nw
	for submit <at> debbugs.gnu.org; Tue, 15 Oct 2019 05:09:19 -0400
Received: from mout.web.de ([212.227.15.14]:57939)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iKIpS-0001Xx-3F
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 05:09:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571130542;
 bh=0qTZrjDUyOHDZi4IVrOEQwdsI85NF5sn0CRdWM+1DzI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=A7spndunHrOuUinzeVIxeb2ELFV59D4wPvw8wxgwM53IIyWl8CJJA704Zn3wLb8lm
 Ca45L9RJDQ0mmFcVlfKPvVMRfFDCCM1JiKXx8BLI/zEFiGu1tMgrtNloC7vJODZu1l
 k18NWVUUsJOvC27URpPdonjIygVwf+OqkXqmcgo0=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb002
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M09z2-1i3ioE0L1w-00uFXJ; Tue, 15
 Oct 2019 11:09:02 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <87a7a2qwb7.fsf@HIDDEN> <874l0az9ol.fsf@HIDDEN>
 <87r23epfex.fsf@HIDDEN>
Date: Tue, 15 Oct 2019 11:09:08 +0200
In-Reply-To: <87r23epfex.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 15 Oct 2019 10:43:34 +0200")
Message-ID: <87ftjul6iz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:f8QVYRgtFtAOqKA/jjIF2QMnpx/PVn8cHyhgIhOdeniiZGjTnV6
 CiIszgGm/U4x6+EYQ3g9560REC3CIr4KS21jpiiC3y4kK4sbxfx+lVYRbfMCPBPmtokWqTD
 Gnf54Or6jsJg2Jy8P6C+Fixn+Kpk4Ane1hefx/q7THQ4NAm9aoNUlNKlYzxajhe1cfgXMDc
 qgCPGFp2ysxG6UOn1HJDA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:pJf8KBfBJMY=:UTaQPEyKKLq4RkhSblZKie
 X/vAHjzMXwyomtg4NH2XXxPCLV741nWa83UbuBpTZlkpT4YdmKgqvVeqtgeQQXVMoYDPxpVg0
 2+1Ycc+b0Dfq5hRxIjdJSc1bTob5rajJnU0mBnzk7QDEII7LFIU7zjIiJftco/bO93ZhWVqoB
 WS/y8UI8q7rnX0khwe1Wr4oT0rN+Rx688EwXcdkbKLKv8S7NpyMUrx0H0cG50aPUH7cXwIrIm
 ZtFyacTsz0FvxxfEdgBqa/bCioLqo22LDGFlGXKcUKCxTh4n2HwuAFdQdYpmAcJwtS3AQ9nRP
 hQicuviwYYWjpUPvnzPCPboTnDh/3nekPhqWF+Vi2ig4/g67yfWrWwrCGTjV6lVGaz9jbJehl
 dR5yr9gZl9UWvQnTyruYxdCQU5kXU7AcmzxPrAehTEziNMwl+Pv30z4ey5XM3gVIMq1ciEUgc
 IoeDAMnmhEWrEWxbpRm3fv20CjfSpLZQjEalEACQEhjie4YfZ8Oep+CrJUIvpul3EMeNJaWn6
 LWmB0Z7wR+8TGwNjYmo6miOyPe+eRGFFfkvoy45AKFnWzb5Krx6X2iZQR4aJWq18LkRM2OLAC
 3S9H6sbj2uG2fQGA5sXq6jPdGyZaELJbEQ2HwGdwjgamw+NWvBCxYrb0MsBVDJ14tAGnd8N1+
 jZXZjUxEhWoxta20BjIlhP4dRjC3rLvPaGaji4919HknHck1GUm+5hhBc7OrtChCaLlyLd6z5
 S4OkIkouMwcVVQ0f6ZQw4PxUbZZg/dXbniqQgH0IkdnYvcqR+g1JqGp1UwgSBlw2SbJvwtDrg
 xHxBrPTYtDF/66caN2CHgmzwN/rQ29ztwYnItrZPbE1kOcUYCXI0bhX96eGaz9qdWz5FAL5oV
 X1ET23gOCmnagnKyvlSx8PIzfnmudRxYV2NLZb3DQ1VUuNqmpnLdXRLugcHGghFPN10lI0noe
 DwmDYG3LNCTOl/U4qclQzBHFdC5ny56yqiibHJPDrt6QpCSXYzS7qcH35aSdtI5Kz50LRFLmW
 kEDxcCvXznsz0XpOPxQraci8d3sm6hBnAVGBxlsW1dUUgDsc3maUf/VjQJuJJuqfmTe5C+200
 46zl2hqO3/9mit0YkOLOmYytg3SBmtF/6G7aFkKeA5gh95KAuA3hYhUO7RG+e/Exfqmrj1+gl
 8e6TK/3SzmjMtXpSaxsfrBm4GqjhpX0mzHj2Eu4ilwroBFkac42W5NZEt+crDMLLTo4TOfxwM
 tZmUwViefPXpNXMoMbduVJW/gaa0dFqHt9BL6B9Chev15Oz3yY0pYOrUvpHQ=
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> It's ambiguous, though -- you may want to search for "(rx (or "foo"
> "bar"))".

Unless I misunderstood, you would enter

  "(rx (or \"foo\" \"bar\"))"

instead of

  (rx (or "foo" "bar"))


Michael.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Drew Adams <drew.adams@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 15 Oct 2019 14:37:01 +0000
Resent-Message-ID: <handler.31953.B31953.157115020221770 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>, Phil Sainty <psainty@HIDDEN>
Cc: VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157115020221770
          (code B ref 31953); Tue, 15 Oct 2019 14:37:01 +0000
Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 14:36:42 +0000
Received: from localhost ([127.0.0.1]:44673 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iKNwH-0005f4-Kp
	for submit <at> debbugs.gnu.org; Tue, 15 Oct 2019 10:36:41 -0400
Received: from userp2120.oracle.com ([156.151.31.85]:53026)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1iKNwF-0005er-8T
 for 31953 <at> debbugs.gnu.org; Tue, 15 Oct 2019 10:36:39 -0400
Received: from pps.filterd (userp2120.oracle.com [127.0.0.1])
 by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9FEZ6i6102422;
 Tue, 15 Oct 2019 14:36:33 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-2019-08-05;
 bh=OU4vlESova8zURAPHX8KTiOm3ofV+Yx8+3mPQYCTByM=;
 b=UUixxsdPyaEq6bmVulJMbktpwpP7Q2OPh7vk8KyWpurYAfP4daNdeAuBQppaRaSWOSrA
 uSj6CYBIDN/z9GHxTDMQYSmIICMsFYtHqoe6tlsr6tYEa01/cklfwqNT+G8olh+n/Kvs
 oBOQbwq8wBWBHi3wqLZrn0Nzw4DOmj1E5RNR8OmL5I06xyBCNt2iOo+zY7KtjX3fnM+C
 EEf9ZhwRrdeaJkpozYjfO6tHfxQBQk8ggcYeOx1s8tANdvope2RDSxVMTH7v+uKoWhNt
 MPKAxMNNMG/IwON2wF7QmdaYz49ffHqSBpCOQACkQApjWL5yXNtETXliihznJ7sSVyXe pw== 
Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70])
 by userp2120.oracle.com with ESMTP id 2vk7fr8bry-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 15 Oct 2019 14:36:33 +0000
Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1])
 by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9FEa5tQ100339;
 Tue, 15 Oct 2019 14:36:32 GMT
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])
 by aserp3020.oracle.com with ESMTP id 2vnb0f982p-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 15 Oct 2019 14:36:28 +0000
Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14])
 by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x9FEYmt7012519;
 Tue, 15 Oct 2019 14:34:49 GMT
MIME-Version: 1.0
Message-ID: <6f2c5355-95c3-4e92-b4c6-430ef4158da7@default>
Date: Tue, 15 Oct 2019 14:34:46 +0000 (UTC)
From: Drew Adams <drew.adams@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <87a7a2qwb7.fsf@HIDDEN>
In-Reply-To: <87a7a2qwb7.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4900.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9411
 signatures=668684
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0
 malwarescore=0
 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=974
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1908290000 definitions=main-1910150130
X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9411
 signatures=668684
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000
 definitions=main-1910150130
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> I think it would be rather odd to have just one regexp-reading command
> that uses the rx syntax interactively.  If this is something we want
> (and I don't really envision people willingly typing in rx forms
> interactively), then it should be fixed in `read-regexp'.  It could,
> for instance, have a keystroke that changes the input mode.
>=20
> But do we think that people want to type in rx forms?

(Apologies for jumping in here, ignoring the thread.)

FWIW -

Many applications, including some good ones, provide
dialog boxes (modal or not) for things like search &
replace that let you check a number of settings that
configure the kind of search (and replace).

Emacs generally favors progressive interaction: if
you need to specify multiple things then you are
prompted multiple times, or you use a prefix arg
together with perhaps responding to a single prompt.

But there's no reason that Emacs could not or should
not also offer such dialog boxes - including for
things like Isearch.  (If I had more free time
perhaps I'd wrestle something up with widgets.)

The other thing is that originally Isearch was simple,
in terms of the possibilities it offered.  That's
changed over time (char folding and lots of other
things).  The ability to configure multiple search
settings at once, with a straightforward dialog box,
and then reuse the same settings or modify them, is
a feature waiting to happen.

And I think configuring rx searches would be a great
candidate for this kind of thing.  I don't use RX,
mainly because I'm used to regexps and it think it
would be slower to use RX.  But not necessarily so,
if it's just a question of checking a few boxes.

It should be quick to configure a given search.
And it's super clear because the dialog box can lay
it all out and even provide helpful tooltips for
fields/actions.  And once configured just repeat,
with or without changing some setting.

I say go for it - even without a dialog box.

Do people really "want to type in rx forms?"  Maybe
not.  But later on we could give them a dialog box
that takes the place of typing in rx syntax ("forms").




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: VanL <van@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 20 Oct 2019 06:36:02 +0000
Resent-Message-ID: <handler.31953.B31953.15715533253066 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Phil Sainty <psainty@HIDDEN>
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15715533253066
          (code B ref 31953); Sun, 20 Oct 2019 06:36:02 +0000
Received: (at 31953) by debbugs.gnu.org; 20 Oct 2019 06:35:25 +0000
Received: from localhost ([127.0.0.1]:53708 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iM4oH-0000nO-I2
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 02:35:25 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:60693)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <van@HIDDEN>) id 1iM4oE-0000nC-JH
 for 31953 <at> debbugs.gnu.org; Sun, 20 Oct 2019 02:35:23 -0400
X-Originating-IP: 193.82.251.213
Received: from wakeman.localnet (193-82-251-213.tpgi.com.au [193.82.251.213])
 (Authenticated sender: van@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 26AD420005;
 Sun, 20 Oct 2019 06:35:17 +0000 (UTC)
From: VanL <van@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
Date: Sun, 20 Oct 2019 17:34:37 +1100
In-Reply-To: <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN> (Phil
 Sainty's message of "Tue, 15 Oct 2019 15:39:43 +1300")
Message-ID: <m25zkkdiwy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

Phil Sainty <psainty@HIDDEN> writes:

> On 2019-10-15 13:35, Lars Ingebrigtsen wrote:
>>> I was wanting to migrate from regexp to rx syntax for highlighting.
>>
>> `rx' returns a normal regexp, so you can use whatever you want, can't
>> you?
>
> I think the idea is to be able to *interactively* enter rx syntax
> and have it highlighted (as opposed to `highlight-regexp' which will
> obviously treat what you enter interactively as an actual regexp,
> rather than something to be transformed into one).
>
> i.e. These would be equivalent:
>
> M-x highlight-rx RET (or "foo" "bar") RET
> M-x highlight-regexp RET \(foo\|bar\) RET

What I can tell from the emacs-devel list and the git log is the rx
feature is being worked on.  I'd like to use rx everywhere regexp occurs
and highlight-rx would be the first easy use case.  At the limit there
are things expressible in regexp that rx won't be able to.  And, in that
case, I'd like to see in the rx documentation a sign post to regexp at
depth for that.  And, if there are patterns rx and/or regexp are unable
to express then providing a see also for those would be a help.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 20 Oct 2019 16:33:01 +0000
Resent-Message-ID: <handler.31953.B31953.157158916227034 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: VanL <van@HIDDEN>
Cc: Phil Sainty <psainty@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157158916227034
          (code B ref 31953); Sun, 20 Oct 2019 16:33:01 +0000
Received: (at 31953) by debbugs.gnu.org; 20 Oct 2019 16:32:42 +0000
Received: from localhost ([127.0.0.1]:55171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iME8I-00071y-GG
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 12:32:42 -0400
Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:56594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iME8H-00071q-0E
 for 31953 <at> debbugs.gnu.org; Sun, 20 Oct 2019 12:32:41 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id A0DA458064C;
 Sun, 20 Oct 2019 16:32:39 +0000 (UTC)
Received: from pdx1-sub0-mail-a73.g.dreamhost.com
 (100-96-87-223.trex.outbound.svc.cluster.local [100.96.87.223])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 3D51D5801B5;
 Sun, 20 Oct 2019 16:32:39 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a73.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Sun, 20 Oct 2019 16:32:39 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Slimy-Daffy: 045cf6537da4ba15_1571589159485_1940876893
X-MC-Loop-Signature: 1571589159485:1210073538
X-MC-Ingress-Time: 1571589159485
Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id F11EA82C0F;
 Sun, 20 Oct 2019 09:32:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type:content-transfer-encoding; s=linkov.net; bh=u1NnmD
 nv9guIHdcoowa5FxahSH0=; b=h/9YRCAODIoLuKX8aaUgIrTO4AgF5EDKHkIoHp
 EBKa/ozYVN3adIZP1f+w1OORGAAl5Z5JS++EoRcWz1yiuT9oIdGqVQNavU2GLSUE
 nxePdx0nsna6Jf6Ij+dUv4MtmKtFRSJNpD130viv4KwUY6YNuJrwVuRYyH7z7CmN
 8kBwA=
Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 0BB2082C03;
 Sun, 20 Oct 2019 09:32:30 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a73
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <m25zkkdiwy.fsf@HIDDEN>
Date: Sun, 20 Oct 2019 18:49:39 +0300
In-Reply-To: <m25zkkdiwy.fsf@HIDDEN> (VanL's message of "Sun, 20 Oct
 2019 17:34:37 +1100")
Message-ID: <87h843ptuk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> I think the idea is to be able to *interactively* enter rx syntax
>> and have it highlighted (as opposed to `highlight-regexp' which will
>> obviously treat what you enter interactively as an actual regexp,
>> rather than something to be transformed into one).
>>
>> i.e. These would be equivalent:
>>
>> M-x highlight-rx RET (or "foo" "bar") RET
>> M-x highlight-regexp RET \(foo\|bar\) RET
>
> What I can tell from the emacs-devel list and the git log is the rx
> feature is being worked on.  I'd like to use rx everywhere regexp occur=
s
> and highlight-rx would be the first easy use case.

Do you mean using rx also in all search and replace commands?

But the documentation says:

     The =E2=80=98rx=E2=80=99 notation is mainly useful in Lisp code; it =
cannot be used in
  most interactive situations where a regexp is requested, such as when
  running =E2=80=98query-replace-regexp=E2=80=99 or in variable customisa=
tion.

> At the limit there are things expressible in regexp that rx won't be
> able to.  And, in that case, I'd like to see in the rx documentation
> a sign post to regexp at depth for that.  And, if there are patterns
> rx and/or regexp are unable to express then providing a see also for
> those would be a help.

There is still some shortcomings in the current rx shorthands:

Such verbose constructs as =E2=80=98zero-or-more=E2=80=99 and =E2=80=98on=
e-or-more=E2=80=99
are hard to remember and too long to type.  But fortunately
there are shorter synonyms =E2=80=98*=E2=80=99 and =E2=80=98+=E2=80=99 an=
d other.  But they have
inconsistencies:

- =E2=80=98or=E2=80=99 has a synonym =E2=80=98|=E2=80=99, but =E2=80=98an=
d=E2=80=99 has no synonym =E2=80=98&=E2=80=99

- =E2=80=98A{N}=E2=80=99 is the same as =E2=80=98=3D=E2=80=99, =E2=80=98A=
{N,}=E2=80=99 is =E2=80=98>=3D=E2=80=99, but =E2=80=98A{N,M}=E2=80=99 for=
 some
  reason is =E2=80=98**=E2=80=99.  It would be more mnemonic something li=
ke =E2=80=98=3D=3D=E2=80=99

- =E2=80=98line-start=E2=80=99 and =E2=80=98line-end=E2=80=99 have no sho=
rter synonyms =E2=80=98^=E2=80=99 and =E2=80=98$=E2=80=99
  maybe because adding them would also require adding =E2=80=98\`=E2=80=99=
 and =E2=80=98\'=E2=80=99
  for =E2=80=98buffer-start=E2=80=99 and =E2=80=98buffer-end=E2=80=99, bu=
t =E2=80=98\`=E2=80=99 and =E2=80=98\'=E2=80=99 are very ugly.
  Fortunately there are already good synonyms =E2=80=98bol=E2=80=99 and =E2=
=80=98eol=E2=80=99
  that are easy to remember

- there is still problem with =E2=80=98buffer-start=E2=80=99 and =E2=80=98=
buffer-end=E2=80=99:
  their shorter synonyms are =E2=80=98bot=E2=80=99 and =E2=80=98eot=E2=80=
=99 that have no logic at all.
  Like there are already functions =E2=80=98bolp=E2=80=99, =E2=80=98eolp=E2=
=80=99, =E2=80=98bobp=E2=80=99 and =E2=80=98eobp=E2=80=99
  the best synonyms for buffer matches would be =E2=80=98bob=E2=80=99 and=
 =E2=80=98eob=E2=80=99

- following the same logic =E2=80=98word-start=E2=80=99 could have a syno=
nym =E2=80=98bow=E2=80=99
  and =E2=80=98word-end=E2=80=99 - =E2=80=98eow=E2=80=99.  I checked the =
implementation, and see
  there synonyms already are supported, but not documented.  Why?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Noam Postavsky <npostavs@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 20 Oct 2019 23:36:02 +0000
Resent-Message-ID: <handler.31953.B31953.157161454625249 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: VanL <van@HIDDEN>, Phil Sainty <psainty@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157161454625249
          (code B ref 31953); Sun, 20 Oct 2019 23:36:02 +0000
Received: (at 31953) by debbugs.gnu.org; 20 Oct 2019 23:35:46 +0000
Received: from localhost ([127.0.0.1]:55476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMKji-0006ZB-91
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 19:35:46 -0400
Received: from mail-qk1-f178.google.com ([209.85.222.178]:44178)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1iMKjg-0006Yy-Om
 for 31953 <at> debbugs.gnu.org; Sun, 20 Oct 2019 19:35:45 -0400
Received: by mail-qk1-f178.google.com with SMTP id u22so10724040qkk.11
 for <31953 <at> debbugs.gnu.org>; Sun, 20 Oct 2019 16:35:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=rPZJrUpzNbNL/iNWt1HGZklohLjdLDcmozvvs7zuS88=;
 b=YohQgIezGc/ijXZCpftJk09HN45Wml9YLoowqq5MRX5Z9tcSlz2v9tynkVopdG8nNQ
 Xcago4eHn1Lv9hiOedz/r5TrleTDcdu178GGJYqub+QTmBK5it/0ii13P0PPC0SDYmVo
 qo7J1j2/w9IMjXEjqlXg1AUS+FyyTPMT7daf0GebqPXdVcN2n7F8wyTzDmzGu+a2pMvU
 3HCrhLOpMBU/JG7sssLnb28KKn1zXx1feBAJfL2iTbEuulVxM9t0z3RJ48M1kX36SP24
 5lRvkO5Ul/TBL98Dz1afUlCL323JE61JQGSAteh2ISvVPV8j73NVWR20S0JBMFtg84RI
 1q6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=rPZJrUpzNbNL/iNWt1HGZklohLjdLDcmozvvs7zuS88=;
 b=XG3sTeBlRWt9bbTlhwYCMBLF5TO6/Pui+x9JLSz3IZwF4mad4rGX6klc4cN3npRCcG
 wBJVAt+ufrgUng3+kWrdd9O74Uzab0w2qRtJ8QxybFaavoRAo2Bbg03wrxT3oOU0WAZE
 gYhQh3mB4WnlK2i56SZXigmJZsvO7a5bQVvxkjj2XI7w0mzbm2QTkMIb7cNZl+XCZVQE
 1XzibCZr3v0QtdtopJRCtWphSqLT8yLb26U2/qCDDJYeFR1p9JMr5Vd4Px3LhsoruHeH
 rDZUOPDke4Wis3l99s0Smn/zSq8+UlqmCfAyRnPHBPnmhCgU5CLlBfvLbmgcfy3cRIsy
 ppPQ==
X-Gm-Message-State: APjAAAVHmoTM8iYWecMpv0b8cXMk+g4QgvBsHiGsIwu0XVl/cFyOqGAO
 zfMWC3HpNT/LyKiigZqswU0uzIxe
X-Google-Smtp-Source: APXvYqzp9dlZbxXlcXakH9dNMrskXNVx7CfzoyRHcy/bRqWHnOyB4q3bW7Uh/nMvToiLiO2FebtSoA==
X-Received: by 2002:a05:620a:15c9:: with SMTP id
 o9mr19563417qkm.34.1571614538060; 
 Sun, 20 Oct 2019 16:35:38 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.gmail.com with ESMTPSA id
 v139sm7078783qkb.53.2019.10.20.16.35.35
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 20 Oct 2019 16:35:36 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <m25zkkdiwy.fsf@HIDDEN> <87h843ptuk.fsf@HIDDEN>
Date: Sun, 20 Oct 2019 19:35:30 -0400
In-Reply-To: <87h843ptuk.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 20 Oct 2019 18:49:39 +0300")
Message-ID: <874l03dm7x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

> - =E2=80=98or=E2=80=99 has a synonym =E2=80=98|=E2=80=99, but =E2=80=98an=
d=E2=80=99 has no synonym =E2=80=98&=E2=80=99

`and' is not the counterpart of `or', it's a synonym for `seq' or `:'.
We should probably deprecate `and', since this is a bit confusing.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 21 Oct 2019 21:31:01 +0000
Resent-Message-ID: <handler.31953.B31953.157169343422826 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Noam Postavsky <npostavs@HIDDEN>
Cc: VanL <van@HIDDEN>, Phil Sainty <psainty@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157169343422826
          (code B ref 31953); Mon, 21 Oct 2019 21:31:01 +0000
Received: (at 31953) by debbugs.gnu.org; 21 Oct 2019 21:30:34 +0000
Received: from localhost ([127.0.0.1]:58001 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMfG6-0005w6-E8
	for submit <at> debbugs.gnu.org; Mon, 21 Oct 2019 17:30:34 -0400
Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:21999)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iMfG3-0005vq-RG
 for 31953 <at> debbugs.gnu.org; Mon, 21 Oct 2019 17:30:32 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 81C388C1F9F;
 Mon, 21 Oct 2019 21:30:30 +0000 (UTC)
Received: from pdx1-sub0-mail-a57.g.dreamhost.com
 (100-96-84-88.trex.outbound.svc.cluster.local [100.96.84.88])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 9B4E88C20C9;
 Mon, 21 Oct 2019 21:30:29 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a57.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Mon, 21 Oct 2019 21:30:30 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Language-Cooperative: 78e9f3374c98def8_1571693430251_1541228975
X-MC-Loop-Signature: 1571693430251:4287604511
X-MC-Ingress-Time: 1571693430251
Received: from pdx1-sub0-mail-a57.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a57.g.dreamhost.com (Postfix) with ESMTP id 4FF867FE33;
 Mon, 21 Oct 2019 14:30:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type:content-transfer-encoding; s=linkov.net; bh=rE1BHr
 ebVimctO33pFH/v03FMJ0=; b=PGHL1vVih1M2RR4a+7WDRiLjdG6bczlsUdjEqK
 d7RhIyiq/v7e5GnjyeOXhcE1Y0015hKZgpr7HPjp3txxFODnXc3hh7cjIhPT1WfG
 +SUsAP85aGvz5DwhOPqUXTV1UIYHYUclfOX7Rc5kJPCzeOkR/QI2ILbaCHm6Q9tO
 0X5XA=
Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a57.g.dreamhost.com (Postfix) with ESMTPSA id 3B44E7FE22;
 Mon, 21 Oct 2019 14:30:18 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a57
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <m25zkkdiwy.fsf@HIDDEN> <87h843ptuk.fsf@HIDDEN>
 <874l03dm7x.fsf@HIDDEN>
Date: Tue, 22 Oct 2019 00:19:48 +0300
In-Reply-To: <874l03dm7x.fsf@HIDDEN> (Noam Postavsky's message of "Sun, 20
 Oct 2019 19:35:30 -0400")
Message-ID: <87mudtdcv7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> - =E2=80=98or=E2=80=99 has a synonym =E2=80=98|=E2=80=99, but =E2=80=98=
and=E2=80=99 has no synonym =E2=80=98&=E2=80=99
>
> `and' is not the counterpart of `or', it's a synonym for `seq' or `:'.
> We should probably deprecate `and', since this is a bit confusing.

I consider =E2=80=98rx=E2=80=99 as an analogue of Definite Clause Grammar=
.

I'm so accustomed to Prolog paradigms used for defining grammars in DCG
that I can't use `rx' without its analogous constructs, e.g. such DCG:

  rx --> a, b; c.

where =E2=80=98,=E2=80=99 denotes conjunction, and =E2=80=98;=E2=80=99 de=
notes disjunction,
would naturally translate in =E2=80=98rx=E2=80=99 to corresponding and/or=
:

  (rx (| (& a b) c))

For example, this package parses a regexp and returns a DCG structure:
https://github.com/SWI-Prolog/packages-regex/blob/master/regex.dcg.pl




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: VanL <van@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 02 Nov 2019 08:32:02 +0000
Resent-Message-ID: <handler.31953.B31953.15726834687587 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15726834687587
          (code B ref 31953); Sat, 02 Nov 2019 08:32:02 +0000
Received: (at 31953) by debbugs.gnu.org; 2 Nov 2019 08:31:08 +0000
Received: from localhost ([127.0.0.1]:58059 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iQooN-0001yJ-Lv
	for submit <at> debbugs.gnu.org; Sat, 02 Nov 2019 04:31:07 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57613)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <van@HIDDEN>) id 1iQooL-0001y7-2B
 for 31953 <at> debbugs.gnu.org; Sat, 02 Nov 2019 04:31:06 -0400
X-Originating-IP: 193.119.97.187
Received: from vogel.localnet (193-119-97-187.tpgi.com.au [193.119.97.187])
 (Authenticated sender: van@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 8532020003;
 Sat,  2 Nov 2019 08:31:00 +0000 (UTC)
From: VanL <van@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <m25zkkdiwy.fsf@HIDDEN> <87h843ptuk.fsf@HIDDEN>
Date: Sat, 02 Nov 2019 19:30:46 +1100
In-Reply-To: <87h843ptuk.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 20 Oct 2019 18:49:39 +0300")
Message-ID: <m2h83md6ix.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

Juri Linkov <juri@HIDDEN> writes:

>>> i.e. These would be equivalent:
>>>
>>> M-x highlight-rx RET (or "foo" "bar") RET
>>> M-x highlight-regexp RET \(foo\|bar\) RET
>>
>> What I can tell from the emacs-devel list and the git log is the rx
>> feature is being worked on.  I'd like to use rx everywhere regexp occurs
>> and highlight-rx would be the first easy use case.
>
> Do you mean using rx also in all search and replace commands?

I guess so if that makes sense to do farther down the track.
The advantage to using rx is to avoid those repeating
pathological toothpick sequences that are difficult to track.
For now, highlight-rx for searching is enough.

> But the documentation says:
>
>      The =E2=80=98rx=E2=80=99 notation is mainly useful in Lisp code; it =
cannot be used in
>   most interactive situations where a regexp is requested, such as when
>   running =E2=80=98query-replace-regexp=E2=80=99 or in variable customisa=
tion.

For search and replace, I don't know if it would be possible to
use in org-mode in the future, say, a table of three columns
having

1. input pattern
2. output 'desired' pattern
3. rx pattern which is generated automatically for 2

>> At the limit there are things expressible in regexp that rx won't be
>> able to.  And, in that case, I'd like to see in the rx documentation
>> a sign post to regexp at depth for that.  And, if there are patterns
>> rx and/or regexp are unable to express then providing a see also for
>> those would be a help.
>
> There is still some shortcomings in the current rx shorthands: ...

I guess the rx keywords will evolve to fit better with
experience.  Statistics are beginning to be collected on the
reported bugs.  Perhaps, rx can be used there where it makes
sense.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 03 Nov 2019 22:41:01 +0000
Resent-Message-ID: <handler.31953.B31953.157282083229150 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: Phil Sainty <psainty@HIDDEN>, VanL <van@HIDDEN>, 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157282083229150
          (code B ref 31953); Sun, 03 Nov 2019 22:41:01 +0000
Received: (at 31953) by debbugs.gnu.org; 3 Nov 2019 22:40:32 +0000
Received: from localhost ([127.0.0.1]:35632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iROXu-0007a3-B8
	for submit <at> debbugs.gnu.org; Sun, 03 Nov 2019 17:40:31 -0500
Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:56673)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iROXr-0007Zt-Lw
 for 31953 <at> debbugs.gnu.org; Sun, 03 Nov 2019 17:40:28 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 3A7A32C1121;
 Sun,  3 Nov 2019 22:40:26 +0000 (UTC)
Received: from pdx1-sub0-mail-a77.g.dreamhost.com
 (100-96-85-194.trex.outbound.svc.cluster.local [100.96.85.194])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 6B13E2C0D0D;
 Sun,  3 Nov 2019 22:40:24 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a77.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Sun, 03 Nov 2019 22:40:26 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Keen-Whispering: 22bf7ac757ec152a_1572820826005_1156870946
X-MC-Loop-Signature: 1572820826005:2184537100
X-MC-Ingress-Time: 1572820826005
Received: from pdx1-sub0-mail-a77.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTP id 08EFE852E9;
 Sun,  3 Nov 2019 14:40:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type:content-transfer-encoding; s=linkov.net; bh=/YYnAJ
 S2ojZQ6PjfC6znlMUxb3w=; b=kF2HAgdDlTXT+lKHHTfDq5Gw3Speev0gm4uBG5
 Hxsp44g5ERDeNLa97XSVnoBJtadtRqEmz0bIe7PFd+ZiIxuPcgCwQlF3V2dZC1T/
 bY5NtBjhrNdg/BpYyzyDViGMxrpt5WgiNp7NoBVocKqYCwApZk3CJWLSL7MVvYN1
 Iju6A=
Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTPSA id 3E3A6852E7;
 Sun,  3 Nov 2019 14:40:15 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a77
From: Juri Linkov <juri@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <875zkqsx1c.fsf@HIDDEN> <87o8yirgk4.fsf@HIDDEN>
 <646a4a85cca29e6ca83e1b5b2004902b@HIDDEN>
 <87a7a2qwb7.fsf@HIDDEN>
Date: Mon, 04 Nov 2019 00:27:37 +0200
In-Reply-To: <87a7a2qwb7.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 15 Oct 2019 09:53:16 +0200")
Message-ID: <87sgn4egti.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> If this is something we want (and I don't really envision people
> willingly typing in rx forms interactively), then it should be fixed
> in `read-regexp'.

Yep, `read-regexp' would be the right place to implement this.
Then like `read-from-minibuffer' has the arg `READ':

  If fourth arg READ is non-nil, interpret the result as a Lisp object
    and return that object:
    in other words, do =E2=80=98(car (read-from-string INPUT-STRING))=E2=80=
=99

`read-regexp' could have the same arg.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 18 Nov 2019 21:53:02 +0000
Resent-Message-ID: <handler.31953.B31953.157411395720339 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Van L <van@HIDDEN>
Cc: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157411395720339
          (code B ref 31953); Mon, 18 Nov 2019 21:53:02 +0000
Received: (at 31953) by debbugs.gnu.org; 18 Nov 2019 21:52:37 +0000
Received: from localhost ([127.0.0.1]:46379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iWown-0005Hy-FR
	for submit <at> debbugs.gnu.org; Mon, 18 Nov 2019 16:52:37 -0500
Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:41670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iWowl-0005Ho-Pt
 for 31953 <at> debbugs.gnu.org; Mon, 18 Nov 2019 16:52:36 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id BB3E5341340;
 Mon, 18 Nov 2019 21:52:34 +0000 (UTC)
Received: from pdx1-sub0-mail-a6.g.dreamhost.com
 (100-96-196-51.trex.outbound.svc.cluster.local [100.96.196.51])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 5150D3412CC;
 Mon, 18 Nov 2019 21:52:34 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a6.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.5); Mon, 18 Nov 2019 21:52:34 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Keen-Daffy: 32c8f6fa4a0886ad_1574113954565_2678861086
X-MC-Loop-Signature: 1574113954565:439362198
X-MC-Ingress-Time: 1574113954564
Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id 00340A7010;
 Mon, 18 Nov 2019 13:52:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=9eoDw/yyjeN1VmoXvwkjOu9Omxw=; b=
 XLU0zUzTl7d7T3mH4S/z0nvfAsb5g7qsJHcUQvgsRzHsYpuNwL5kvwAUwBfAtgG7
 qyhhA+Tj0nitF8OyHd3EhgzS2lodE9pT/Jm8ffPfMtqhyvMar/BGNAfQOe77juK7
 VcJr7NoRnQsQmmGHCpt5PuZxQrNoYnVrFurEKXiQM1s=
Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 8C407A7004;
 Mon, 18 Nov 2019 13:52:25 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a6
From: Juri Linkov <juri@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
Date: Mon, 18 Nov 2019 23:42:05 +0200
In-Reply-To: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN> (Van L.'s
 message of "Sun, 24 Jun 2018 17:47:31 +1000")
Message-ID: <87ftiksvyq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Towards the transition to rx from regexp
> may I suggest `highlight-rx` for `highlight-regexp`.
>
> A usecase is to mark a region or string of few words
> and to call `highlight-rx` which does a verbatim highlight.

Nothing stops you from using rx in regexp commands already.

The first example shows how to use rx to find all Lisp comments:

 M-s o      ;; occur
 M-:        ;; eval-expression, then type or yank the following rx:
 (insert (rx bol (* whitespace) ";" (* nonl)))
 <return>   ;; exit-minibuffer inserts the converted regexp to the minibuffer
 <return>   ;; exit-minibuffer uses this regexp

The second example shows how to use rx to remove all Lisp comments:

 C-M-%      ;; query-replace-regexp
 M-:        ;; eval-expression
 M-p        ;; previous-history-element inserts the previous rx from history
 <return>   ;; exit-minibuffer inserts the converted regexp to the minibuffer
 <return>   ;; exit-minibuffer uses an empty string as replacement
 <return>   ;; exit-minibuffer replaces all comments with empty string

in 'emacs -Q' with (setq enable-recursive-minibuffers t)
The same can be used for 'highlight-regexp' as well.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: VanL <van@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 19 Nov 2019 12:36:02 +0000
Resent-Message-ID: <handler.31953.B31953.157416691628271 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.157416691628271
          (code B ref 31953); Tue, 19 Nov 2019 12:36:02 +0000
Received: (at 31953) by debbugs.gnu.org; 19 Nov 2019 12:35:16 +0000
Received: from localhost ([127.0.0.1]:46730 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iX2iy-0007Lv-DK
	for submit <at> debbugs.gnu.org; Tue, 19 Nov 2019 07:35:16 -0500
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35089)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <van@HIDDEN>) id 1iX2iu-0007Lh-IC
 for 31953 <at> debbugs.gnu.org; Tue, 19 Nov 2019 07:35:13 -0500
X-Originating-IP: 193.119.97.187
Received: from vogel.localnet (193-119-97-187.tpgi.com.au [193.119.97.187])
 (Authenticated sender: van@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1E0A0C001C;
 Tue, 19 Nov 2019 12:35:08 +0000 (UTC)
From: VanL <van@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <87ftiksvyq.fsf@HIDDEN>
Date: Tue, 19 Nov 2019 23:34:53 +1100
In-Reply-To: <87ftiksvyq.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 18 Nov 2019 23:42:05 +0200")
Message-ID: <m2eey49h8y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)


>> Towards the transition to rx from regexp
>> may I suggest `highlight-rx` for `highlight-regexp`.
>>
>> A usecase is to mark a region or string of few words
>> and to call `highlight-rx` which does a verbatim highlight.
>
> Nothing stops you from using rx in regexp commands already.
>
> The first example shows how to use rx to find all Lisp comments:
>
>  M-s o      ;; occur
>  M-:        ;; eval-expression, then type or yank the following rx:
>  (insert (rx bol (* whitespace) ";" (* nonl)))
>  <return>   ;; exit-minibuffer inserts the converted regexp to the minibuffer
>  <return>   ;; exit-minibuffer uses this regexp
>

Ah, got it.

> The second example shows how to use rx to remove all Lisp comments:
>
>  C-M-%      ;; query-replace-regexp
>  M-:        ;; eval-expression
>  M-p        ;; previous-history-element inserts the previous rx from history
>  <return>   ;; exit-minibuffer inserts the converted regexp to the minibuffer
>  <return>   ;; exit-minibuffer uses an empty string as replacement
<  !          ;; exit-minibuffer replaces all comments with empty string
>
> in 'emacs -Q' with (setq enable-recursive-minibuffers t)
> The same can be used for 'highlight-regexp' as well.

Thanks for the examples.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#31953: feature request - `highlight-rx` interactively
Resent-From: VanL <van@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 19 Nov 2019 21:40:02 +0000
Resent-Message-ID: <handler.31953.B31953.15741996006777 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 31953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: 31953 <at> debbugs.gnu.org
Received: via spool by 31953-submit <at> debbugs.gnu.org id=B31953.15741996006777
          (code B ref 31953); Tue, 19 Nov 2019 21:40:02 +0000
Received: (at 31953) by debbugs.gnu.org; 19 Nov 2019 21:40:00 +0000
Received: from localhost ([127.0.0.1]:48653 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iXBE8-0001lE-9g
	for submit <at> debbugs.gnu.org; Tue, 19 Nov 2019 16:40:00 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:40363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <van@HIDDEN>) id 1iXBE1-0001l0-4D
 for 31953 <at> debbugs.gnu.org; Tue, 19 Nov 2019 16:39:56 -0500
X-Originating-IP: 193.119.97.187
Received: from vogel.localnet (193-119-97-187.tpgi.com.au [193.119.97.187])
 (Authenticated sender: van@HIDDEN)
 by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id CEEB51C0006;
 Tue, 19 Nov 2019 21:39:48 +0000 (UTC)
From: VanL <van@HIDDEN>
References: <DACF1335-66D7-411F-AD12-ECC407AFCF56@HIDDEN>
 <87ftiksvyq.fsf@HIDDEN>
Date: Wed, 20 Nov 2019 08:39:34 +1100
In-Reply-To: <87ftiksvyq.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 18 Nov 2019 23:42:05 +0200")
Message-ID: <m2a78ra6ll.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)


> Nothing stops you from using rx in regexp
> commands already.

From a human factor's usability standpoint, the UI would
be better initially intuitively as sourcetrail's is. [1]



--
Footnotes: 
[1]  https://invidio.us/watch?v=Cfu6f0uyzc8
     Sourcetrail - Introduction






Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.