From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: xr Date: Sat, 2 Feb 2019 10:43:11 +0100 Message-ID: References: <2C8B37D2-2A22-451C-AA9E-E3CD73A90ABC@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205309"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 02 11:00:46 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 1gps6Q-000rJY-Br for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2019 11:00:46 +0100 Original-Received: from localhost ([127.0.0.1]:40161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gps6P-0004eL-9R for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2019 05:00:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gprzX-0006z8-Tu for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:53:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gprpV-00056s-89 for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:43:17 -0500 Original-Received: from mail238c50.megamailservers.eu ([91.136.10.248]:50790 helo=mail56c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gprpU-00054w-U3 for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:43:17 -0500 X-Authenticated-User: mattiase@bredband.net Original-Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x129hCIp023986; Sat, 2 Feb 2019 09:43:13 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B0204.5C556632.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Oo5hNR3t c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=lA5yi8PyAAAA:20 a=hpvt6UN-uIRqJvgwbB4A:9 a=QEXdDO2ut3YA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.248 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:232905 Archived-At: 1 feb. 2019 kl. 19.41 skrev Cl=C3=A9ment Pit-Claudel = : >=20 > I would suggest neither; instead, it would convert only strings that = contain regexp constructs (these are the ones that are hard to read in = the first place). > That;'s more or less what I do in = https://github.com/cpitclaudel/easy-escape, and it works OK. I see. In that case, it seems that you are ideally positioned to make = such an attempt, given your experience with easy-escape. Please forgive = me for not pursuing your idea myself; although it has merit, I remain = skeptical for two reasons: First, in contrast to easy-escape, xr is an expanding substitution, = sometimes strongly so, and would mess up the code layout, unless care is = taken to reformat. Second, I want to encourage people to actually use rx instead of string = regexps, not just paint it over. Your proposal reminds me too much of = the current dystopian trajectory of humanity, where we will be living in = a polluted wasteland, all wearing AR goggles providing the illusion of = an arcadian paradise.