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.bugs Subject: bug#36496: [PATCH] Describe the rx notation in the lisp manual Date: Mon, 08 Jul 2019 19:46:37 -0400 Message-ID: References: <0C783D67-9502-408B-B845-5599BD596361@acm.org> <838stdbw8e.fsf@gnu.org> <83a7draccd.fsf@gnu.org> <0458803b-c701-4706-9843-174b7373cf23@default> <2a29fbfb-7e94-4022-bbde-42d8b9f90fc8@default> 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="7129"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mattiase@acm.org, 36496@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 01:47:37 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1hkdM9-0001hP-4O for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 01:47:37 +0200 Original-Received: from localhost ([::1]:45680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkdLl-0001Cy-Kz for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jul 2019 19:47:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40322) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkdLd-0001Cd-CH for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 19:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkdLb-0005vo-ER for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 19:47:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkdLa-0005uG-70 for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 19:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkdLa-0007wD-40 for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 19:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jul 2019 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36496 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36496-submit@debbugs.gnu.org id=B36496.156262960929876 (code B ref 36496); Mon, 08 Jul 2019 23:47:02 +0000 Original-Received: (at 36496) by debbugs.gnu.org; 8 Jul 2019 23:46:49 +0000 Original-Received: from localhost ([127.0.0.1]:59985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkdLM-0007lU-Ja for submit@debbugs.gnu.org; Mon, 08 Jul 2019 19:46:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkdLK-0007fS-Rx for 36496@debbugs.gnu.org; Mon, 08 Jul 2019 19:46:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hkdLF-0005cb-Ki; Mon, 08 Jul 2019 19:46:41 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hkdLB-0007Bx-2K; Mon, 08 Jul 2019 19:46:37 -0400 In-Reply-To: <2a29fbfb-7e94-4022-bbde-42d8b9f90fc8@default> (message from Drew Adams on Sun, 7 Jul 2019 17:56:31 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162406 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. ]]] > Do you mean they'd accept a quoted `rx' form (list)? > What would a use case be - as opposed to accepting > the result of macro-expanding such a form? Assuming > there's good use case, maybe so. Quoting is a little more brief than writing (rx ...). > [But there may be some functions that already have a > (different) interpretation of a list value for the > same arg that could alternatively be a regexp string. > (So maybe not "all" such functions.)] Are there any? If so, it would be desirable to change them. > Even assuming such a use case, should the compiler > assume that _every_ such list arg should be compiled > to a regexp string? Why not? Is there any case in which it would be better to translate the rx to a regexp at run time? > > The only problem is, which key would it be? > Some non-repeatable key. Some key that can't be > used (by default) to edit minibuffer text. Maybe > something like `C-x x'? Is there any reasonable one-character key? -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)