emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 058cc53ea7: ; * src/xdisp.c (try_window): Expand the commentary.


From: Eli Zaretskii
Subject: master 058cc53ea7: ; * src/xdisp.c (try_window): Expand the commentary. (Bug#56561)
Date: Sat, 16 Jul 2022 04:21:38 -0400 (EDT)

branch: master
commit 058cc53ea7778eeefaa72137b46cd7f7e83ce649
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * src/xdisp.c (try_window): Expand the commentary.  (Bug#56561)
---
 src/xdisp.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 1940d16a01..842277039d 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]