From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: CC Mode and electric-pair "problem". Date: Tue, 26 Jun 2018 20:45:44 +0100 Message-ID: <8736x9mivr.fsf@gmail.com> References: <20180531123747.GA24752@ACM> <20180617201351.GA4580@ACM> <20180618103654.GA9771@ACM> <20180618154227.GB3973@ACM> <20180619050244.GA3946@ACM> <20180626185235.GC4464@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530042275 22962 195.159.176.226 (26 Jun 2018 19:44:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2018 19:44:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Glenn Morris , Emacs developers , Tino Calancha To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 26 21:44:31 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 1fXtt8-0005tM-VZ for ged-emacs-devel@m.gmane.org; Tue, 26 Jun 2018 21:44:31 +0200 Original-Received: from localhost ([::1]:54787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXtvG-0007Nq-DN for ged-emacs-devel@m.gmane.org; Tue, 26 Jun 2018 15:46:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXtuU-0007NI-JW for emacs-devel@gnu.org; Tue, 26 Jun 2018 15:45:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXtuP-0004XK-OV for emacs-devel@gnu.org; Tue, 26 Jun 2018 15:45:54 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:45900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXtuP-0004Ww-H3; Tue, 26 Jun 2018 15:45:49 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id u7-v6so3123538wrn.12; Tue, 26 Jun 2018 12:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=vBplnN0BvjCdTE808wEHUPZg/AcZZxDGvRMHNwhiiqU=; b=c0zK9z1dHEZwI1RykOxztGLUCHyt7XLHq5Iw9cJvDH1/1BPV01sBY3aXrifo5CX72+ 7zXp0z6ExmB9lLWLE1HAThQLtUp+bJb9xhrIqgmwnNKP+DmqU2yCoDq9mdN2X7qzYybx v3tjYuDgQyD0aRISi0fraCQgyQ2LB/oS4p358z9SD8FPHak+gkmAhtWLdrwWqEcYl0QS VkzOUJEExzBYPJjOHt4Sw+8fpYvcCV5+x3VJNROJtTF1q74M+CsSfiNR0r/GVnJ7umZW 94ermAYmj9oG3p2JeG8rv46AMOvkiSyk3Br/9vXriXCthGdamjlD41PH5Ag+63OklqZo OL8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vBplnN0BvjCdTE808wEHUPZg/AcZZxDGvRMHNwhiiqU=; b=ELgaI4WTnC6gmMTkK52Vye0g40pOjJh8V1TFbI7txvaOEf/JTXKVPO0Q11NtQupkI6 Kq2ZIZaBjVzGoOEcMmqyyydfgFAODxOlrFa4PyQL23TNv9LGfIYaloyHC03/19PPF4vu cSecualBXoHPJm/tCUE7ZTdpILpnIOuOxmYhj1iotgnZlclBP20gRViysTp250iasWfd /FzpAuHTkpF7YmV89/DevEQO96xzVNCOy0UQK/7kLIDVlb0+RuJtnBQLN0sg/0zWJOob wYeLu5hbXSlbtDY4rtQq9TGtF5330mCds/E7Fq0KuoOIgjokb4uO+E3l0NmgLbRNn+++ zWrA== X-Gm-Message-State: APt69E1FBHIaBJaXyWDxMu1pjzB0g3W+OCBknHc2XmI4UOIQJTw2nnWD 5GiCJwtxKqopcBsgnof4JjEOehwk X-Google-Smtp-Source: AAOMgpc8FZAF4E9GNlq38bMLz3Pf+OjAD4VrpDBybsheo6IvAqMPQ9Jj700gSc3Fcj4my9LRVY7BJw== X-Received: by 2002:adf:9736:: with SMTP id r51-v6mr2527010wrb.5.1530042347646; Tue, 26 Jun 2018 12:45:47 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id e13-v6sm3647218wrm.45.2018.06.26.12.45.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Jun 2018 12:45:46 -0700 (PDT) In-Reply-To: <20180626185235.GC4464@ACM> (Alan Mackenzie's message of "Tue, 26 Jun 2018 18:52:35 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f 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:226750 Archived-At: > Hello, Jo=C3=A3o. Hi Alan, Alan Mackenzie writes: >> [ .... ] >> 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 isn't a sensible idea. because it wouldn't solve any of the > problems we have with the string-fence syntax. You realize you're replying to your own suggestion, right? (just checking...) > This would have the advantage of making fontification easy, whilst still > allowing syntactic operations within an invalid string. For example, in > > char *foo =3D "( > )" > > , the "s would have "one-line string quote" syntax and be fontified with > warning face, but a C-M-n from the ( would still move point to after the > ), and all the electric-pair-mode stuff would still work. Ignoring any complications or complexity that would arise from it, that sounds great (though more important than supporting e-p-m is having C-M-u work from inside the string, which I suppose is included). Jo=C3=A3o