diff options
| author | Kenichi Handa | 2008-06-26 07:25:25 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-06-26 07:25:25 +0000 |
| commit | 1fc66bcae50b13f2d62ff6ed4c2952cd93ebced5 (patch) | |
| tree | 6f0ef28f43df6f0bb3bc02cb5872a4e65b6b44f9 /src | |
| parent | c123f7fe96ddd7d453cb124eec16b481ef285dd2 (diff) | |
| download | emacs-1fc66bcae50b13f2d62ff6ed4c2952cd93ebced5.tar.gz emacs-1fc66bcae50b13f2d62ff6ed4c2952cd93ebced5.zip | |
(handle_auto_composed_prop): Fix for the terminal case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 2008-06-26 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * xdisp.c (handle_auto_composed_prop): Fix for the terminal case. | ||
| 4 | |||
| 1 | 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * unexnext.c: | 7 | * 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) | |||
| 4588 | { | 4588 | { |
| 4589 | enum prop_handled handled = HANDLED_NORMALLY; | 4589 | enum prop_handled handled = HANDLED_NORMALLY; |
| 4590 | 4590 | ||
| 4591 | if (FRAME_WINDOW_P (it->f) && FUNCTIONP (Vauto_composition_function)) | 4591 | if (FUNCTIONP (Vauto_composition_function)) |
| 4592 | { | 4592 | { |
| 4593 | Lisp_Object val = Qnil; | 4593 | Lisp_Object val = Qnil; |
| 4594 | EMACS_INT pos, limit = -1; | 4594 | EMACS_INT pos, limit = -1; |
| @@ -4654,8 +4654,10 @@ handle_auto_composed_prop (it) | |||
| 4654 | int count = SPECPDL_INDEX (); | 4654 | int count = SPECPDL_INDEX (); |
| 4655 | Lisp_Object args[5]; | 4655 | Lisp_Object args[5]; |
| 4656 | 4656 | ||
| 4657 | limit = font_range (pos, limit, FACE_FROM_ID (it->f, it->face_id), | 4657 | if (FRAME_WINDOW_P (it->f)) |
| 4658 | it->f, it->string); | 4658 | limit = font_range (pos, limit, |
| 4659 | FACE_FROM_ID (it->f, it->face_id), | ||
| 4660 | it->f, it->string); | ||
| 4659 | args[0] = Vauto_composition_function; | 4661 | args[0] = Vauto_composition_function; |
| 4660 | specbind (Qauto_composition_function, Qnil); | 4662 | specbind (Qauto_composition_function, Qnil); |
| 4661 | args[1] = make_number (pos); | 4663 | args[1] = make_number (pos); |