From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?iso-8859-1?Q?Jo=E3o_T=E1vora?=) Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Mon, 10 Mar 2014 12:24:44 +0000 Message-ID: References: <20140222182704.GA2639@acm.acm> <20140228195051.GA3446@acm.acm> <20140302115118.GA3768@acm.acm> <20140308225820.GB2726@acm.acm> <20140309123711.GA2615@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1394454562 27462 80.91.229.3 (10 Mar 2014 12:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 12:29:22 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 10 13:29:30 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMzKk-0007EO-Kj for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2014 13:29:30 +0100 Original-Received: from localhost ([::1]:48447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzKh-0005iW-8R for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2014 08:29:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzGK-00060o-6d for emacs-devel@gnu.org; Mon, 10 Mar 2014 08:25:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMzGE-0000Cs-NX for emacs-devel@gnu.org; Mon, 10 Mar 2014 08:24:56 -0400 Original-Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:54281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzGE-0000Ce-B4 for emacs-devel@gnu.org; Mon, 10 Mar 2014 08:24:50 -0400 Original-Received: by mail-wg0-f50.google.com with SMTP id x13so8546969wgg.21 for ; Mon, 10 Mar 2014 05:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=CgN6qwUMRSphzJOxvqlvxJBRuLyZiv8VkwrJF/oUDBE=; b=uklK6daSCBm9OZVInaEQh1E3li0uyi3gGpCStbAjx/YfCnm2k8xcg7O7LKPCq7OMi8 hmc5sDLan/FwjeAGYnBNWy3Jei1UD/Nvh2CpBTo8ENCtH0ltRQ3EsZ1KK6pJmBo17Ls7 7QJmu2qA3bGBv4hNpr88K/aDv/+58pqBU2RiWytj801lzfPz1EhOguvgrl+ZDCNedBjY bSkfUdSOIT7Dzj7Pk+53cGJ09nG/1dFakVSURZ1xUJLsOUCUcizZZ1G/rjI6epjrhg52 3ZBXqTXyfrQwOy6uMFVK0svKxYaNLSr5VBznmU9vdCIkjwZRgheeNd3TJY3ZYQIaJntw 7OdA== X-Received: by 10.180.19.130 with SMTP id f2mr8655306wie.6.1394454288906; Mon, 10 Mar 2014 05:24:48 -0700 (PDT) Original-Received: from BELMONTE.yourcompany.com (a81-84-241-129.static.cpe.netcabo.pt. [81.84.241.129]) by mx.google.com with ESMTPSA id pm2sm13313055wic.0.2014.03.10.05.24.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Mar 2014 05:24:48 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 09 Mar 2014 23:37:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170248 Archived-At: Stefan Monnier writes: > No, I can't, sorry: if it were up to me, c-electric-flag would not even > exist any more. FWIW, I've just noticed that when `electric-pair-mode' is enabled in c-mode, it's `electric-pair-backward-delete-char' command it not working, since c-mode rebinds it to `c-electric-backspace'. It works when I unbind `c-electric-backspace' from `c-mode-base-map'. All other autopairing/autoskipping works well. Perhaps a lesser problem since `electric-pair-mode' is not enabled by default. There might also be non-intrusive solutions on elec-pair.el's side. Other modes like python-mode also like to redefine the backspace key. They all seem to call backward-delete-char-untabify eventually, so maybe somehow transferring `electric-pair-mode's behaviour there is a good idea. Should I open a bug report? Jo=E3o