aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2023-01-06 06:30:10 +0100
committerStefan Kangas2023-01-06 06:30:10 +0100
commit3fcbb865853d7c364cf7c2986ead9e258f449f97 (patch)
treec25714a8d349280168f57016f49612478bc04e74 /src
parent15fc7b3cde92e420f48dfe188251e6af4d832af5 (diff)
parent0f5e74f17349dde4bd561f2a703a2bb2c4b97c54 (diff)
downloademacs-3fcbb865853d7c364cf7c2986ead9e258f449f97.tar.gz
emacs-3fcbb865853d7c364cf7c2986ead9e258f449f97.zip
Merge from origin/emacs-29
0f5e74f1734 ruby-ts-mode: Highlight method and block parameters f1aa306f915 ruby-ts-mode: Highlight variable assignments 089b08eb3eb ruby-ts-mode: Move 'self' and 'super' from constants to k... 7ede600273c (ruby-ts-mode): Split font-lock feature 'builtin' into two ec172d748f3 Avoid assertion violation due to fill-column indicator face 62c2963ce60 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... 2e6070f16c4 ; Another review of etc/NEWS 16eca92415b ; * src/gnutls.c (Fgnutls_deinit): Fix typo in doc string... 4753b587868 * lisp/cedet/semantic/symref/grep.el: Support ts-modes (b... 8a18369afdc ; Another fix for doc strings of 2 treesit.el functions 3fc68833517 ; Fix the doc strings of 2 treesit.el functions 83ce7c861e1 Make 'toml-ts-mode' optional # Conflicts: # etc/NEWS
Diffstat (limited to 'src')
-rw-r--r--src/gnutls.c2
-rw-r--r--src/xdisp.c15
2 files changed, 10 insertions, 7 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index 8320c928a4e..e8528381efd 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1072,7 +1072,7 @@ usage: (gnutls-error-string ERROR) */)
1072 1072
1073DEFUN ("gnutls-deinit", Fgnutls_deinit, Sgnutls_deinit, 1, 1, 0, 1073DEFUN ("gnutls-deinit", Fgnutls_deinit, Sgnutls_deinit, 1, 1, 0,
1074 doc: /* Deallocate GnuTLS resources associated with process PROC. 1074 doc: /* Deallocate GnuTLS resources associated with process PROC.
1075See also `gnutls-init'. */) 1075See also `gnutls-boot'. */)
1076 (Lisp_Object proc) 1076 (Lisp_Object proc)
1077{ 1077{
1078 return emacs_gnutls_deinit (proc); 1078 return emacs_gnutls_deinit (proc);
diff --git a/src/xdisp.c b/src/xdisp.c
index 66c72aea6da..2e962b011a6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -23322,8 +23322,9 @@ extend_face_to_end_of_line (struct it *it)
23322 it->avoid_cursor_p = true; 23322 it->avoid_cursor_p = true;
23323 it->object = Qnil; 23323 it->object = Qnil;
23324 23324
23325 const int stretch_ascent = (((it->ascent + it->descent) 23325 const int stretch_height = it->ascent + it->descent;
23326 * FONT_BASE (font)) / FONT_HEIGHT (font)); 23326 const int stretch_ascent =
23327 (stretch_height * FONT_BASE (font)) / FONT_HEIGHT (font);
23327 23328
23328 if (indicator_column >= 0 23329 if (indicator_column >= 0
23329 && indicator_column > it->current_x 23330 && indicator_column > it->current_x
@@ -23343,8 +23344,7 @@ extend_face_to_end_of_line (struct it *it)
23343 if (stretch_width > 0) 23344 if (stretch_width > 0)
23344 { 23345 {
23345 append_stretch_glyph (it, Qnil, stretch_width, 23346 append_stretch_glyph (it, Qnil, stretch_width,
23346 it->ascent + it->descent, 23347 stretch_height, stretch_ascent);
23347 stretch_ascent);
23348 } 23348 }
23349 23349
23350 /* Generate the glyph indicator only if 23350 /* Generate the glyph indicator only if
@@ -23352,6 +23352,8 @@ extend_face_to_end_of_line (struct it *it)
23352 if (it->current_x < indicator_column) 23352 if (it->current_x < indicator_column)
23353 { 23353 {
23354 const int save_face_id = it->face_id; 23354 const int save_face_id = it->face_id;
23355 const int save_ascent = it->ascent;
23356 const int save_descent = it->descent;
23355 it->char_to_display 23357 it->char_to_display
23356 = XFIXNAT (Vdisplay_fill_column_indicator_character); 23358 = XFIXNAT (Vdisplay_fill_column_indicator_character);
23357 it->face_id 23359 it->face_id
@@ -23359,6 +23361,8 @@ extend_face_to_end_of_line (struct it *it)
23359 0, extend_face_id); 23361 0, extend_face_id);
23360 PRODUCE_GLYPHS (it); 23362 PRODUCE_GLYPHS (it);
23361 it->face_id = save_face_id; 23363 it->face_id = save_face_id;
23364 it->ascent = save_ascent;
23365 it->descent = save_descent;
23362 } 23366 }
23363 } 23367 }
23364 23368
@@ -23372,8 +23376,7 @@ extend_face_to_end_of_line (struct it *it)
23372 { 23376 {
23373 clear_position (it); 23377 clear_position (it);
23374 append_stretch_glyph (it, Qnil, stretch_width, 23378 append_stretch_glyph (it, Qnil, stretch_width,
23375 it->ascent + it->descent, 23379 stretch_height, stretch_ascent);
23376 stretch_ascent);
23377 } 23380 }
23378 } 23381 }
23379 23382