From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Algorithm in electric-pair--unbalanced-strings-p unsuitable for CC Mode Date: Tue, 9 Jul 2019 09:52:22 +0000 Message-ID: <20190709095222.GA5230@ACM> References: <20190708100539.GD4529@ACM> <20190708164501.GB5244@ACM> <20190708180551.GD5244@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="4239"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , emacs-devel To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 09 12:01:18 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 1hkmw1-0000xn-0f for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2019 12:01:17 +0200 Original-Received: from localhost ([::1]:48282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkmvz-0004qv-D7 for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2019 06:01:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49960) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkmnX-0004FK-Ht for emacs-devel@gnu.org; Tue, 09 Jul 2019 05:52:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkmnV-0004Bp-0x for emacs-devel@gnu.org; Tue, 09 Jul 2019 05:52:31 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:37009 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1hkmnU-0004Av-Qz for emacs-devel@gnu.org; Tue, 09 Jul 2019 05:52:28 -0400 Original-Received: (qmail 17700 invoked by uid 3782); 9 Jul 2019 09:52:23 -0000 Original-Received: from acm.muc.de (p4FE15DA9.dip0.t-ipconnect.de [79.225.93.169]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 09 Jul 2019 11:52:22 +0200 Original-Received: (qmail 5237 invoked by uid 1000); 9 Jul 2019 09:52:22 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:238434 Archived-At: Hello, João. On Tue, Jul 09, 2019 at 10:23:39 +0100, João Távora wrote: > On Tue, Jul 9, 2019 at 10:06 AM João Távora wrote: > > many, many years. Depending on how it is implemented (certainly how Alan > > implemented it) it breaks things in Emacs core and third-party code. Can we perhaps keep the disparagement a bit more muted, please? I'm busy implementing what you've said you want, namely the ability to use the C-M-* commands across "strings" consisting of two "s with at least one unescaped NL between them. At the moment, in the following: printf ("Hello world"); , with point on the first ", C-M-f goes to after the second ". With point on the w, C-M-u goest to the first ". There are one or two tricky edge cases I'm still working on. > Just a small followup: one of the things it breaks is precisely a tool > which helps you to more predictably fix the situation, > electric-pair-mode. As I asked, can we keep the disparagement down, please? It's not helping anything or anybody, particularly not me. Thanks. > João Távora -- Alan Mackenzie (Nuremberg, Germany).