From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36237: Support (rx (and (regexp EXPR) (regexp-quote EXPR))) Date: Sat, 15 Jun 2019 20:28:24 -0400 Message-ID: <87pnnextjr.fsf@gmail.com> References: <87v9x6xvml.fsf@gmail.com> <87r27u75wj.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="100829"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 36237@debbugs.gnu.org, stefan monnier , =?UTF-8?Q?k=C3=A9vin?= le gouguec To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 02:29:33 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 1hcJ36-000Q5q-BB for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 02:29:32 +0200 Original-Received: from localhost ([::1]:37064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcJ32-00017e-QL for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2019 20:29:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46612) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcJ2l-00017X-Eu for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:29:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcJ2h-0001fE-6G for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:29:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcJ2c-0001e2-2Y for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcJ2b-0002Yq-Ty for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 00:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36237 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36237-submit@debbugs.gnu.org id=B36237.15606449139782 (code B ref 36237); Sun, 16 Jun 2019 00:29:01 +0000 Original-Received: (at 36237) by debbugs.gnu.org; 16 Jun 2019 00:28:33 +0000 Original-Received: from localhost ([127.0.0.1]:39439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcJ28-0002Xi-Oj for submit@debbugs.gnu.org; Sat, 15 Jun 2019 20:28:32 -0400 Original-Received: from mail-io1-f68.google.com ([209.85.166.68]:45702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcJ27-0002XS-O2 for 36237@debbugs.gnu.org; Sat, 15 Jun 2019 20:28:32 -0400 Original-Received: by mail-io1-f68.google.com with SMTP id e3so13678729ioc.12 for <36237@debbugs.gnu.org>; Sat, 15 Jun 2019 17:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ita9SJ51+aIlDV1mR1n10ORMDUGdST6uxNNbPBUpd9w=; b=R6LCmroa0FaSTGclqRUd6Y0sqNSsJmiiDjhs1eX6QaktpF7v/2Q69cOmthF0l7vMsO dRpVQlMvJcf6M5q8vv9OuFLRXhtKnBPdumjTSYFsuuKVkrI3fMqL/WpfVt9mBzpg1gif WZqo6tbCySbZoIx+bc25NulOXAOyhJxqv/jK5szsSvJGDZIlXsxinXPqqXw6EjP8bdvy a/yYZF7oUMV+sCo+OzGH8pAZ+9gk2kEYrgxRsI205Hjw3DFkIz4RICaGLlMqKLfZaup7 CznfmUtarcFGYlHTctxaP/u3xQBOXMpSlP9JminR62QxSOFsiOwpNy5kp6mhgy2aVp9I 9Mkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ita9SJ51+aIlDV1mR1n10ORMDUGdST6uxNNbPBUpd9w=; b=T0Qp1oFFIz13UtxLc3LliZB2HT1/YgN7Ud1XGSdsfd5qudoEcD3G2mwLr1NtUGZ2k1 SzddR/wPlxzWlgP0YdcnCJVBpTVEcpHBSa5Ytt+QZUsy6Cr3bIBp+JcRu7hvBUqf/huR 05wqcuOCKPI/P5asTqRhsuyLECNO4jTndsGS5NXkWSgtJgkG7Jib8ysUyeVJ5gxcDvJ/ fSgmkGUxjwiW3zOkDkxdSGooUbfhUTvbq/u5O1ycrUrGCJL0uXJjrOKrIxRfITuZFQkJ elrc7S7Mkj73uzHOPaJAMbBfYBhlp/tBklYH0cIbtz+0dLvPRjb6iNASy2t4BmIjOmqo FGvg== X-Gm-Message-State: APjAAAXQJC5Zzqxu6CXtOcbStN/0eqrZvJCCFiQWn9S0fC0CKazO5MZn U7CAlvb6erdsymDJpbPxpNU= X-Google-Smtp-Source: APXvYqyU+bn2Gta39VIxDCAGefqpQyDswkeY9M2Un32N0wJ0IXzEChQLMj9TPEHYfoTO6P9i9NXTRA== X-Received: by 2002:a6b:e315:: with SMTP id u21mr65585588ioc.14.1560644906203; Sat, 15 Jun 2019 17:28:26 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id i3sm9024551ion.9.2019.06.15.17.28.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Jun 2019 17:28:25 -0700 (PDT) In-Reply-To: <87r27u75wj.fsf@web.de> (Michael Heerdegen's message of "Sun, 16 Jun 2019 02:03:40 +0200") 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:160642 Archived-At: Michael Heerdegen writes: >> +*** 'regexp' and new 'regexp-quote' accept arbirtray lisp as arguments. > ^^^^^^^^^ (typo) Oops. > I only wondered whether it wouldn't have been better if `eval' would > have been upgraded (rx (eval EXPR)) vs (rx (regexp-quote EXPR)) have different semantics with respect to scoping and evaluation time, so I think that would be a problem with respect to backwards compatibility. > Does it make sense to keep `eval'? There are so many rx-form types, > would be good if we could make it obsolete (in some sense). Yeah, I think it would make sense to obsolete `eval'. Also `and': it sounds like it should be the logical-and counterpart to `or', but it's just a synonym for `seq' (which is a much clearer name). I used `and' in the bug title just for punning reasons :)