diff options
author | Martin Rudalics <rudalics@gmx.at> | 2016-03-08 08:51:38 +0100 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2016-03-08 08:51:38 +0100 |
commit | 80864c2a04597d31ba453c9af69d35b15c4e1e24 (patch) | |
tree | 1cbfcba4d5bbb9008014c4a89df2b2aad4d891c2 /lisp/emacs-lisp/pp.el | |
parent | 59c7a5d71145d88933a535e222bdf30105e7d382 (diff) | |
download | emacs-80864c2a04597d31ba453c9af69d35b15c4e1e24.tar.gz emacs-80864c2a04597d31ba453c9af69d35b15c4e1e24.tar.bz2 emacs-80864c2a04597d31ba453c9af69d35b15c4e1e24.zip |
Optionally reuse tooltip frames instead of deleting/recreating them.
* src/frame.c (tooltip_reuse_hidden_frame): New option.
* src/w32fns.c (x_create_tip_frame): Remove argument TEXT. Fix
handling of dividers.
(x_hide_tip): New function.
(Fx_show_tip): Try to reuse old tooltip frame when
`tooltip-reuse-hidden-frame' is non-nil and frame parameters
have not changed. Insert STRING here instead of passing it to
x_create_tip_frame. Compute size of tooltip window with
Fwindow_text_pixel_size. Obey Vw32_tooltip_extra_pixels when
padding tooltip window.
(Fx_hide_tip): Call x_hide_tip.
(Vw32_tooltip_extra_pixels): New variable.
* src/xdisp.c (Fwindow_text_pixel_size): Don't return negative y
value. Fix doc-string.
* src/xfns.c (x_create_tip_frame): Remove argument TEXT. Call
make_frame with mini_p argument false.
(x_hide_tip): New function.
(Fx_show_tip): Try to reuse old tooltip frame when
`tooltip-reuse-hidden-frame' is non-nil and frame parameters
have not changed. Insert STRING here instead of passing it to
x_create_tip_frame. Compute size of tooltip window with
Fwindow_text_pixel_size.
(Fx_hide_tip): Call x_hide_tip.
* lisp/cus-start.el (tooltip-reuse-hidden-frame): Add
customization entry.
Diffstat (limited to 'lisp/emacs-lisp/pp.el')
0 files changed, 0 insertions, 0 deletions