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: Algorithm in electric-pair--unbalanced-strings-p unsuitable for CC Mode Date: Thu, 04 Jul 2019 16:16:03 -0400 Message-ID: References: <20190702131632.GA30597@ACM> <20190702160410.GB30597@ACM> <20190702182811.GC30597@ACM> <20190703105804.GA11238@ACM> <20190704152451.GD5564@ACM> <20190704164233.GE5564@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="242973"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 04 22:23:53 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 1hj8Gm-00117j-Ua for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2019 22:23:53 +0200 Original-Received: from localhost ([::1]:48586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj8AM-0005G2-IN for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2019 16:17:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43467) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj89H-0005Fv-TH for emacs-devel@gnu.org; Thu, 04 Jul 2019 16:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj89G-0002zm-V7 for emacs-devel@gnu.org; Thu, 04 Jul 2019 16:16:07 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:8020) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hj89G-0002zH-Of for emacs-devel@gnu.org; Thu, 04 Jul 2019 16:16:06 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B464A81177; Thu, 4 Jul 2019 16:16:05 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 507A3810A2; Thu, 4 Jul 2019 16:16:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1562271364; bh=ziwNmxChT1tSDaUj90Kyyq2QNLb1uHooDT9+5oU4w5Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=U2uLM57wIdfV1gcJRgERA+qTG+z4OCl2UQ2kl3jRTTXWffx7NPz3S0QudjsySwGwE QgK57ApOT8NEM7CPXqME9KXK9hLPudxcMzACA4p8TYCtTfl8p6hR0hD8ZITEX7yaYn p2SSCF+SKm7x7wjcwmEpXJaX0ng+9A/eRNo8IHJ89mOk0+3ZhAovkYR40h3mODUyk7 ZiIRMhOgnKPmZZ0EDQg2uJj0wjx4MZ+ukbBFstKTck++AfXGwseP3Vz6UVwR2/35OK ho22hKgzy+Obs2ICHAbe6lzlLzMv0Bv0c8pRheFADSpEty4QnTcmQ3Wpj4Fyrs2xgJ 4zQNwLiLX2H0Q== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3996E1204E7; Thu, 4 Jul 2019 16:16:04 -0400 (EDT) In-Reply-To: <20190704164233.GE5564@ACM> (Alan Mackenzie's message of "Thu, 4 Jul 2019 16:42:33 +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:238361 Archived-At: >> > Thanks. That's part of the problem. Another part is that syntax >> > fontification will have wrongly fontified the bits beyond the end of the >> > invalid string with font-lock-string-face. > >> We've gone through that several times already. >> We don't and can't know if it's wrong or not, because it depends on what >> is the error: is there a missing closing " on the line, or should the >> newline be preceded by \ ? > > The error is clear: [...] On the first line, yes. But in the above, we're discussing "the bits beyond the end of the invalid string". Stefan