From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Ugly regexps Date: Thu, 4 Mar 2021 12:25:48 +0100 Message-ID: References: <83pn0g6ajq.fsf@gnu.org> <83v9a8jj2x.fsf@gnu.org> <83mtvkjb6c.fsf@gnu.org> <96182b13-f921-6f91-0cdc-320f54ed16bf@yandex.ru> <87lfb3w5v7.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Dmitry Gutov , stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 04 12:29:03 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHmAA-0005Vu-V1 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Mar 2021 12:29:02 +0100 Original-Received: from localhost ([::1]:50720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHmA9-0003bG-V7 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Mar 2021 06:29:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHm7D-00024L-AZ for emacs-devel@gnu.org; Thu, 04 Mar 2021 06:25:59 -0500 Original-Received: from mail235c50.megamailservers.eu ([91.136.10.245]:49636 helo=mail56c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHm7B-0007q9-3a; Thu, 04 Mar 2021 06:25:59 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1614857152; bh=v2sbjsXag/zdhkStKGOTIXbahWf7lvpZTL6CPiKLy4o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=BJlyEkyaHGbjvne7QCXc0Jt4DlFHujPJEOKt0+iQHGjlTtV+DLSEJKvUAuuFUJTS1 iITSt4MMTZAXpoydunmEmr0nLV1VhWpwO0geeBQ1BDML9c1UIc5fb9qjxU4RzQHkQ6 Zdja1AkiYZs4ermc+UYHWL8Wkd34vESXCWR6T2e4= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 124BPntw027281; Thu, 4 Mar 2021 11:25:51 +0000 In-Reply-To: <87lfb3w5v7.fsf@gnus.org> X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F23.6040C3C0.0040, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=UaYvt5aN c=1 sm=1 tr=0 a=von4qPfY+hyqc0zmWf0tYQ==:117 a=von4qPfY+hyqc0zmWf0tYQ==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=OocQHUDgAAAA:8 a=eSeLb21c6aSPy1Et9v4A:9 a=CjuIK1q_8ugA:10 a=xUZTl98r3Qw_uB5NK3jt:22 X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.10.245; envelope-from=mattiase@acm.org; helo=mail56c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265941 Archived-At: 4 mars 2021 kl. 11.49 skrev Lars Ingebrigtsen : > I think users will be very happy to be able to use the regexp syntax > they know (instead of the special Emacs regexp variants) in their = .emacs > files. Unfortunately it isn't the regexp syntax they know; it's a new variant, = with subtle differences from what they may think it is. False friends = include [] \d \s \w . ^ $ and so on: constructs that look like something = they know well from other software but that have slightly (or = completely) different meaning in Emacs. This doesn't mean that `ere` wouldn't be a useful addition, but that it = should not be presented as "Regexps just like in Python (etc)! No Emacs = quirks to worry about!" but exactly for what it is: a way to toggle the = requirement for backslash-escaping (){}|, no more and no less. Someone = who wants to write or understand an `ere` regexp has to read the Emacs = regexp docs, then the `ere` documentation, and then mentally combine the = two.