From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Scan of regexps in Emacs (March 17) Date: Wed, 20 Mar 2019 22:07:01 -0400 Message-ID: References: <5363970c-3207-1bb4-8b30-74a7d12277cc@cs.ucla.edu> <05269D79-B016-4FCB-94B8-068BF7D1C2D2@acm.org> <3974269b-6cad-0744-bd1f-66c067f94192@cs.ucla.edu> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="215674"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 03:35:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6nXo-000tsq-Cv for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 03:35:00 +0100 Original-Received: from localhost ([127.0.0.1]:58254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6nIb-0007lb-RV for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 22:19:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6nF2-0005sj-HO for emacs-devel@gnu.org; Wed, 20 Mar 2019 22:15:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6n6l-0007Vj-AI; Wed, 20 Mar 2019 22:07:04 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1h6n6j-00050q-U3; Wed, 20 Mar 2019 22:07:02 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 19 Mar 2019 22:20:53 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:234443 Archived-At: [[[ 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. ]]] > [ I wish Elisp regexps just used \ as an escape char in ranges instead > of relying on those special convention of where `-` and `]` can appear > in order to count as themselves. ] It might have been better, but we can't change it. Even when first implementing this in Emacs, I was following historical practice which was later codified into standards. > I wonder why the doc doesn't just say that `-` should be the last > character and not mention the other possibilities which just make the > rule unnecessarily complex. It could be reasonable to document that putting it at the beginning or the end is the right way. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)