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: Sun, 03 Jun 2018 04:00:17 +0100 Message-ID: <87zi0cshfi.fsf@gmail.com> References: <20180531123747.GA24752@ACM> <87bmcvbygg.fsf@gmail.com> <20180531172841.GB24752@ACM> <8736y7brj1.fsf@gmail.com> <20180602130228.GB4392@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 1527994708 19932 195.159.176.226 (3 Jun 2018 02:58:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2018 02:58:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers , Tino Calancha To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 03 04:58:24 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 1fPJDs-000553-8b for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2018 04:58:24 +0200 Original-Received: from localhost ([::1]:33437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPJFz-0003Y4-BB for ged-emacs-devel@m.gmane.org; Sat, 02 Jun 2018 23:00:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPJFq-0003Xy-4f for emacs-devel@gnu.org; Sat, 02 Jun 2018 23:00:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPJFn-000759-3M for emacs-devel@gnu.org; Sat, 02 Jun 2018 23:00:26 -0400 Original-Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:41365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPJFm-00074v-Sq for emacs-devel@gnu.org; Sat, 02 Jun 2018 23:00:23 -0400 Original-Received: by mail-wr0-x232.google.com with SMTP id u12-v6so39695415wrn.8 for ; Sat, 02 Jun 2018 20:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=AClYtYs5A9PnNjnLpJL0rlJxZL5VaXiHq1hRzU+dfY4=; b=WcuXUX2f0CEcjEYjmL+n/ftakVnw128UA6R3Z8aw+mWDjcOuxgEIzRnPDUG52pw2+u ZYKWxN2gxACPEG8dckFLp3OBvOKCWA1Sb9HuY9cNa3jpr4Y8my2ONgzaWIZAfdIEmVtI hyKbLmqqRWN9ZwBUn7rDKyRHcxfygK5YQRaceS8b31xZTCjsq1kQFONUcV5WdgL+lxjo kIijg3BbpCenZ8y/s1WJ7IKVsT72QAi8/sBchalRbWalHJm0UWtgc9jkUjSimHhtfGyS ckGX69s/aCt/+jKKEfIKWysubku5o/ctkKOnRS1M8IjKXC5koVUSlvHJrniaDdZCUJav KlRw== 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:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=AClYtYs5A9PnNjnLpJL0rlJxZL5VaXiHq1hRzU+dfY4=; b=Oo/xan1aRhTSEt09nQcdDJrfhWsbu4TJOFJ+3ONVxnfsi7DVpyD31NKg2aX7IjSBlO a39SEgPMdQquqzCw8SvUIzw83EvTpPrxmW9J/lcW+SPlLkxtsRt3YPW/PwVStcIQt4Z4 rW15ceKekJYTfx+52ElnDvljDmh8Ilb995NMzrlxYtVeIRSnigLB57teRjOfrvop3JXL KfQIfLLFuyLZTxnkA+1GxYphFJpFUQGH9G4RZEh4XqREW45Twi3SMSFt23TSx1RTp7OA d+f76QLuFg6hVC8DGC9UQl9yH2OcL9nI6Hoc5uy1IUF2WJK8fqYPGuOcs6dRn0xbOHd1 A3Vw== X-Gm-Message-State: ALKqPwdS2ok7bw5rm3ekyzZ+oRe9ysF2eytOFg14P2451smF1FPYezc5 Xzw7YJ3kgc/cVjMLF6aHrTKC1NuP X-Google-Smtp-Source: ADUXVKJBcG/GHlf/ujcWTmKUqfOCKBIeQw72Nvenv9bKdew4mqu4yl1z2tI0Kunmw8g0VCVjzi3jqA== X-Received: by 2002:adf:f7cf:: with SMTP id a15-v6mr12203130wrq.108.1527994821422; Sat, 02 Jun 2018 20:00:21 -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 l10-v6sm26801749wrm.29.2018.06.02.20.00.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Jun 2018 20:00:20 -0700 (PDT) In-Reply-To: <20180602130228.GB4392@ACM> (Alan Mackenzie's message of "Sat, 2 Jun 2018 13:02:28 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::232 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:225945 Archived-At: Hi Alan, Alan Mackenzie writes: > Well, "error" might be putting it a bit strongly. Mainly, it's a > reminder to somebody typing in a string to close it off properly. Yeah, precisely. Hence it would be ideal to annotate it, but not break whitespace autoskip over it. >> only recently changed parts of the buffer, and a much faster >> syntax-checking backend could be devised. > > All I can reply with, at the moment, is ... Hmmmm. :-) That's a more than reasonable reply to my vaporware. I'll let you know when I have something more concrete. >> when the code becomes stable, I can can increase the complexity of >> elec-pair.el a bit to make it work in c++-mode. > I think the increase in complexity would be quite small, and very > local. That remains to be seen... Nevertheless, if we're talking about this one test, my offer stands: I can add a variable to control this (which c-mode will have to set since it's not going to be the default). >> BTW do all cc-based modes "forbid" multi-line strings? > > No. Pike Mode has a special feature whereby a string starting with #" is So Pike Mode keeps the whitespace skip, right? Jo=C3=A3o