]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_auto_composed_prop): Fix for the terminal case.
authorKenichi Handa <handa@m17n.org>
Thu, 26 Jun 2008 07:25:25 +0000 (07:25 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 26 Jun 2008 07:25:25 +0000 (07:25 +0000)
src/ChangeLog
src/xdisp.c

index 4450763e1a96c64b4e72665d6ce8f801fcd04486..158d00d9f0a80c8b4a338d65b282ec786a88e545 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-26  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
+
 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * unexnext.c:
index ad2de16c7b58fcc147763fdb71493f929a9c53f6..430298aa444ca53ca53d5686f354aff355fe67c0 100644 (file)
@@ -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);