[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-mayb
From: |
Eli Zaretskii |
Subject: |
bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe |
Date: |
Sat, 22 Oct 2016 22:21:51 +0300 |
> From: Alex <agrambot@gmail.com>
> Date: Sat, 22 Oct 2016 13:01:15 -0600
>
> In emacs -Q's scratch buffer, try the following:
>
> M-: (indent-relative) RET
>
> Repeating this will move to the next appropriate indentation point as
> indicated in indent-relative's docstring.
>
> Now try:
>
> M-: (indent-relative-maybe) RET
>
> The point does not move even when there are appropriate indentation
> points to move to.
It doesn't move because that's what UNINDENTED-OK means.
> This contradicts the intention of the docstring for
> indent-relative-maybe:
>
> If the previous nonblank line has no indent points beyond the
> column point starts at, this command does nothing.
>
>
> I would have expected, in indent-relative, that the calculation of a
> suitable indentation position is done independent of the argument
> UNINDENTED-OK. The following diff fixes this:
These functions exist for ages in this form. I agree that the doc
string is misleading (and the optional argument of indent-relative is
not even documented), but other than fixing the documentation, I see
no reason to change the behavior. Am I missing something?
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Alex, 2016/10/22
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe,
Eli Zaretskii <=
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Alex, 2016/10/22
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Eli Zaretskii, 2016/10/22
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Alex, 2016/10/22
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Eli Zaretskii, 2016/10/23
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Alex, 2016/10/23
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Eli Zaretskii, 2016/10/24
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Alex, 2016/10/24
- bug#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe, Eli Zaretskii, 2016/10/24