diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-07-31 06:30:25 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-07-31 06:30:25 +0200 |
commit | d9bd334ef367f3e16967ae2ed714ff419f2b5328 (patch) | |
tree | e08882a1e9ec3c67c175a6e3dd63ef7f5e7f6d1f /src | |
parent | 3d6af11c42453065d5ace1223fe99228b7927318 (diff) | |
parent | eb11dae499fc395bbf3d51883ced6244c91019cf (diff) | |
download | emacs-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')
-rw-r--r-- | src/indent.c | 9 | ||||
-rw-r--r-- | src/macfont.m | 3 |
2 files changed, 10 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. diff --git a/src/macfont.m b/src/macfont.m index fe30908f5d6..4de056cb361 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -2645,6 +2645,9 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) font->pixel_size = size; font->driver = &macfont_driver; font->encoding_charset = font->repertory_charset = -1; + /* Clear font->space_width so macfont_monospace_width_multiplier may + not be confused by an uninitialized value. */ + font->space_width = 0; block_input (); |