>> I tried to not reset these flags only for the tab-line, and indeed >> when the tab-line is truncated, then truncated_on_right_p is true >> most of the time, but not always. It's false when the tab-line >> is truncated between tabs. >> >> AFAIU by looking at 'display_string', it looks like this has something >> to do with whitespace between tabs as this comment explains: >> >> /* Add truncation mark, but don't do it if the line is >> truncated at a padding space. */ > > I don't think this is the reason, because AFAICT tab-line-format > doesn't include constructs that would pad its elements with spaces. > > Can you cook up a simple recipe where the truncation bitmaps don't > appear, and also show the patch you used not to reset those flags? > I'd like to look into what happens in the code in that case. Please try with this patch to resize the frame right edge until the edge is between tabs, then it outputs "truncated_on_right_p=0" whereas when the truncating frame edge is not between tabs then it outputs "truncated_on_right_p=1"