summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-04-23 18:40:42 +0300
committerEli Zaretskii <eliz@gnu.org>2020-04-23 18:40:42 +0300
commit5ab80286f6f765ba41004030ea8cc19be7c1c098 (patch)
treee4923b8c1c20da115eb5a4423b36e6034b6ce0b7 /src/.gdbinit
parent7b15cc3ebb45e50ac5faf3bbc2a813afffdaa418 (diff)
downloademacs-5ab80286f6f765ba41004030ea8cc19be7c1c098.tar.gz
emacs-5ab80286f6f765ba41004030ea8cc19be7c1c098.tar.bz2
emacs-5ab80286f6f765ba41004030ea8cc19be7c1c098.zip
Fix display of composed text with :box face attribute
* src/xdisp.c (get_next_display_element): For a composition on a display or overlay string, set the end_of_box_run_p flag if the string ends at the last character included in the composition. (fill_gstring_glyph_string): Fix the way the width of a gstring glyph string is calculated: use the values calculated in gui_produce_glyphs, since the latter adjusts the width due to the face's ':box' attribute. * src/xterm.c (x_draw_glyph_string_box): * src/w32term.c (w32_draw_glyph_string_box): * src/nsterm.m (ns_dumpglyphs_box_or_relief): Support automatic compositions, which have the right_box_line_p flag set on the last glyph produced from the composition. (Bug#40687) * src/w32term.c (w32_compute_glyph_string_overhangs): Update to be consistent with xterm.c in its support of automatic composition glyph strings. * src/dispextern.h (enum glyph_type): More accurate commentary. * src/.gdbinit (pgx): Display slice.img members only for image glyphs.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 30c7b055ce0..78536fc01fb 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -500,6 +500,9 @@ define pgx
# IMAGE_GLYPH
if ($g.type == 3)
printf "IMAGE[%d]", $g.u.img_id
+ if ($g.slice.img.x || $g.slice.img.y || $g.slice.img.width || $g.slice.img.height)
+ printf " slice=%d,%d,%d,%d" ,$g.slice.img.x, $g.slice.img.y, $g.slice.img.width, $g.slice.img.height
+ end
end
# STRETCH_GLYPH
if ($g.type == 4)
@@ -551,9 +554,6 @@ define pgx
if ($g.right_box_line_p)
printf " ]"
end
- if ($g.slice.img.x || $g.slice.img.y || $g.slice.img.width || $g.slice.img.height)
- printf " slice=%d,%d,%d,%d" ,$g.slice.img.x, $g.slice.img.y, $g.slice.img.width, $g.slice.img.height
- end
printf "\n"
end
document pgx