From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Sat, 01 Mar 2014 10:57:34 -0500 Message-ID: References: <20140222182704.GA2639@acm.acm> <20140228195051.GA3446@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393689466 18881 80.91.229.3 (1 Mar 2014 15:57:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 15:57:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 01 16:57:54 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 1WJmIT-0002mr-QY for ged-emacs-devel@m.gmane.org; Sat, 01 Mar 2014 16:57:53 +0100 Original-Received: from localhost ([::1]:60119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJmIT-0001lI-GT for ged-emacs-devel@m.gmane.org; Sat, 01 Mar 2014 10:57:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJmIK-0001lA-8e for emacs-devel@gnu.org; Sat, 01 Mar 2014 10:57:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJmIC-0003lJ-Mv for emacs-devel@gnu.org; Sat, 01 Mar 2014 10:57:44 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:25322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJmIC-0003lE-Je for emacs-devel@gnu.org; Sat, 01 Mar 2014 10:57:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KLz/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFHO+KLz/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="49097032" Original-Received: from 206-248-162-243.dsl.teksavvy.com (HELO pastel.home) ([206.248.162.243]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Mar 2014 10:57:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8C3C2614B2; Sat, 1 Mar 2014 10:57:34 -0500 (EST) In-Reply-To: <20140228195051.GA3446@acm.acm> (Alan Mackenzie's message of "Fri, 28 Feb 2014 19:50:52 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:170000 Archived-At: >> > The other bit takes over the value of c-electric-indent-mode into CC >> > Mode only when it has been set by the user, thus preventing >> > electric.el's default overriding CC Mode's. >> For that I think it's better to only obey electric-indent-mode if >> Emacs>24.3 rather than use the electric-indent-mode-has-been-called crutch. > That does not achieve the same effect. Can you give a scenario where the result is different? > Please don't do this. I meant literally what I wrote. Yes, but I hate this electric-indent-mode-has-been-called crutch, so we need a different solution. > A better solution would be to provide a less ugly way of checking whether > a user has called electric-indent-mode A different way would still be ugly, because this requirement is itself ugly. We need to find a solution that does not depend on *how* we got to this state. Stefan