From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: CC Mode and electric-pair "problem". Date: Tue, 19 Jun 2018 05:02:44 +0000 Message-ID: <20180619050244.GA3946@ACM> References: <20180531123747.GA24752@ACM> <20180617201351.GA4580@ACM> <20180618103654.GA9771@ACM> <20180618154227.GB3973@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1529384846 10814 195.159.176.226 (19 Jun 2018 05:07:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2018 05:07:26 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: Glenn Morris , Tino Calancha , Emacs developers To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 07:07:21 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fV8rQ-0002go-Vr for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2018 07:07:21 +0200 Original-Received: from localhost ([::1]:39436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV8tW-00009R-Gn for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2018 01:09:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV8tR-00009G-0h for emacs-devel@gnu.org; Tue, 19 Jun 2018 01:09:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV8tM-0007pO-33 for emacs-devel@gnu.org; Tue, 19 Jun 2018 01:09:24 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:37284 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1fV8tL-0007oK-Mx for emacs-devel@gnu.org; Tue, 19 Jun 2018 01:09:20 -0400 Original-Received: (qmail 77770 invoked by uid 3782); 19 Jun 2018 05:09:18 -0000 Original-Received: from acm.muc.de (p5B1471C8.dip0.t-ipconnect.de [91.20.113.200]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 19 Jun 2018 07:09:17 +0200 Original-Received: (qmail 3958 invoked by uid 1000); 19 Jun 2018 05:02:44 -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.21 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:226493 Archived-At: Hello, Joćo. On Mon, Jun 18, 2018 at 18:01:18 +0100, Joćo Tįvora wrote: [ .... ] Maybe we're looking at this the wrong way. How about this idea: we add a new syntax flag to Emacs, ", which terminates any open string, the same way the syntax > terminates any open comment. We could then set this syntax flag on newline. This would have the disadvantage (for CC Mode) that it wouldn't work with older Emacsen. But it might solve the various problems we've stumbled over in the last few days. > Joćo -- Alan Mackenzie (Nuremberg, Germany).