From 1fc66bcae50b13f2d62ff6ed4c2952cd93ebced5 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 26 Jun 2008 07:25:25 +0000 Subject: [PATCH] (handle_auto_composed_prop): Fix for the terminal case. --- src/ChangeLog | 4 ++++ src/xdisp.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4450763e1a9..158d00d9f0a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-06-26 Kenichi Handa + + * xdisp.c (handle_auto_composed_prop): Fix for the terminal case. + 2008-06-26 Dan Nicolaescu * unexnext.c: diff --git a/src/xdisp.c b/src/xdisp.c index ad2de16c7b5..430298aa444 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4588,7 +4588,7 @@ handle_auto_composed_prop (it) { enum prop_handled handled = HANDLED_NORMALLY; - if (FRAME_WINDOW_P (it->f) && FUNCTIONP (Vauto_composition_function)) + if (FUNCTIONP (Vauto_composition_function)) { Lisp_Object val = Qnil; EMACS_INT pos, limit = -1; @@ -4654,8 +4654,10 @@ handle_auto_composed_prop (it) int count = SPECPDL_INDEX (); Lisp_Object args[5]; - limit = font_range (pos, limit, FACE_FROM_ID (it->f, it->face_id), - it->f, it->string); + if (FRAME_WINDOW_P (it->f)) + limit = font_range (pos, limit, + FACE_FROM_ID (it->f, it->face_id), + it->f, it->string); args[0] = Vauto_composition_function; specbind (Qauto_composition_function, Qnil); args[1] = make_number (pos); -- 2.39.5