From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: rx.el sexp regexp syntax Date: Mon, 4 Jun 2018 08:24:45 -0700 (PDT) Message-ID: <6d1f1246-a1ed-4401-9ab5-c9bb0451a510@default> References: <87h8mw3yoc.fsf@gmail.com> <20180525155126.GA4096@ACM> <87lgc7hebk.fsf@gmail.com> <87r2lzd375.fsf@ericabrahamsen.net> <87lgbx2dc1.fsf@ericabrahamsen.net> <87in6z6gwa.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528126237 25671 195.159.176.226 (4 Jun 2018 15:30:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 15:30:37 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 17:30:32 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPrRD-0006Vg-AG for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 17:30:27 +0200 Original-Received: from localhost ([::1]:40398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrTK-0003QC-2b for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 11:32:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrLr-0006Vs-UE for emacs-devel@gnu.org; Mon, 04 Jun 2018 11:24:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPrLo-0000B2-MB for emacs-devel@gnu.org; Mon, 04 Jun 2018 11:24:55 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:48392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPrLo-0000Ae-B1 for emacs-devel@gnu.org; Mon, 04 Jun 2018 11:24:52 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w54FKa9g084070; Mon, 4 Jun 2018 15:24:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=+mtALLPfKnzYzdE4N48o6nB8V9vh6MWuevr3mSGHlrs=; b=i4PF4PNhV9RVvtzid+tfi17n1u0bqN02EbRJqLk0Yh7lFH7xICVVfJVMdc4QErpsrzLv RlfCIeEikvG/AclXoj71PBFB5f3i+Gqr23QuV5LBr67tbIEwoVywcmeJlXDjFN9G3MqA A8dtcGw/cl+vKhxCq1vL0TUs+iys4IFFp+dxglhacuf46EcCK0fiOHBBCvTS5fr96xFM Or4kAtItrDA4PFuKbutO4JzN6g3OWnglcM28uk7tnNuy6X9c5lsb3LAchs6e4y6W28my eSsJ4mwCuwtq4SplxHR3Ho8w4w9sWSGhJcJB8yNvEFjDYK5GYk7lABBY4F723kpbSMBY VQ== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2jbvynv1st-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Jun 2018 15:24:50 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w54FOodK008515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Jun 2018 15:24:50 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w54FOk5x025407; Mon, 4 Jun 2018 15:24:50 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4690.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8914 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=459 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806040181 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225997 Archived-At: > For such regexps, the exact syntax (PCRE, BRE, ERE, RX, ...) in use has > fairly little importance: if written "raw" as above, it will be > indecipherable in any case. >=20 > To make it readable, you need to add human-level explanations > e.g. by adding comments and naming sub-elements. Which is indeed what > is done in the source code:... Agreed.