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, 01 Jul 2018 12:22:11 +0100 Message-ID: <87woufdwv0.fsf@gmail.com> References: <20180618103654.GA9771@ACM> <20180618154227.GB3973@ACM> <20180619050244.GA3946@ACM> <20180627182717.GA4625@ACM> <20180630190327.GC6816@ACM> <83tvpkkr93.fsf@gnu.org> <20180630201447.GE6816@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 1530444061 17529 195.159.176.226 (1 Jul 2018 11:21:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2018 11:21:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , stephen_leake@stephe-leake.org, cpitclaudel@gmail.com, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 13:20:56 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 1fZaPY-0004Q2-HT for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2018 13:20:56 +0200 Original-Received: from localhost ([::1]:54045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZaRd-0005Pa-Nc for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2018 07:23:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZaQx-0005PS-Fn for emacs-devel@gnu.org; Sun, 01 Jul 2018 07:22:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZaQs-0003Di-Hy for emacs-devel@gnu.org; Sun, 01 Jul 2018 07:22:23 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZaQs-0003D9-C4; Sun, 01 Jul 2018 07:22:18 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id l15-v6so5486980wmc.1; Sun, 01 Jul 2018 04:22:18 -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=8K3JfKxXQcHzkTZGJMYEDF4ahwlmz4JfRUv3arphOVg=; b=erf7c48G7ibmQJNcfxUiIqP4DuHCHliObUkMzW9JFTZgapsboFalcxVX3tv/kDeyXj HcTjQLQ/wseziWL5L6+KrujWpB86OY0/Oicd/NOUQNYs4bQeQC66v2E+CosfGLdzQp+L zrUDwMHHq8HTKmI7m/rxy5aiMK04NhUTiHqkaKNWdE/MJz/TJEOJytBticceGSv4vbB4 tAazmR0N8uq6oGgF6gDNYBwnEHKP57HoWshttSaYSAOb5K9d+1phPSZktB+cKL3NAbZb 40Ig5LHEwvYNGPCWoir2JrDKMRLPvTeD7poip53dE7JfW9kHfM5sVO4MdbPZPB0BZ2Ui 2c3A== 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=8K3JfKxXQcHzkTZGJMYEDF4ahwlmz4JfRUv3arphOVg=; b=se/I00Bb+50jMMdwUtHmSM7Thfr8BCyJv6Jc/juNDSoBT2jmcMmeCJpFa4gDlg1Ogg eta7SyumNikcZbgWSfHL9vl7uG9Aave/bqoEe+xHwYieqIkzpIMq8oCpsFpxCrAgsDRu saSL9kcFy+/DKYgIuBieO+MJW7WisHY73644LUUsQSibdL8d291p39U3J3j5+o83tBgy LVP/fFd5pmXcL5p8n/liu6sAvbME79doqIurnSfkTTnEdx3GHn7Blp8U+5rjK+z7x0nW 13NhsnUZXmQiKPcLizYH658VjM8ARsMg/lq+O1yq0BK9dizW3x/N/tmj57ECp2ODBh8X Vi1Q== X-Gm-Message-State: APt69E2J/zEadBvjaDkyFTT5AkQFuwGud3/8Wa0zDrSWr+q7HHT2QMe7 iwflgtOd/1Zw30Y1U3L0p3I= X-Google-Smtp-Source: AAOMgpehMNoZ+37/tWe58C2z7YaEaH1mTbCHM2/eiAPuQbFl4fgBLKmoqB749XbSgujt2gB/x6oS1w== X-Received: by 2002:a1c:7218:: with SMTP id n24-v6mr6143136wmc.27.1530444136966; Sun, 01 Jul 2018 04:22:16 -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 o4-v6sm3469156wra.3.2018.07.01.04.22.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 01 Jul 2018 04:22:16 -0700 (PDT) In-Reply-To: <20180630201447.GE6816@ACM> (Alan Mackenzie's message of "Sat, 30 Jun 2018 20:14:47 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22b 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:226867 Archived-At: Alan Mackenzie writes: >> Could you please recap what problem(s) you are trying to fix with > Sorry. That's just the way things go, sometimes. I'm not sure how far into "final allegations" we are, but below is my summary. > electric-pair-mode from functioning correctly. Jo=C3=A3o and I have disc= ussed > at length ways of fixing this. ... in particular, a few weeks ago I provided, in electric-pair-mode, means for CC mode to declare that it has this particular behaviour. Though I'm still waiting for Alan's comments on this, I'd say the electric-pair-mode test failure is effectively fixed if Alan aggrees to use that customization point. But, in my view, electric-pair-mode was just the canary in the mine: after Alan's changes much more basic things such as C-M-* sexp navigation stop working like they did. I am actually more worried about these. To recap, I like that Alan's change in syntactically incorrect code is better "50% of the time": char *c=3D"an incomplete string int a =3D 0; ... } by not fontifying "int a" as a string, does indeed exhibit some intelligence. But this doesn't (where it previously did): int main () { int a =3D 0; char *c =3D "here's me editing a multi-line\n\ string"; puts(c); return 0; } If this switch was all, I wouldn't mind at all. Unfortunately it comes with a very big trade-off: the underlying syntactic changes break e.g. C-M-u C-M-SPC inside the multi-line string being edited (which is precisely something I could use to fix the string). I just noticed that in 26.1 indentation of the "puts(c)" wasn't affected by the temporary editing of the string. Now it is, so another downside, IMO. Jo=C3=A3o