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: Global and local definitions of non-functions/variable (was: More re odditie [Was: regular expressions that match nothing]) Date: Thu, 16 May 2019 17:01:32 -0400 Message-ID: References: <7a6b23f52418b093a4cf7a6db4306cf425533249.camel@acm.org> <87a7fnzd3u.fsf@web.de> <128EBFB8-78FF-47C3-8F28-C1EF91BFC4BB@acm.org> <84fcfdce-39d7-1ebb-c0c7-98aa05854646@lsv.fr> <87h89u4580.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="185354"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Michael Heerdegen , phs , emacs-devel@gnu.org To: Mattias =?windows-1252?Q?Engdeg=E5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 23:02:15 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 1hRNW2-000m55-Rs for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 23:02:15 +0200 Original-Received: from localhost ([127.0.0.1]:36041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRNW1-00063g-TF for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 17:02:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRNVs-00063I-Am for emacs-devel@gnu.org; Thu, 16 May 2019 17:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRNVq-0000zS-Cj for emacs-devel@gnu.org; Thu, 16 May 2019 17:02:04 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:63284) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRNVm-0000in-OI for emacs-devel@gnu.org; Thu, 16 May 2019 17:02:00 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 95A804424E5; Thu, 16 May 2019 17:01:34 -0400 (EDT) Original-Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7958F4424E1; Thu, 16 May 2019 17:01:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1558040493; bh=msep6l8dkGLrl+KaVwE2INyvN1jDvmwCGDg2nQlKnh0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cqsr0rfowfbMeGl4FiJ/fJb7tUGHxxP6A/E8svlBlBLBt0I6sB/FhzpJSaYdKM93U R64hmmr/I+e6YiZDQBywr7TAk/uVjTE+BiMbcuq2fINf5l9Jykm5g8WihlMzo5hC/P naPLXD+e8uN7btcSCzYsg7UkyvopmgatC1n2Ps2wLWjoDxdIJSDc7dxxW4Gsx+B221 xVswogSjA8+HLErtka0l9MzJFGb3F47cWb0bgL01uYOsbRkW6u6uo2OlL7gwrST9vm zxtqvc/pZR4gL5VWP7XvPazhMow8PHittTHnGMhdLWJeZLXdC/GBu2WeI5g2p1QjZI uOee2N2ZF6MYA== Original-Received: from ceviche (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 550D012081C; Thu, 16 May 2019 17:01:33 -0400 (EDT) In-Reply-To: ("Mattias \=\?windows-1252\?Q\?Engdeg\=E5rd\=22's\?\= message of "Thu, 16 May 2019 22:31:35 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:236600 Archived-At: > I would much rather see a clean, robust and expressive extension mechanism > for rx (`rx-constituents' does not count). There are various hacks and > libraries but it probably needs to be integrated. Agreed. Something like `rx-defmacro` and `rx-macrolet`. Reminds me that this is a recurring need (we see it in `pcase`, in `peg`, here, and arguably in `gv`). It would be nice if we could design a general solution that those packages can (re)use. Stefan PS: Arguably `cl-defmethod` could also be extended to a kind of `methodlet` for scoped methods, but it might be tricky to do that. OTOH, this might provide exactly the generic mechanism we need to implement the others.