[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Default behaviour of RET.
From: |
Drew Adams |
Subject: |
RE: Default behaviour of RET. |
Date: |
Sat, 19 Oct 2013 08:07:35 -0700 (PDT) |
> OK. I've done a find-grep in .../lisp for all *.el matching
> '^[^;\n]*(newline\([ )]\|$\)'. There are 199 matches.
> There are 27 occurences of the exact string "(or (bolp) (newline))",
> which looks like making sure point is at BOL in an output file.
I haven't been following this thread; sorry. I don't have any calls
to `newline' in my code, FWIW.
Is the following a reasonable summary of the question & positions?
1. One position wants to change the behavior of `newline', so that
all uses of it automatically benefit from the new behavior.
2. The other position wants to keep `newline' as it is, perhaps for
some existing calls and in any case for some future calls. This
position holds that the "old" behavior can be useful in some contexts.
Sounds like two different functions are in order, for the old and new
behaviors - au choix. If so, it's not a big deal to update the Emacs
sources one way or the other.
But in case there is 3rd-party code that uses `newline', it seems
like the prudent choice would be to keep the existing name for the
existing behavior and give the new behavior a new name. 3rd-party
code that wants to "upgrade" to the new behavior can do that. And
there would be no surprises.
Is there more to it that this?
- 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., 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, 2013/10/16
- 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 <=
- 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
- Re: Default behaviour of RET., Rustom Mody, 2013/10/21
- Re: Default behaviour of RET., Richard Stallman, 2013/10/21
- Re: Default behaviour of RET., Stephen J. Turnbull, 2013/10/22
- Re: Default behaviour of RET., Kenichi Handa, 2013/10/22
- Re: Default behaviour of RET., Eli Zaretskii, 2013/10/21
- RE: Default behaviour of RET., Drew Adams, 2013/10/21