[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questioning the new behavior of `open-line'.
From: |
Karl Fogel |
Subject: |
Re: Questioning the new behavior of `open-line'. |
Date: |
Thu, 12 Nov 2015 10:20:17 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
>Emacs will never be perfect in all respects, not least of all because
>some indentations are motivated by aesthetic criteria and by judgment
>calls on different criteria than Emacs uses. To intentionally make it
>annoying to work around bad decisions in order to make developers change
>Emacs is just stupid because the fallout will hit first and foremost the
>users rather than the developers even if we hypothesize that for every
>code there is exactly one correct and desirable and machine-determinable
>way to indent it.
As a statement of general principle, that's certainly reasonable.
But in this situation, I don't think we face that particular tradeoff (and
therefore Artur's proposed course of action makes the most sense).
There is consensus that in column zero, C-o should do what it used to do (i.e.,
no electric indent). I think there's also consensus that in column >0, most of
the time it makes sense for C-o to do electric indent even though there are
sometimes cases where someone might want it to do no indentation.
There has been one example of a mode where from column >0, the indentation
itself is broken, so that after doing C-o one would have to go down to the
mis-indented line to fix it -- but that would be just as true if there had been
*no* indentation (IOW, with C-o from column >0, doing no indentation is not
more or less broken than any other mis-indentation, and costs about the same
for the user to fix afterwards).
It's true that developers are more likely to fix that mode's indentation if the
problem is less hidden from them, and in this case there isn't any compelling
win for users if we mask the problem by making C-o completely
indentation-insensitive, because for most users most of the time, "no
indentation" would be just as broken a behavior as "indentation to the wrong
place" (when doing C-o from column >0).
Best regards,
-Karl
- Re: Questioning the new behavior of `open-line'., (continued)
- Re: Questioning the new behavior of `open-line'., Karl Fogel, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Artur Malabarba, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Rasmus, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Andreas Schwab, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Artur Malabarba, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Rasmus, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Yuri Khan, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Rasmus, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Yuri Khan, 2015/11/12
- Re: Questioning the new behavior of `open-line'., David Kastrup, 2015/11/12
- Re: Questioning the new behavior of `open-line'.,
Karl Fogel <=
- Re: Questioning the new behavior of `open-line'., Pierpaolo Bernardi, 2015/11/12
- Message not available
- Re: Questioning the new behavior of `open-line'., Artur Malabarba, 2015/11/12
- Re: Questioning the new behavior of `open-line'., Pierpaolo Bernardi, 2015/11/13
- Re: Questioning the new behavior of `open-line'., Artur Malabarba, 2015/11/14
- Re: Questioning the new behavior of `open-line'., David Kastrup, 2015/11/15
- Re: Questioning the new behavior of `open-line'., Karl Fogel, 2015/11/16
- Re: Questioning the new behavior of `open-line'., Karl Fogel, 2015/11/16
- Re: Questioning the new behavior of `open-line'., John Wiegley, 2015/11/16
- Re: Questioning the new behavior of `open-line'., Richard Stallman, 2015/11/17
- Re: Questioning the new behavior of `open-line'., John Wiegley, 2015/11/17