summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-07-31 06:30:25 +0200
committerStefan Kangas <stefan@marxist.se>2022-07-31 06:30:25 +0200
commitd9bd334ef367f3e16967ae2ed714ff419f2b5328 (patch)
treee08882a1e9ec3c67c175a6e3dd63ef7f5e7f6d1f /src/indent.c
parent3d6af11c42453065d5ace1223fe99228b7927318 (diff)
parenteb11dae499fc395bbf3d51883ced6244c91019cf (diff)
downloademacs-d9bd334ef367f3e16967ae2ed714ff419f2b5328.tar.gz
Merge from origin/emacs-28
eb11dae499 Improve documentation of column-related functions c95a34c960 * src/macfont.m (macfont_open): Initialize font->space_wid... 31a6a37d45 Improve indexing of keymap variables
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index e90e3fde203..fd2e7636656 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -882,8 +882,10 @@ The return value is the column where the insertion ends. */)
DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation,
0, 0, 0,
doc: /* Return the indentation of the current line.
-This is the horizontal position of the character
-following any initial whitespace. */)
+This is the horizontal position of the character following any initial
+whitespace.
+Text that has an invisible property is considered as having width 0, unless
+`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */)
(void)
{
ptrdiff_t posbyte;
@@ -1001,6 +1003,9 @@ as displayed of the previous characters in the line.
This function ignores line-continuation;
there is no upper limit on the column number a character can have
and horizontal scrolling has no effect.
+Text that has an invisible property is considered as having width 0,
+unless `buffer-invisibility-spec' specifies that it is replaced by
+an ellipsis.
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.