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, 19 Jun 2018 01:02:12 +0100 Message-ID: References: <20180531123747.GA24752@ACM> <20180617201351.GA4580@ACM> <20180618103654.GA9771@ACM> <20180618154227.GB3973@ACM> <86d0wng1kb.fsf@stephe-leake.org> 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 1529366429 21983 195.159.176.226 (19 Jun 2018 00:00:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2018 00:00:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 02:00:25 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 1fV44P-0005cl-E8 for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2018 02:00:25 +0200 Original-Received: from localhost ([::1]:38103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV46W-0002yZ-LD for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 20:02:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV46H-0002yF-0Z for emacs-devel@gnu.org; Mon, 18 Jun 2018 20:02:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV46D-0004NK-41 for emacs-devel@gnu.org; Mon, 18 Jun 2018 20:02:21 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:52244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV46C-0004N9-UL for emacs-devel@gnu.org; Mon, 18 Jun 2018 20:02:17 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id p126-v6so16893905wmb.2 for ; Mon, 18 Jun 2018 17:02:16 -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=wRCdJTAYxhrDjFLjhxPkMLdfKTdl3bhBTZRKYlpzq4E=; b=uPKeMMwsPX2wkw2smeos0mLuSAzO0tGArkbnnNZeoV5mgBHDxNncMVRhTbE1JfWrSg 6BZRO/Y8ZR4p+4uB/I1fQIVORsnb0eyMGlcx5wFO3YUq9JE5sWZZF4H02k2GUPmSEfA8 dAyiWXdOTF4YK80bQL5+h0m1cNbCjq9mOXeyuqv53bbTCBpdsrPAOf1sTf23XEEiglPb H47ll94KZNVIWRr4LUZ6M8WKem0WuJkHtGSLLcEsyA9P7BxHb1MUvsJ5QaP9q96tinD/ Jp7J8lyDq9+zyJgJsjFIndQzemdvMRYjLNFUIKIxElW6YhPXdi3eLTxSob/ELaQWPIgQ 1+Zg== 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=wRCdJTAYxhrDjFLjhxPkMLdfKTdl3bhBTZRKYlpzq4E=; b=YsFeH6ZpVSsVRO4ddKCLCBxo2MS5VPyTPQ4JgcEqVMNvawiK6Xcq+K5cQ1xt9Op/J8 CfFHjASlea/j8k81CHAe82gYXUREHx8RExU5+V7iZUNN0EKMTnswPZNghsicUKCZtm4G +7d6jH0pM1D16xAqBFAGl9xZvEIV6xXJNTLvJgj4X+R546HGl4sb1tK302sZiZfjbUYK Ilylqa3oUjTrzSuGfAcbn6as20mRa83vyrBMB8RCdCzsXt3g5rhPusP1WXX5g8tRJ/OA W6oct4PMtDMQ7rFW80JI6uiLCYMG2paWePZl8zSwHwYkdjGxP7UYcZRrpv9l/8w0npRd qYog== X-Gm-Message-State: APt69E0UODVqunjknCGAkUF+ciKJErQknPD8kaZ6VtAgNpj738kLyEKG si5S3qUBjKPDrrja1mPM5jTU7XZK X-Google-Smtp-Source: ADUXVKKfZPDynNDckU1QTQG3KHO4h7jd9EcqQ0tzc30fIFQSf9rkizLyGmUu++aKMBnPGnPzK2wnGw== X-Received: by 2002:a7b:c058:: with SMTP id u24-v6mr10119893wmc.136.1529366535280; Mon, 18 Jun 2018 17:02:15 -0700 (PDT) Original-Received: from kitaj.yourcompany.com (178.110.103.87.rev.vodafone.pt. [87.103.110.178]) by smtp.gmail.com with ESMTPSA id j4-v6sm18220409wrr.47.2018.06.18.17.02.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 17:02:14 -0700 (PDT) In-Reply-To: <86d0wng1kb.fsf@stephe-leake.org> (Stephen Leake's message of "Mon, 18 Jun 2018 17:41:24 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22c 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:226480 Archived-At: Stephen Leake writes: > If electric-pair mode wants to support users splitting a string across > lines, it should insert " before and after the newline; that's what I > would expect from it. Well, I don't understand the specific relevance of your example, e-p-m doesn't "support" that, Emacs does. But FWIW your expectation is exactly what it does now (you insert one quote, get two, then you enter the newline). So that's not the problem, the problem in e-p-m is a corner-case of whitespace "chomping", that shouldn't hopefully be very hard to fix. My objections are beyond electric-pair-mode. I was telling Alan how this breaks sexp-based navigation, for instance. > For me, it's more common to forget the closing " (possibly due to > copy/paste), in which case terminating the string at the new line is > more friendly. Indeed, if you frequently do this, it's somewhat nicer not to paint the rest of the buffer purple (or font-lock-string-face). But now you know about the drawbacks. Jo=C3=A3o