From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Sat, 22 Mar 2014 23:05:22 +0100 Organization: Organization?!? Message-ID: <87bnwx28kd.fsf@fencepost.gnu.org> References: <20140302115118.GA3768@acm.acm> <20140308225820.GB2726@acm.acm> <20140309123711.GA2615@acm.acm> <20140316223509.GD3854@acm.acm> <20140319224231.GB4783@acm.acm> <20140322131350.GA3163@acm.acm> <532DF059.1000907@porkrind.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395525942 3270 80.91.229.3 (22 Mar 2014 22:05:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2014 22:05:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 23:05:51 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 1WRU33-0001G8-DI for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2014 23:05:49 +0100 Original-Received: from localhost ([::1]:58265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRU32-0005Qr-TO for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2014 18:05:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRU2u-0005Qj-Iw for emacs-devel@gnu.org; Sat, 22 Mar 2014 18:05:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRU2o-0006P0-O6 for emacs-devel@gnu.org; Sat, 22 Mar 2014 18:05:40 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRU2o-0006Ov-HD for emacs-devel@gnu.org; Sat, 22 Mar 2014 18:05:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WRU2m-0000yL-Kg for emacs-devel@gnu.org; Sat, 22 Mar 2014 23:05:32 +0100 Original-Received: from x2f422c0.dyn.telefonica.de ([2.244.34.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Mar 2014 23:05:32 +0100 Original-Received: from dak by x2f422c0.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Mar 2014 23:05:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f422c0.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:0ipukzOFPdhtE2Ccbwkm9lo1rO4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:170817 Archived-At: David Caldwell writes: > On 3/22/14, 9:14 AM, Stefan wrote: >> It seems now that your main (only?) objection is having RET do >> reindent-then-newline-and-indent instead of having it only do >> newline-and-indent. If that's the case, then let's focus on this. >> In what scenario is it a problem? > > Let me ask this, in what scenario does it actually do anything useful? } ^ When pressing RET now, the result should be } ^ with the added empty line being _empty_ rather than containing two spaces. > All the cases I can think of it's a nop, except when the indent > guessing is flat out wrong, and then it's just annoying (Grrrr, M-_ > C-q RET TAB). Yup. The current behavior makes editing flex or bison files (a mixture of patterns and/or rules and C code) a lot more annoying than it was a year ago since at points of "bad indentation" (when in the pattern/rule part or on its boundary to C code), RET does a lot more damage than previously. -- David Kastrup