emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC


From: David Caldwell
Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478.
Date: Sat, 22 Mar 2014 15:32:07 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Thunderbird/28.0

On 3/22/14, 3:05 PM, David Kastrup wrote:
> David Caldwell <address@hidden> 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.

Then perhaps it shouldn't act like "TAB RET TAB" but instead like "M-\
RET TAB". Or even "s/^\s +$// RET TAB" (in case preserving trailing
whitespace on a non-blank line is somehow better—though I think it would
not be).

-David


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]