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: Mon, 8 Jul 2019 16:45:01 +0000 Message-ID: <20190708164501.GB5244@ACM> References: <20190702182811.GC30597@ACM> <20190703105804.GA11238@ACM> <20190704165846.GF5564@ACM> <20190704190100.GG5564@ACM> <20190708100539.GD4529@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="141184"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= , emacs-devel To: Stefan Monnier , g@acm.muc.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 08 18:46:01 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 1hkWm8-000abI-V5 for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2019 18:46:01 +0200 Original-Received: from localhost ([::1]:43364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkWm7-00041t-UV for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2019 12:45:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52892) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkWlR-0003yW-W2 for emacs-devel@gnu.org; Mon, 08 Jul 2019 12:45:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkWlP-0005M2-Uj for emacs-devel@gnu.org; Mon, 08 Jul 2019 12:45:17 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:50714 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1hkWlO-0005CF-2Y for emacs-devel@gnu.org; Mon, 08 Jul 2019 12:45:15 -0400 Original-Received: (qmail 67593 invoked by uid 3782); 8 Jul 2019 16:45:02 -0000 Original-Received: from acm.muc.de (p4FE15FEC.dip0.t-ipconnect.de [79.225.95.236]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 08 Jul 2019 18:45:01 +0200 Original-Received: (qmail 8209 invoked by uid 1000); 8 Jul 2019 16:45:01 -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:238408 Archived-At: Hello, Stefan. On Mon, Jul 08, 2019 at 11:49:54 -0400, Stefan Monnier wrote: > > I have an idea how to make C-M-* work in these bogus multi-line strings, > > but it's going to take more than a couple of days to implement. It > > involves only having the pertinent string fence syntax-table text > > properties present during fontification and CC Mode's > > before/after-change-functions. > While I'm not completely sure what this will look like, my gut reaction > to this description is "Yuck!! Ugly hack to workaround breakage > introduced by other ugly hack!" Don't knock it - it's working, and will give Joćo what he wants whilst preserving correct fontification. Although it is not yet in a state where I want to post a patch on this list. [ .... ] > Stefan -- Alan Mackenzie (Nuremberg, Germany).