From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#37659: rx additions: anychar, unmatchable, unordered-or Date: Thu, 24 Oct 2019 07:32:59 -0700 (PDT) Message-ID: <4688fc1e-2b9a-429f-8549-7b7335fcc99c@default> References: <88571301-3F15-428F-82F9-60A23D817EF8@acm.org> <1A5B8E3D-B147-4B89-BFAE-50DCB0A64D3B@acm.org> <9016eb3d-7d58-5950-862a-13db4c7ff32b@cs.ucla.edu> <235cea28-99cc-44d6-bc20-ccd8c9e31f44@default> <39b1e949-5d0f-9851-2c52-167d1f86e2bf@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65996"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Paul Eggert , 37659@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 16:59:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNeaJ-000H0L-Ef for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 16:59:31 +0200 Original-Received: from localhost ([::1]:44874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNeaH-0006ig-LL for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 10:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40095) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNeBh-00068W-G1 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 10:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNeBf-0002lh-Mu for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 10:34:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNeBe-0002jq-5W for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 10:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNeBe-000787-0o for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2019 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37659-submit@debbugs.gnu.org id=B37659.157192760927369 (code B ref 37659); Thu, 24 Oct 2019 14:34:01 +0000 Original-Received: (at 37659) by debbugs.gnu.org; 24 Oct 2019 14:33:29 +0000 Original-Received: from localhost ([127.0.0.1]:36732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNeB6-00077M-Va for submit@debbugs.gnu.org; Thu, 24 Oct 2019 10:33:29 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:46404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNeB4-000779-St for 37659@debbugs.gnu.org; Thu, 24 Oct 2019 10:33:27 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9OENfAt174563; Thu, 24 Oct 2019 14:33:02 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=JBNdwl5K+4dy7sfDhqnSTfM1lUd/eXQm9volgcDPevs=; b=TFdgf0A2WYN1DroZM0QswbKNXltqMzuw47OLka0Z3T8V6Y2WwZGSSaL5lTCf4SxarThB q0KsMaxPvQnQUmqI0Lzx2Xs8eaky055QKBZiC2WQl8bqe36fzwn2jBedDJ4LKNvWNSy1 LrhDRr0ePbD5xZ928FmRdxnx6c5Xur967fGNvIelO03aHpQfCMX0t1AH/nA4zv5+wUgW AlDpdIz12Dvq4dbsyRcVFvUVHV6Uif1zhRE7/InPoQwQkzetDrfZUFKKuLfdpx6VFzHR GnX+fGdPKmrKc/4HgaLnwJwtABHAPERFJBgFQMe2GkjaZHgCbpGLcjDRa4SgZL0iSi/9 Ag== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2vqteq428f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Oct 2019 14:33:02 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9OENdjR096898; Thu, 24 Oct 2019 14:33:02 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2vtm24n0r4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Oct 2019 14:33:02 +0000 Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x9OEX0hk008207; Thu, 24 Oct 2019 14:33:00 GMT In-Reply-To: <39b1e949-5d0f-9851-2c52-167d1f86e2bf@orcon.net.nz> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4900.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9419 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910240135 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9419 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=1015 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-1910240135 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170130 Archived-At: > > Is there an identifiable subset of rx features ... that map > > (even if not one-to-one) to regexp syntax components? >=20 > C-h f rx >=20 > (syntax SYNTAX) Match a character with syntax SYNTAX, being one of: > whitespace, punctuation, word, symbol, open-parenthesis, > close-parenthesis, expression-prefix, string-quote, > paired-delimiter, escape, character-quote, comment-start, > comment-end, string-delimiter, comment-delimiter Yes, that's fine for char syntax classes. It's good that their correspondences are listed. But for, say, `line-start' (aka `bol') there is a verbal description but no mention of the Elisp regexp syntax that corresponds: =E2=80=98line-start=E2=80=99, =E2=80=98bol=E2=80=99 matches the empty string, but only at the beginning of a line in the text being matched That's the kind of thing I was suggesting. It would be helpful, I think, to mention (somewhere) that the regexp syntax for this is "^". Same thing for the other constructs (`string-start' and all the rest). I'm using Emacs 26.3. I didn't find anything beyond the doc string - nothing in the Emacs or Elisp manual (which is OK).