aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2022-07-31 06:30:25 +0200
committerStefan Kangas2022-07-31 06:30:25 +0200
commitd9bd334ef367f3e16967ae2ed714ff419f2b5328 (patch)
treee08882a1e9ec3c67c175a6e3dd63ef7f5e7f6d1f /src
parent3d6af11c42453065d5ace1223fe99228b7927318 (diff)
parenteb11dae499fc395bbf3d51883ced6244c91019cf (diff)
downloademacs-d9bd334ef367f3e16967ae2ed714ff419f2b5328.tar.gz
emacs-d9bd334ef367f3e16967ae2ed714ff419f2b5328.zip
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.c9
-rw-r--r--src/macfont.m3
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. */)
882DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation, 882DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation,
883 0, 0, 0, 883 0, 0, 0,
884 doc: /* Return the indentation of the current line. 884 doc: /* Return the indentation of the current line.
885This is the horizontal position of the character 885This is the horizontal position of the character following any initial
886following any initial whitespace. */) 886whitespace.
887Text that has an invisible property is considered as having width 0, unless
888`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */)
887 (void) 889 (void)
888{ 890{
889 ptrdiff_t posbyte; 891 ptrdiff_t posbyte;
@@ -1001,6 +1003,9 @@ as displayed of the previous characters in the line.
1001This function ignores line-continuation; 1003This function ignores line-continuation;
1002there is no upper limit on the column number a character can have 1004there is no upper limit on the column number a character can have
1003and horizontal scrolling has no effect. 1005and horizontal scrolling has no effect.
1006Text that has an invisible property is considered as having width 0,
1007unless `buffer-invisibility-spec' specifies that it is replaced by
1008an ellipsis.
1004 1009
1005If specified column is within a character, point goes after that character. 1010If specified column is within a character, point goes after that character.
1006If it's past end of line, point goes to end of line. 1011If 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)
2645 font->pixel_size = size; 2645 font->pixel_size = size;
2646 font->driver = &macfont_driver; 2646 font->driver = &macfont_driver;
2647 font->encoding_charset = font->repertory_charset = -1; 2647 font->encoding_charset = font->repertory_charset = -1;
2648 /* Clear font->space_width so macfont_monospace_width_multiplier may
2649 not be confused by an uninitialized value. */
2650 font->space_width = 0;
2648 2651
2649 block_input (); 2652 block_input ();
2650 2653