From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#52558: Option for easier typing of regexps Date: Sun, 19 Dec 2021 23:43:53 -0500 Message-ID: References: <87o85cvmek.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16809"; mail-complaints-to="usenet@ciao.gmane.io" Cc: laszlomail@protonmail.com, 52558@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 20 05:48:30 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mzAb8-0004Cg-DR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Dec 2021 05:48:30 +0100 Original-Received: from localhost ([::1]:48046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzAb7-0001re-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 23:48:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzAXn-0003c8-0H for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 23:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzAXm-00069R-OA for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 23:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzAXm-0003Vs-HZ for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 23:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Dec 2021 04:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52558-submit@debbugs.gnu.org id=B52558.163997544913427 (code B ref 52558); Mon, 20 Dec 2021 04:45:02 +0000 Original-Received: (at 52558) by debbugs.gnu.org; 20 Dec 2021 04:44:09 +0000 Original-Received: from localhost ([127.0.0.1]:48667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzAWu-0003UU-GP for submit@debbugs.gnu.org; Sun, 19 Dec 2021 23:44:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzAWk-0003Tm-Mx for 52558@debbugs.gnu.org; Sun, 19 Dec 2021 23:44:07 -0500 Original-Received: from [2001:470:142:3::e] (port=57196 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzAWf-00060M-Cb; Sun, 19 Dec 2021 23:43:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=D3rCESA6iBNqRLlpuIv4/CovOjNbFtLvurzL3kSO5so=; b=q/IwjY5NliYA HKn7L2EsOBvGCTJ0dYuGZ6bMDUORMPAU7XMmjKcOGOYQfT7D9eO22KDLBnCVaxTC/tOQg3hw1wdUI Pp4UVZUMjTzQxpmIqQGEZaXPEXhW7DZV/udH3G0q6bJ+Dgv69mgItFGY526KIqRXQLWIwyesSUnUe KSCrEXodPuh6t/XUmzqLnlViy/xvUbtOfC+UqnQRNwzyhIH19N7og3o6+mmGBvlaeDg4Z/dAYBFMQ vLRaVPlv6nHr5N0MrQ0WlhiB/8V/2KZ2Uo6NiUfnFwO69HwN7Kz/2kNXAl2o2VGGSEa2RiulrG7TM 4aU+xeZJXAx3aYSuVL3h5A==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mzAWf-0005Xc-GU; Sun, 19 Dec 2021 23:43:53 -0500 In-Reply-To: <87o85cvmek.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 19 Dec 2021 12:56:03 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222770 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 think it would be really confusing to have a different regexp syntax > when prompting interactively to when you're writing code, so I don't > think this would be a good idea. Actually, the two already are different, in precisely the way that you worry will be confusing. Regexps in Lisp code are in string constants, so you have to escape each backslash with a second backslash. Regexps in the minibuffer don't do that. "\\(foo\\|bar\\)" vs `\(foo\|bar\)'. It IS confusing. But I don't see a good way to simplify it. However, if we could invent a way to specify, "Use extended regexp syntax", where there are no backslashes for many of these constructs, we could unify the two. "(foo|bar)" and `(foo|bar)'. Unfortunately, there are many \-letter constructs which this change would not simplify. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)