From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: rx.el sexp regexp syntax Date: Wed, 30 May 2018 09:25:52 +0200 Message-ID: <87y3g1a9kv.fsf@gmail.com> References: <87h8mw3yoc.fsf@gmail.com> <20180525155126.GA4096@ACM> <87lgc7hebk.fsf@gmail.com> <87r2lzd375.fsf@ericabrahamsen.net> <8736ybpwhh.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527665107 13237 195.159.176.226 (30 May 2018 07:25:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 May 2018 07:25:07 +0000 (UTC) Cc: Philipp Stephani , emacs-devel@gnu.org, monnier@iro.umontreal.ca, ambrevar@gmail.com To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 30 09:25:02 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 1fNvTi-0003Hh-6s for ged-emacs-devel@m.gmane.org; Wed, 30 May 2018 09:25:02 +0200 Original-Received: from localhost ([::1]:36682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNvVn-0001Pq-JN for ged-emacs-devel@m.gmane.org; Wed, 30 May 2018 03:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNvUh-0000rM-8K for emacs-devel@gnu.org; Wed, 30 May 2018 03:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNvUc-00009q-CS for emacs-devel@gnu.org; Wed, 30 May 2018 03:26:03 -0400 Original-Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:43066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNvUc-00009S-4o; Wed, 30 May 2018 03:25:58 -0400 Original-Received: by mail-wr0-x22a.google.com with SMTP id d2-v6so12919568wrm.10; Wed, 30 May 2018 00:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=bFQSRwHAd0cEWxddCTMxgwTV8I86iS3+kRy1UDA6ges=; b=LPl8LMHxVQOwLudKX4bfnn4hoTrurgO5AS7/gs1HvkLcQijYgR7NUeW4lKoy4zctIC JuaTHlfdWoWsUXvgu5dkHsrrwbVxYUUkd+Qas0UOsjAXRtWDuXGFPDd8mv9dRk/Wmirb Xf/OULes0ENclyOIKjoTwOxTsjSg2u+XqQsFJVRv5Jeo2Y9Jlodf8L4BXCCSFAadNXsW nafw0ubACjqBriBXZ3fUlwjbKyvxVVGI0FHNjFkHi+fYIvjRhyWP04RyitH9jt/wpRkO KxkP+dCApZUYq2XDd7b1o/gkspjTwj2agkUm7bCQK7z26z3h1Xko8so6y35nNa+rEa4B pd4g== 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:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=bFQSRwHAd0cEWxddCTMxgwTV8I86iS3+kRy1UDA6ges=; b=MG0qp3XObAis4Z6BrDQBgfhsmU3sOoyuoM2UIJgwWgaRCIoUJbTy+r5XAaxMnsD9Gz YGgf8II2CtTeB0H5XsYpwSHkSzzqe3Lr3+j0LlzJySfcL9SV4I4oPrRrlYyXgGYPw7tS xmlJwP96EK9hYMT4RLq4DHTGliCPe8ByPOCbuwLZQ4aIQsgySYAegr8Bygnh/ystG/xn pA2xUQics0bOjUhGFs/pS32ToPHU1ReDk/NHIoWu5jcSZD16exKyGlG1duVhaJw4y7aV RTcg3gaVBahXuOD0HfREnxrMnyw+uCfXyyLtazLHlW5e4wjCPY4K+AobRgI+j3gNLA0W b72Q== X-Gm-Message-State: ALKqPwdRKUTUkmrNN12rdKZL7dzlR1LcHk2k9q4gDgszK/vibcZ70QTV FwjHd/BMYxKgHrXmFPD2Ca3mh7dQSm0= X-Google-Smtp-Source: ADUXVKKBfbBaHHEebNZOS/4NPIp4lcEAWEo5tnh+awiEUQOxw2t4JMbA0/04zlGXf4HqkgvscBFPow== X-Received: by 2002:adf:f40a:: with SMTP id g10-v6mr1085772wro.256.1527665156534; Wed, 30 May 2018 00:25:56 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n7-v6sm16270579wri.27.2018.05.30.00.25.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 00:25:55 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Richard Stallman's message of "Tue, 29 May 2018 23:24:36 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22a 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:225818 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > FWIW, I think its verbosity is RX's main *advantage*. It makes regular > > expressions so much easier to read that I stopped writing regex strin= gs the > > moment I discovered RX. > > The clearer representation of structure is not the same thing as > verbosity. rx does both, but they are not the same thing. We could > envision making the structure more or less equally clear without > making the patterns so long. It=CA=BCs not clear to me how you'd do that. Looking at rx-constituents, quite a few of the verbose ways of specifying what to match already have a succinct version, eg sequence =3D> and zero-or-more =3D> * and frankly being able to write 'bos' rather than remembering '\\`' or 'symbol-start' rather than '\\_<' is a net win in my eyes. Robert