diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2022-07-16 11:21:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2022-07-16 11:21:05 +0300 |
| commit | 058cc53ea7778eeefaa72137b46cd7f7e83ce649 (patch) | |
| tree | 6b8c208e1fa436099e316a578ba8faebc493e36a /src | |
| parent | 9699eaf8af0e9e79e9b4ebd51e23ab81ec90903c (diff) | |
; * src/xdisp.c (try_window): Expand the commentary. (Bug#56561)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 1940d16a013..842277039d4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -20171,11 +20171,19 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) buffer position POS. Value is 1 if successful. It is zero if fonts were loaded during - redisplay which makes re-adjusting glyph matrices necessary, and -1 - if point would appear in the scroll margins. - (We check the former only if TRY_WINDOW_IGNORE_FONTS_CHANGE is - unset in FLAGS, and the latter only if TRY_WINDOW_CHECK_MARGINS is - set in FLAGS.) */ + redisplay or the dimensions of the desired matrix were found + insufficient, which makes re-adjusting glyph matrices necessary. + Value is -1 if point would appear in the scroll margins. (We check + the former only if TRY_WINDOW_IGNORE_FONTS_CHANGE is unset in + FLAGS, and the latter only if TRY_WINDOW_CHECK_MARGINS is set in + FLAGS.) + + Note that 'x-show-tip' invokes this function in a special way, and + in that case the return value of zero doesn't necessarily mean the + glyph matrices need to be re-adjusted, if the entire text of the + tooltip was processed and has its glyphs in the matrix's glyph + rows, i.e. if the dimensions of the matrix were found insufficient + while producing empty glyph rows beyond ZV. */ int try_window (Lisp_Object window, struct text_pos pos, int flags) |
