From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jay Kamat Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Sat, 16 Jun 2018 18:31:33 -0400 Message-ID: <87po0qs6re.fsf@gmail.com> References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529188179 20299 195.159.176.226 (16 Jun 2018 22:29:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 22:29:39 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 26.1.50 Cc: emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 17 00:29:35 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 1fUJhN-00057j-OS for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2018 00:29:33 +0200 Original-Received: from localhost ([::1]:53048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUJjU-0001XJ-Pj for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 18:31:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUJjP-0001XE-DE for emacs-devel@gnu.org; Sat, 16 Jun 2018 18:31:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUJjM-00040D-9z for emacs-devel@gnu.org; Sat, 16 Jun 2018 18:31:39 -0400 Original-Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:42530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUJjM-000405-5o for emacs-devel@gnu.org; Sat, 16 Jun 2018 18:31:36 -0400 Original-Received: by mail-qt0-x22f.google.com with SMTP id y31-v6so12237853qty.9 for ; Sat, 16 Jun 2018 15:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=E93Io4I20KAWaAl7dQ841FpYN0/YFqDVWC7W+P/NVjA=; b=AT3DVFmLm5eYMMXFaA/dOTCcreJk4+VAsqu6Wp1c7c2w1Np34khHBoOT5aKp/0t+Y7 o+WULOpoyKkGF7ePWmWdahZROAkIwr76hHs3tenbUbZKlRuhTrxaSPS8t6wMF+46FsH+ PMDtmOes497bmnn3zvGsELDlcbQOz6XP+p1OoUdgD3eO99J2qM1gOs0HzTN7VzbwJPt6 dpCxHh5ErG0DKkQkXdILrkW8KJzmuPbizjiASgY0lzKrJlRfU7J5Jf5rAIyjevTmBwBW s93/+Ty2QGBZ4lFvX3g3TycLLSX2isH+IyKuFhu12WaVzhz0OxJJ79XacuthK4zq/+ua hkXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=E93Io4I20KAWaAl7dQ841FpYN0/YFqDVWC7W+P/NVjA=; b=cd8bOBefoCRq0JRFlrzcH9Fo8k0offeaI/64Vn2XhanCqICHkzulQXt6tvmzXbMeFa mCd1lTLwuD9XAWBVlNXzA2PbNTCdIwVwnxity8YGpoKCeGAqVyNFcf4WsZWT5rQjjRbm Ldrpsrj6ciifwGgur7d+oteq7i4yJRAfiNCCoHIKIDtItVjuUNHAMWCuc2Zt9eLxuVv4 lG6zg6pIwQWnYsoBHjAG2xoFIwN8WGRzFk74oyeaxb+cVtUFetE9fL22TKopeGxGvYCe d69rwny6W94rfqtom8EG31wFgyallhsUpsVPHW/UugEiLOEC5X+rf4e5IwPzhIsJ9poY ec1A== X-Gm-Message-State: APt69E2MFDHtbfOheKw8/U6vLWrA6jeL9MozJQItSUKRYmd69wI1T18Q 4Ehom/Q5DWezc5AOFMfsj6JCwgiF X-Google-Smtp-Source: ADUXVKLau/vXDfBtMj2xxrs1x1T5LJzMXfAH5jB1/hlwzMezQLvAgFg1qIZP14LV1wL0Tga6dLB7Tw== X-Received: by 2002:a0c:95c1:: with SMTP id t1-v6mr6095417qvt.240.1529188295231; Sat, 16 Jun 2018 15:31:35 -0700 (PDT) Original-Received: from laythe ([66.171.175.55]) by smtp.gmail.com with ESMTPSA id c19-v6sm6687760qtp.22.2018.06.16.15.31.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Jun 2018 15:31:34 -0700 (PDT) In-reply-to: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22f 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:226398 Archived-At: Perry E. Metzger writes: > I think, someday, it would be nice if users could select modern > regex syntax instead of the very very old-fashioned and awkward Emacs > regex syntax. The old syntax and functions that implement it need to > be kept around for legacy reasons, but one could easily set up a set > of parallel new functions that used modern PCRE style syntax, and > allow users to select those instead when doing things like > isearching on regexps etc. I just wanted to note that `rx' is in many cases much easier to write and understand than even PCRE. I'd recommend learning and using `rx' if you are annoyed about backslashes or readability. -Jay