GNU bug report logs -
#24844
26.0.50; electric-newline-and-maybe-indent
Previous Next
To reply to this bug, email your comments to 24844 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24844
; Package
emacs
.
(Tue, 01 Nov 2016 11:16:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Röhler <andreas.roehler <at> easy-emacs.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 01 Nov 2016 11:16:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Docstring of electric-newline-and-maybe-indent says
"Insert a newline.
If `electric-indent-mode' is enabled, that's that, but if it
is *disabled* then additionally indent according to major mode...."
I.e disabling `electric-indent-mode' will cause electric indent?
Is this sane?
Cheers,
Andreas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24844
; Package
emacs
.
(Tue, 01 Nov 2016 18:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24844 <at> debbugs.gnu.org (full text, mbox):
> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
> Date: Tue, 1 Nov 2016 12:23:24 +0100
>
> Docstring of electric-newline-and-maybe-indent says
>
>
> "Insert a newline.
> If `electric-indent-mode' is enabled, that's that, but if it
> is *disabled* then additionally indent according to major mode...."
>
> I.e disabling `electric-indent-mode' will cause electric indent?
Where does it say that the additional indent is electric? It isn't.
> Is this sane?
It is to me.
Did you look at the code?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24844
; Package
emacs
.
(Tue, 01 Nov 2016 19:36:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 24844 <at> debbugs.gnu.org (full text, mbox):
On 01.11.2016 19:45, Eli Zaretskii wrote:
>> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de> Date: Tue, 1 Nov
>> 2016 12:23:24 +0100 Docstring of electric-newline-and-maybe-indent
>> says "Insert a newline. If `electric-indent-mode' is enabled, that's
>> that, but if it is *disabled* then additionally indent according to
>> major mode...." I.e disabling `electric-indent-mode' will cause
>> electric indent?
> Where does it say that the additional indent is electric? It isn't.
Understand "electric" just as a kind of joint --or additional-- action.
Wrong?
>> Is this sane?
> It is to me. Did you look at the code?
No, the experience was concludent with docu.
In haskell-mode at EOL:
factors :: Int -> [Int]
C-j calls
electric-newline-and-maybe-indent
and indents wrongly - there is nothing to indent.
BTW why electric-newline? Isn't the indent the electric action?
In order to avoid the wrong indent, have to enable electric-indent-mode
- doesn't make sense for me.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24844
; Package
emacs
.
(Tue, 01 Nov 2016 20:09:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 24844 <at> debbugs.gnu.org (full text, mbox):
> Cc: 24844 <at> debbugs.gnu.org
> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
> Date: Tue, 1 Nov 2016 20:43:04 +0100
>
> In haskell-mode at EOL:
>
> factors :: Int -> [Int]
>
> C-j calls
>
> electric-newline-and-maybe-indent
>
> and indents wrongly - there is nothing to indent.
So perhaps this is the problem to solve, not the documentation?
> BTW why electric-newline? Isn't the indent the electric action?
I agree that the name is confusing; I guess the "electric-" prefix is
to blame.
> In order to avoid the wrong indent, have to enable electric-indent-mode
> - doesn't make sense for me.
So I think the bug is the wrong indent you needed to avoid.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24844
; Package
emacs
.
(Tue, 01 Nov 2016 20:57:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 24844 <at> debbugs.gnu.org (full text, mbox):
On 01.11.2016 21:08, Eli Zaretskii wrote:
>> Cc: 24844 <at> debbugs.gnu.org
>> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
>> Date: Tue, 1 Nov 2016 20:43:04 +0100
>>
>> In haskell-mode at EOL:
>>
>> factors :: Int -> [Int]
>>
>> C-j calls
>>
>> electric-newline-and-maybe-indent
>>
>> and indents wrongly - there is nothing to indent.
> So perhaps this is the problem to solve, not the documentation?
>
>> BTW why electric-newline? Isn't the indent the electric action?
> I agree that the name is confusing; I guess the "electric-" prefix is
> to blame.
>
>> In order to avoid the wrong indent, have to enable electric-indent-mode
>> - doesn't make sense for me.
> So I think the bug is the wrong indent you needed to avoid.
Hmm, think there are two bugs.
In electric-newline-and-maybe-indent switching the clauses should solve
this one.
Than, even an electric-indent should do nothing when not appropriate,
second bug.
This bug report was last modified 8 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.