From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Algorithm in electric-pair--unbalanced-strings-p unsuitable for CC Mode Date: Tue, 9 Jul 2019 17:14:34 +0100 Message-ID: References: <20190708164501.GB5244@ACM> <20190708180551.GD5244@ACM> <20190709095222.GA5230@ACM> <20190709153103.GB5230@ACM> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6a219058d41db33" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="236355"; mail-complaints-to="usenet@blaine.gmane.org" Cc: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 09 18:15:20 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkslz-000zNN-Ry for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2019 18:15:19 +0200 Original-Received: from localhost ([::1]:51718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hksly-0000oz-Ri for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2019 12:15:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58921) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkslZ-0000nj-3p for emacs-devel@gnu.org; Tue, 09 Jul 2019 12:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkslX-0007pX-R3 for emacs-devel@gnu.org; Tue, 09 Jul 2019 12:14:53 -0400 Original-Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]:41739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkslX-0007my-Ez for emacs-devel@gnu.org; Tue, 09 Jul 2019 12:14:51 -0400 Original-Received: by mail-io1-xd43.google.com with SMTP id j5so25012163ioj.8 for ; Tue, 09 Jul 2019 09:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J8mus6qhL/lPJiYXHyDAnJNs2mDkv4FtF1zNVXXTFK4=; b=RtReUy91A1CkRl4liehOLFj4vIDiIvjZAdxuLODj5lQmr98IICIAZnU+n7eVDvHURv Z6jKBfEdT7PhJHyFOGYneUIH2sPoAkpbck4ANqYyxjrz+295hJCBwFsDPULNsTbUuxFf WbcASlZhnErVZifRvLTSvABsRZ1oP0xDg5ocdyDjgAS4qoXi7GcuojxIEwZMGR+6wprk cYsbnvX9AtgLajZU42UFAHJ6bi4cF7BRd2SurcGprKd3migF4lHarWhnvgaeLnGHawb9 18egY+XBXPUaCzqrn17ZQxudDLTjRCxI7Xjtt3R6NAYU54Go2RM53SlHRqVgIee6PtPc tg4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J8mus6qhL/lPJiYXHyDAnJNs2mDkv4FtF1zNVXXTFK4=; b=XQrxk9qUWv+e85oJSAAwHzwEQIxZr1G204ORx9GLpeduO/NT2CIYIT+ky/QWvf+yAO WEe9O/hCAHem19jMf83QNDSyaY8fdMgGWyvQhcypmJFjg+Esbik+eQvhxHkTh2M746AD L/gVF9WbOmwPP5xY+rBuQlV4Di0T3k1e0dEz1e0jHPzv3Wcmvj+4Vdu9b12x9oRL9J3o CS0GTroUdi0uvUyYwVih2df08O0bEvg+SHV5vu0l2BkZ0RnoaBP5ZhwYinxHQXaJj1du BFpbvUGeud73dVMNjZo/bsVX/9547Kn9LZ3XN3Z07F7IbUP9GYFIDiC2hPtu+KeDhEPq 6QjA== X-Gm-Message-State: APjAAAUp0IX36i3tJZvoxh0FoSeTbRv7aX9MOJ/64fLXXwdO9qm4BNOG 0hDi9NUH+FYT+TKkAdMgSQz5tIxiAliL/YY7Ab0= X-Google-Smtp-Source: APXvYqxDM4IoQ5ZNJqLYDKJnJiO46S3DXrL1YZd7Ypwc5103RHxIQcaiyXdN9G5G/3+qMyck5KSS7xp5MkfqyEo7bXY= X-Received: by 2002:a02:7f15:: with SMTP id r21mr30157372jac.120.1562688886315; Tue, 09 Jul 2019 09:14:46 -0700 (PDT) In-Reply-To: <20190709153103.GB5230@ACM> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d43 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:238463 Archived-At: --000000000000f6a219058d41db33 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 9, 2019 at 4:31 PM Alan Mackenzie wrote: > > I'm fixing electric-pair-mode, Hopefully that amounts to "use one of electric-pair-mode's" variables in cc-mode.el. You can call it whatever you want. > and I'm adding a feature to CC Mode > specially for you, because you've asked for it so insistently. :-) > I've not. I've stated what the breakage was. Really Alan, permit me to perhaps impudently give you a piece of of Kantian advice: don't do anything because of "someone", do it rather because you think there is intrinsic value in it. Still, I'm not oblivious to the fact that you have put in hours (minutes? days?) of your life for my personal benefit. You have my heartfelt gratitude. Now, I've dealt with the "problem" (formerly "breakage" :-), differently. As you know, it has existed for over a year (and I've not "complained" since then). I've done so with a simple tweak to a certain variable that you have created and that is "set if the language supports multiline string literals without escaped newlines". I ask you again, that you bless this variable for all users, not just me: I think you will find intrinsic value in doing so. It should allow you to do syntactic operations on two disjoint "s, while > at the same time preserving CC Mode's fontification strategy. > > You may have less justification for complaining after trying this out. > No apologies for that. ;-) > Let me tell you how I would try this: I would apply it to all the Emacsen I work with, in a branch. When developing C++ code for work, I would use it and hope for good behaviour. When developing for Emacs, I would be careful to always rebase it and not commit it. That's non-trivial work. Now, if you tell me there may be bugs (and there might indeed be in such a long patch) it's not a great motivation for trying it out, because (1) these bugs would have a real impact on my work, and (2) I'm not particularly fond of this strategy. So, I may try it, but not in the short term. And, as was the case for more than a year, I will not "complain", rather continue to state disagreement whenever I think it's opportune for the common good. Jo=C3=A3o --000000000000f6a219058d41db33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jul 9, 2019 at 4:31 PM Alan Mackenzie <acm@muc.de> wrote:

I'm fixing electric-pair-mode,

Hopeful= ly that amounts to "use one of electric-pair-mode's" variable= s in
cc-mode.el. You can call it whatever you want.
=C2=A0
and I&#= 39;m adding a feature to CC Mode
specially for you, because you've asked for it so insistently.=C2=A0 :-= )

I've not. I've stated what th= e breakage was. Really Alan, permit me
to perhaps impudently= give you a piece of of Kantian advice:
don't do anything= because of "someone", do it rather because
you th= ink there is intrinsic value in it.=C2=A0

Sti= ll, I'm not oblivious to the fact that you have put in hours
=
(minutes? days?) of your life for my personal benefit. You
h= ave my heartfelt gratitude.

Now, I've deal= t with the "problem" (formerly "breakage" :-),
differently. As you know, it has existed for over a year (and I'= ve not
"complained" since then). I've done so with = a simple tweak to
a certain variable that you have created a= nd that is "set if
the language supports multiline stri= ng literals without escaped
newlines".=C2=A0 I ask you = again, that you bless this variable for
all users, not just me: I= think you will find intrinsic value in
doing so.
<= div>
It should allow you to do syntactic operations on two disjoint "s, whi= le
at the same time preserving CC Mode's fontification strategy.

You may have less justification for complaining after trying this out.
No apologies for that.=C2=A0 ;-)

Let me= tell you how I would try this: I would apply it to all the Emacsen
I work with, in a branch. When developing C++ code for work, I would
use it and hope for good behaviour. When developing for Emacs, I wou= ld
be careful to always rebase it and not commit it. That= 9;s non-trivial work.
Now, if you tell me there may be bugs = (and there might indeed be in
such a long patch) it's not a g= reat motivation for trying it out, because
(1) these bugs would h= ave a real impact on my work, and (2) I'm not
particular= ly fond of this strategy. So, I may try it, but not in the short
=
term. And, as was the case for more than a year, I will not "comp= lain",
rather continue to state disagreement whenever I= think it's opportune
for the common good.
=
Jo=C3=A3o
--000000000000f6a219058d41db33--