diff options
author | Po Lu <luangruo@yahoo.com> | 2021-12-18 18:48:11 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-12-18 19:16:16 +0800 |
commit | 43c4cc2ea29fa93de17d35e9cce4949eae171c45 (patch) | |
tree | b66c52d80819c53bf8487c517224be2de757af6d /src/w32fns.c | |
parent | 3fea95b79f7a80fc84f0aee38e1f31234ed7c657 (diff) | |
download | emacs-43c4cc2ea29fa93de17d35e9cce4949eae171c45.tar.gz |
Add new argument `ignore-line-at-end' to `window-text-pixel-size'
* doc/lispref/display.texi (Size of Displayed Text): Update
documentation.
* etc/NEWS: Announce new argument.
* src/xdisp.c (window_text_pixel_size): Allow controlling if
the iterator's ascent and descent will be appended to the
pixel height returned. All callers changed.
(Fwindow_text_pixel_size): New argument `ignore-line-at-end'.
All callers changed.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 65463b52616..02a6d78b51c 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -7525,7 +7525,8 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, try_window (window, pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); /* Calculate size of tooltip window. */ size = Fwindow_text_pixel_size (window, Qnil, Qnil, Qnil, - make_fixnum (w->pixel_height), Qnil); + make_fixnum (w->pixel_height), Qnil, + Qnil); /* Add the frame's internal border to calculated size. */ width = XFIXNUM (Fcar (size)) + 2 * FRAME_INTERNAL_BORDER_WIDTH (tip_f); height = XFIXNUM (Fcdr (size)) + 2 * FRAME_INTERNAL_BORDER_WIDTH (tip_f); |