diff options
| author | Joakim Verona | 2013-02-14 00:04:38 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-14 00:04:38 +0100 |
| commit | 694d759a9dd8fcbd23078bab33f84ff399d58971 (patch) | |
| tree | 7b9f2b697ffa06f315be78cd84b94d84659d02c2 /src/composite.c | |
| parent | e46029ad6dda065541c8de40de0fe9d5800ac770 (diff) | |
| parent | fe3362617385f936576ba0acdac66e2f7da38391 (diff) | |
| download | emacs-694d759a9dd8fcbd23078bab33f84ff399d58971.tar.gz emacs-694d759a9dd8fcbd23078bab33f84ff399d58971.zip | |
auto upstream
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/composite.c b/src/composite.c index 54cebc00eb7..9bbd4550c7b 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -642,13 +642,7 @@ compose_text (ptrdiff_t start, ptrdiff_t end, Lisp_Object components, | |||
| 642 | Qcomposition, prop, string); | 642 | Qcomposition, prop, string); |
| 643 | } | 643 | } |
| 644 | 644 | ||
| 645 | 645 | /* Lisp glyph-string handlers. */ | |
| 646 | static Lisp_Object autocmp_chars (Lisp_Object, ptrdiff_t, ptrdiff_t, | ||
| 647 | ptrdiff_t, struct window *, | ||
| 648 | struct face *, Lisp_Object); | ||
| 649 | |||
| 650 | |||
| 651 | /* Lisp glyph-string handlers */ | ||
| 652 | 646 | ||
| 653 | /* Hash table for automatic composition. The key is a header of a | 647 | /* Hash table for automatic composition. The key is a header of a |
| 654 | lgstring (Lispy glyph-string), and the value is a body of a | 648 | lgstring (Lispy glyph-string), and the value is a body of a |
| @@ -905,7 +899,9 @@ fill_gstring_body (Lisp_Object gstring) | |||
| 905 | object. Otherwise return nil. */ | 899 | object. Otherwise return nil. */ |
| 906 | 900 | ||
| 907 | static Lisp_Object | 901 | static Lisp_Object |
| 908 | autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t limit, struct window *win, struct face *face, Lisp_Object string) | 902 | autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, |
| 903 | ptrdiff_t limit, struct window *win, struct face *face, | ||
| 904 | Lisp_Object string) | ||
| 909 | { | 905 | { |
| 910 | ptrdiff_t count = SPECPDL_INDEX (); | 906 | ptrdiff_t count = SPECPDL_INDEX (); |
| 911 | FRAME_PTR f = XFRAME (win->frame); | 907 | FRAME_PTR f = XFRAME (win->frame); |
| @@ -935,7 +931,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t | |||
| 935 | #ifdef HAVE_WINDOW_SYSTEM | 931 | #ifdef HAVE_WINDOW_SYSTEM |
| 936 | if (FRAME_WINDOW_P (f)) | 932 | if (FRAME_WINDOW_P (f)) |
| 937 | { | 933 | { |
| 938 | font_object = font_range (charpos, &to, win, face, string); | 934 | font_object = font_range (charpos, bytepos, &to, win, face, string); |
| 939 | if (! FONT_OBJECT_P (font_object) | 935 | if (! FONT_OBJECT_P (font_object) |
| 940 | || (! NILP (re) | 936 | || (! NILP (re) |
| 941 | && to < limit | 937 | && to < limit |