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: Re: [PATCH] Re: Algorithm in electric-pair--unbalanced-strings-p unsuitable for CC Mode Date: Mon, 08 Jul 2019 11:49:54 -0400 Message-ID: References: <20190702160410.GB30597@ACM> <20190702182811.GC30597@ACM> <20190703105804.GA11238@ACM> <20190704165846.GF5564@ACM> <20190704190100.GG5564@ACM> <20190708100539.GD4529@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="172078"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 08 17:50:07 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 1hkVu1-000icV-Qu for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2019 17:50:05 +0200 Original-Received: from localhost ([::1]:42844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkVu0-0006z6-Rb for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2019 11:50:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38916) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkVtv-0006yJ-Og for emacs-devel@gnu.org; Mon, 08 Jul 2019 11:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkVtu-0008Km-Rq for emacs-devel@gnu.org; Mon, 08 Jul 2019 11:49:59 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61206) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hkVtu-0008Fu-LB for emacs-devel@gnu.org; Mon, 08 Jul 2019 11:49:58 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C13CB4447D6; Mon, 8 Jul 2019 11:49:56 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A2E9444478E; Mon, 8 Jul 2019 11:49:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1562600995; bh=vUdRl1iThwCFdAp2K6aqekIVbs9ubkeXJE2wZaVTJC0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Rse7su1AISLv5G99XTHbCpsSSZY2rNtZQWINhZGkZXgauHdI++cCpZ+cdf/gyjtL4 Kfw/IyFzRtQKWBHmJpERU7SaAtthye3O/wa2HVWvF2XpQIpVoLG6+yl3p+81R+bPAC LpxWmXKoTz0cPizKzY3702E4XNMQG8inR5fmcV3CbRbHtuJIlNrR0a1DTtBQi9eb6D kWEikldVq0G3mhzXONt6bZ1gKMZ3pGosvyfqWWTl3NpIacFdUfU9HjM/HGWaOU2gUN +Nc9ZxtC9GB+AIzYDlv6djz2z5bUQxfE5GLeVKW7MXn9iI8SsJvW+XVAdMo+NKRBc9 85tgATZpJSZTw== Original-Received: from pastel (76-10-138-228.dsl.teksavvy.com [76.10.138.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7838D1207B1; Mon, 8 Jul 2019 11:49:55 -0400 (EDT) In-Reply-To: <20190708100539.GD4529@ACM> (Alan Mackenzie's message of "Mon, 8 Jul 2019 10:05:39 +0000") 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.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:238406 Archived-At: > 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!" Usually this leads to yet more ugly hacks. Stefan