aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-07-30 19:34:38 +0300
committerEli Zaretskii2022-07-30 19:34:38 +0300
commiteb11dae499fc395bbf3d51883ced6244c91019cf (patch)
treebd590d73825c88dc1948b751e70626d612d7f3fd /src
parentc95a34c96013aaba1cdf2166c4a1d0e2c5f3de6a (diff)
downloademacs-eb11dae499fc395bbf3d51883ced6244c91019cf.tar.gz
emacs-eb11dae499fc395bbf3d51883ced6244c91019cf.zip
Improve documentation of column-related functions
* doc/lispref/text.texi (Primitive Indent, Columns): * src/indent.c (Fcurrent_indentation, Fmove_to_column): Document that column counting ignores invisible text. (Bug#56837)
Diffstat (limited to 'src')
-rw-r--r--src/indent.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index f5a2a078b98..5e33fc2e77b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -866,8 +866,10 @@ The return value is the column where the insertion ends. */)
866DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation, 866DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation,
867 0, 0, 0, 867 0, 0, 0,
868 doc: /* Return the indentation of the current line. 868 doc: /* Return the indentation of the current line.
869This is the horizontal position of the character 869This is the horizontal position of the character following any initial
870following any initial whitespace. */) 870whitespace.
871Text that has an invisible property is considered as having width 0, unless
872`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */)
871 (void) 873 (void)
872{ 874{
873 ptrdiff_t posbyte; 875 ptrdiff_t posbyte;
@@ -985,6 +987,9 @@ as displayed of the previous characters in the line.
985This function ignores line-continuation; 987This function ignores line-continuation;
986there is no upper limit on the column number a character can have 988there is no upper limit on the column number a character can have
987and horizontal scrolling has no effect. 989and horizontal scrolling has no effect.
990Text that has an invisible property is considered as having width 0,
991unless `buffer-invisibility-spec' specifies that it is replaced by
992an ellipsis.
988 993
989If specified column is within a character, point goes after that character. 994If specified column is within a character, point goes after that character.
990If it's past end of line, point goes to end of line. 995If it's past end of line, point goes to end of line.