From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs regexp scan (Sep 29) Date: Sat, 05 Oct 2019 11:20:24 -0400 Message-ID: References: <1697CA97-B2E6-4202-B14D-99DCF93954FD@acm.org> <02405f0d-788f-1b87-0269-b06eb2d67ff8@cs.ucla.edu> <83zhif4nq6.fsf@gnu.org> <6cf4485e-3d94-ce92-6342-d83cdc7f95d7@cs.ucla.edu> <83k19j4fw3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30971"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: mattiase@acm.org, Paul Eggert , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 05 17:21:05 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iGlrk-0007vH-VH for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 17:21:05 +0200 Original-Received: from localhost ([::1]:57320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGlrj-0008Mi-NE for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 11:21:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41262) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGlrE-0008ML-H2 for emacs-devel@gnu.org; Sat, 05 Oct 2019 11:20:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGlrD-00014V-LT for emacs-devel@gnu.org; Sat, 05 Oct 2019 11:20:32 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23531) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGlrC-00014D-4x; Sat, 05 Oct 2019 11:20:30 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 89666448AE7; Sat, 5 Oct 2019 11:20:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 73948448AE2; Sat, 5 Oct 2019 11:20:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1570288828; bh=xgUKXtF/Mn8ecnte0Kq/WGSMvTa6JcH884Kj/uvbynk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hhdDkNh9TGdZ9algTPoYY76I+iV82M9HxGElvNuTTCe1Bsr4EJUeVx2bQKQalyUvX qDryqtWM+xhanlhgJsZw7TJbu2TZowqnXdopz5zK8n3drFQOLQPDmnGhINIHjtC2N6 sybl4h3CZ8orTiGjltW0HXJ0Ms8Y9UwpY1tGl7H1Wgr+Wiz0kQ3YSdJ/bbc14/FPg5 rKzrJ6yhtuRAAlgYsql73rXsjNwWC+POntvA1EueAONJ3iPCWWmEolpXj06G3PVXF0 ofnsfh2rRUW9yIsTuzASEoAUuNB7o86gq4iQi1GBYvGy+DGbcOUg6eOnYalg+6+Bx5 q39KSOHC7Cpgw== Original-Received: from pastel (76-10-181-40.dsl.teksavvy.com [76.10.181.40]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BBDBC12095E; Sat, 5 Oct 2019 11:20:27 -0400 (EDT) In-Reply-To: <83k19j4fw3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 05 Oct 2019 13:59:24 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240618 Archived-At: > That's it. And I personally can see no confusion in the likes of > "[-+]", whereas I did need to consult the manual to learn that "[+-]" > is also right. So at least for me, the confusion worked the other way > around. As discussed here a while back, putting `-` as the last char is actually the only choice which always works (because it can't be the first char when that first char has to be `]`), so I recommend to always put `-` as the last char. Stefan