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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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. 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:
[indent.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
Apparently this stems from the initial revision of indent.el. Am I just
misinterpreting this function's purpose, or has it been wrong this whole
time?
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.