diff options
| author | Eli Zaretskii | 2022-07-30 19:34:38 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-07-30 19:34:38 +0300 |
| commit | eb11dae499fc395bbf3d51883ced6244c91019cf (patch) | |
| tree | bd590d73825c88dc1948b751e70626d612d7f3fd /src | |
| parent | c95a34c96013aaba1cdf2166c4a1d0e2c5f3de6a (diff) | |
| download | emacs-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.c | 9 |
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. */) | |||
| 866 | DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation, | 866 | DEFUN ("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. |
| 869 | This is the horizontal position of the character | 869 | This is the horizontal position of the character following any initial |
| 870 | following any initial whitespace. */) | 870 | whitespace. |
| 871 | Text 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. | |||
| 985 | This function ignores line-continuation; | 987 | This function ignores line-continuation; |
| 986 | there is no upper limit on the column number a character can have | 988 | there is no upper limit on the column number a character can have |
| 987 | and horizontal scrolling has no effect. | 989 | and horizontal scrolling has no effect. |
| 990 | Text that has an invisible property is considered as having width 0, | ||
| 991 | unless `buffer-invisibility-spec' specifies that it is replaced by | ||
| 992 | an ellipsis. | ||
| 988 | 993 | ||
| 989 | If specified column is within a character, point goes after that character. | 994 | If specified column is within a character, point goes after that character. |
| 990 | If it's past end of line, point goes to end of line. | 995 | If it's past end of line, point goes to end of line. |