[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default behaviour of RET.
From: |
Stefan Monnier |
Subject: |
Re: Default behaviour of RET. |
Date: |
Wed, 16 Oct 2013 20:47:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> The traditional docstring says that it moves to the left margin and
> handles auto-filling. Eli's suggestion of `(insert "\n")' doesn't do
> that, and it's not what `newline' does when corrupted by
> `electric-shock-mode'. But I think it's useful behavior, and I think
> programs should be able to rely on it (as opposed to users who can
> modify the behavior of `One-Flew-Over-the-Cuckoos-Nest-mode' by
> removing ?\n, or not invoke the mode in the first place).
I can't remember ever seeing a piece of code which wants "the Emacs-23
newline behavior". Usually it either wants to (insert "\n") or it wants
to simulate hitting RET.
This discussion would benefit from actual examples of code that
fall into neither "do whatever RET does" nor "insert \n".
Stefan
- Re: electric-indent-mode: abolition of `newline' function is not the Right Thing., (continued)
- 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
- Re: Default behaviour of RET.,
Stefan Monnier <=
- Re: Default behaviour of RET., Alan Mackenzie, 2013/10/18
- Re: Default behaviour of RET., Stefan Monnier, 2013/10/18
- Re: Default behaviour of RET., Alan Mackenzie, 2013/10/18
- Re: Default behaviour of RET., Stefan Monnier, 2013/10/18
- Re: Default behaviour of RET., Alan Mackenzie, 2013/10/19
- RE: Default behaviour of RET., Drew Adams, 2013/10/19
- Re: Default behaviour of RET., Alan Mackenzie, 2013/10/20
- Re: Default behaviour of RET., Richard Stallman, 2013/10/20
- Re: Default behaviour of RET., Eli Zaretskii, 2013/10/20
- RE: Default behaviour of RET., Drew Adams, 2013/10/20