diff options
| author | Eli Zaretskii | 2022-07-16 11:21:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-07-16 11:21:05 +0300 |
| commit | 058cc53ea7778eeefaa72137b46cd7f7e83ce649 (patch) | |
| tree | 6b8c208e1fa436099e316a578ba8faebc493e36a | |
| parent | 9699eaf8af0e9e79e9b4ebd51e23ab81ec90903c (diff) | |
| download | emacs-058cc53ea7778eeefaa72137b46cd7f7e83ce649.tar.gz emacs-058cc53ea7778eeefaa72137b46cd7f7e83ce649.zip | |
; * src/xdisp.c (try_window): Expand the commentary. (Bug#56561)
| -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) | |||
| 20171 | buffer position POS. | 20171 | buffer position POS. |
| 20172 | 20172 | ||
| 20173 | Value is 1 if successful. It is zero if fonts were loaded during | 20173 | Value is 1 if successful. It is zero if fonts were loaded during |
| 20174 | redisplay which makes re-adjusting glyph matrices necessary, and -1 | 20174 | redisplay or the dimensions of the desired matrix were found |
| 20175 | if point would appear in the scroll margins. | 20175 | insufficient, which makes re-adjusting glyph matrices necessary. |
| 20176 | (We check the former only if TRY_WINDOW_IGNORE_FONTS_CHANGE is | 20176 | Value is -1 if point would appear in the scroll margins. (We check |
| 20177 | unset in FLAGS, and the latter only if TRY_WINDOW_CHECK_MARGINS is | 20177 | the former only if TRY_WINDOW_IGNORE_FONTS_CHANGE is unset in |
| 20178 | set in FLAGS.) */ | 20178 | FLAGS, and the latter only if TRY_WINDOW_CHECK_MARGINS is set in |
| 20179 | FLAGS.) | ||
| 20180 | |||
| 20181 | Note that 'x-show-tip' invokes this function in a special way, and | ||
| 20182 | in that case the return value of zero doesn't necessarily mean the | ||
| 20183 | glyph matrices need to be re-adjusted, if the entire text of the | ||
| 20184 | tooltip was processed and has its glyphs in the matrix's glyph | ||
| 20185 | rows, i.e. if the dimensions of the matrix were found insufficient | ||
| 20186 | while producing empty glyph rows beyond ZV. */ | ||
| 20179 | 20187 | ||
| 20180 | int | 20188 | int |
| 20181 | try_window (Lisp_Object window, struct text_pos pos, int flags) | 20189 | try_window (Lisp_Object window, struct text_pos pos, int flags) |