diff options
author | Alan Mackenzie <acm@muc.de> | 2019-05-09 16:27:03 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-05-09 16:27:03 +0000 |
commit | 32d181326a752375ce31796556017b94878d2d2b (patch) | |
tree | c435c7e7fd2b469a56ad512d9cadbaec0b1754c2 /doc | |
parent | 0397b7c797b891906bd6613b46a5634aba468fb9 (diff) | |
download | emacs-32d181326a752375ce31796556017b94878d2d2b.tar.gz |
Fix description of (move-to-column <n> t) when column <n> is inside a tab
This fixes bug #35647. State that when indent-tabs-mode is non-nil, spaces
are inserted before the tab rather than the tab being replaced by spaces.
* doc/lispref/text.texi (columns)
* src/indent.c (move-to-column): Make the above documentation amendment.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/text.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 73312bb0caa..f3d222b7083 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -2245,9 +2245,11 @@ If it is impossible to move to column @var{column} because that is in the middle of a multicolumn character such as a tab, point moves to the end of that character. However, if @var{force} is non-@code{nil}, and @var{column} is in the middle of a tab, then @code{move-to-column} -converts the tab into spaces so that it can move precisely to column -@var{column}. Other multicolumn characters can cause anomalies despite -@var{force}, since there is no way to split them. +either converts the tab into spaces (when @code{indent-tabs-mode} is +@code{nil}), or inserts enough spaces before it (otherwise), so that +point can move precisely to column @var{column}. Other multicolumn +characters can cause anomalies despite @var{force}, since there is no +way to split them. The argument @var{force} also has an effect if the line isn't long enough to reach column @var{column}; if it is @code{t}, that means to |