Don't abort try_window with fonts change when showing tooltip (Bug#2423).
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 10 Apr 2010 10:52:30 +0000 (19:52 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 10 Apr 2010 10:52:30 +0000 (19:52 +0900)
commit6eff5c3dcd268cbc740ad9b89112203aad2a9756
tree30da7e203a86191266f1cb6732dd7ea91f6d869c
parent5634ff8508021cf03ce07709d992aff98d33902e
Don't abort try_window with fonts change when showing tooltip (Bug#2423).

* dispextern.h (TRY_WINDOW_CHECK_MARGINS)
(TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.

* xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
TRY_WINDOW_CHECK_MARGINS.

* xfns.c (Fx_show_tip): Call try_window with TRY_WINDOW_IGNORE_FONTS_CHANGE.
src/ChangeLog
src/dispextern.h
src/xdisp.c
src/xfns.c