summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2019-05-09 16:27:03 +0000
committerAlan Mackenzie <acm@muc.de>2019-05-09 16:27:03 +0000
commit32d181326a752375ce31796556017b94878d2d2b (patch)
treec435c7e7fd2b469a56ad512d9cadbaec0b1754c2 /src/indent.c
parent0397b7c797b891906bd6613b46a5634aba468fb9 (diff)
downloademacs-32d181326a752375ce31796556017b94878d2d2b.tar.gz
emacs-32d181326a752375ce31796556017b94878d2d2b.tar.bz2
emacs-32d181326a752375ce31796556017b94878d2d2b.zip
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 'src/indent.c')
-rw-r--r--src/indent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c
index 5e3a7e05923..53f998d6995 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -983,9 +983,10 @@ If specified column is within a character, point goes after that character.
If it's past end of line, point goes to end of line.
Optional second argument FORCE non-nil means if COLUMN is in the
-middle of a tab character, change it to spaces.
-In addition, if FORCE is t, and the line is too short to reach
-COLUMN, add spaces/tabs to get there.
+middle of a tab character, either change it to spaces (when
+`indent-tabs-mode' is nil), or insert enough spaces before it to reach
+COLUMN (otherwise). In addition, if FORCE is t, and the line is too short
+to reach COLUMN, add spaces/tabs to get there.
The return value is the current column. */)
(Lisp_Object column, Lisp_Object force)