GNU bug report logs -
#24766
26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe
Previous Next
Reported by: Alex <agrambot <at> gmail.com>
Date: Sat, 22 Oct 2016 19:02:01 UTC
Severity: minor
Tags: fixed, patch
Found in version 26.0.50
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #14 received at 24766 <at> debbugs.gnu.org (full text, mbox):
> From: Alex <agrambot <at> gmail.com>
> Cc: 24766 <at> debbugs.gnu.org
> Date: Sat, 22 Oct 2016 13:40:57 -0600
>
> >> 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.
>
> I took UNINTENDED-OK to mean that "if non-nil, nothing is done in the
> case that there are no appropriate indentation positions. If there are
> appropriate indentation positions, then it should indent as usual."
>
> The docstring could be improved to state that.
Definitely. Would you like to give it a try?
> The optional argument is implicitly mentioned as "unless
> this command is invoked with a numeric argument, in which case it
> does nothing."
Well, that's not how we document such functions, right? Both the
effect of the argument, when used from Lisp, and the fact that it's
the prefix argument in interactive invocation, should be stated.
> > but other than fixing the documentation, I see
> > no reason to change the behavior. Am I missing something?
>
> IIUC the current behaviour essentially makes indent-relative-maybe a
> no-op.
No, it's definitely not a no-op. It is only a no-op if the previous
non-blank line has no white space at its beginning, or the current
column is already past that first indentation point. IOW,
indent-relative-maybe only ever indents to the first indentation
point, and only when that indentation point is preceded by whitespace.
This bug report was last modified 7 years and 355 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.