[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: electric-indent-mode: abolition of `newline' function is not the Rig
From: |
Alan Mackenzie |
Subject: |
Re: electric-indent-mode: abolition of `newline' function is not the Right Thing. |
Date: |
Wed, 16 Oct 2013 17:12:40 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello, Martin.
On Tue, Oct 15, 2013 at 08:28:22PM +0200, martin rudalics wrote:
> > And people calling `newline' do not simply want a \n. They want
> > abbreviations to be processed, they want auto-fill to be run, trailing
> > space to be removed from otherwise blank lines, and so on. What they
> > _don't_ want is indentation inserted on the new line.
> What I want is RET to always indent the new line. And when I'm at the
> beginning of a line I want that RET opens a new line here and indents
> it. And that's why I'm hopelessly lost when I have to work with emacs
> -Q.
With respect, that is not the topic of this thread. That topic is that
with electric-indent-mode enabled, there is now no command, also no
elisp function which has the traditional functionality of `newline'.
That is a significant loss to Emacs. The change in the functionality of
`newline' will break existing elisp code which calls `newline'. Also,
there will be no way for a user to set up traditional Emacs behaviour
wrt <ret> and C-j.
For what you want, `newline-and-indent' exists, as you know.
> martin
>
- electric-indent-mode: abolition of `newline' function is not the Right Thing., Alan Mackenzie, 2013/10/13
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Stefan Monnier, 2013/10/13
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Alan Mackenzie, 2013/10/13
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., martin rudalics, 2013/10/15
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing.,
Alan Mackenzie <=
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Stefan Monnier, 2013/10/16
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Alan Mackenzie, 2013/10/16
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., chad, 2013/10/16
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Daniel Colascione, 2013/10/16
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Alan Mackenzie, 2013/10/18
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., Stephen J. Turnbull, 2013/10/16
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., martin rudalics, 2013/10/16
- Default behaviour of RET., Alan Mackenzie, 2013/10/16
- Re: Default behaviour of RET., Eli Zaretskii, 2013/10/16
- Default behaviour of RET., Stephen J. Turnbull, 2013/10/16