Mercurial > emacs
comparison src/composite.c @ 102726:93ad3a5a4f75
Fix typo in comment.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Wed, 25 Mar 2009 11:58:43 +0000 |
parents | 1127170a5c39 |
children | 68dd71358159 |
comparison
equal
deleted
inserted
replaced
102725:c08db43b04df | 102726:93ad3a5a4f75 |
---|---|
692 for (i = 0; i < len; i++) | 692 for (i = 0; i < len; i++) |
693 if (NILP (LGSTRING_GLYPH (gstring, i))) | 693 if (NILP (LGSTRING_GLYPH (gstring, i))) |
694 break; | 694 break; |
695 len = i; | 695 len = i; |
696 } | 696 } |
697 | 697 |
698 copy = Fmake_vector (make_number (len + 2), Qnil); | 698 copy = Fmake_vector (make_number (len + 2), Qnil); |
699 LGSTRING_SET_HEADER (copy, Fcopy_sequence (header)); | 699 LGSTRING_SET_HEADER (copy, Fcopy_sequence (header)); |
700 for (i = 0; i < len; i++) | 700 for (i = 0; i < len; i++) |
701 LGSTRING_SET_GLYPH (copy, i, Fcopy_sequence (LGSTRING_GLYPH (gstring, i))); | 701 LGSTRING_SET_GLYPH (copy, i, Fcopy_sequence (LGSTRING_GLYPH (gstring, i))); |
702 i = hash_put (h, LGSTRING_HEADER (copy), copy, hash); | 702 i = hash_put (h, LGSTRING_HEADER (copy), copy, hash); |
912 LGSTRING_SET_GLYPH (gstring, i, Qnil); | 912 LGSTRING_SET_GLYPH (gstring, i, Qnil); |
913 } | 913 } |
914 | 914 |
915 | 915 |
916 /* Try to compose the characters at CHARPOS according to CFT_ELEMENT | 916 /* Try to compose the characters at CHARPOS according to CFT_ELEMENT |
917 which is an element of composition-fucntion-table (which see). | 917 which is an element of composition-function-table (which see). |
918 LIMIT limits the characters to compose. STRING, if not nil, is a | 918 LIMIT limits the characters to compose. STRING, if not nil, is a |
919 target string. WIN is a window where the characters are being | 919 target string. WIN is a window where the characters are being |
920 displayed. */ | 920 displayed. */ |
921 | 921 |
922 static Lisp_Object | 922 static Lisp_Object |
930 int count = SPECPDL_INDEX (); | 930 int count = SPECPDL_INDEX (); |
931 FRAME_PTR f = XFRAME (win->frame); | 931 FRAME_PTR f = XFRAME (win->frame); |
932 Lisp_Object pos = make_number (charpos); | 932 Lisp_Object pos = make_number (charpos); |
933 EMACS_INT pt = PT, pt_byte = PT_BYTE; | 933 EMACS_INT pt = PT, pt_byte = PT_BYTE; |
934 int lookback; | 934 int lookback; |
935 | 935 |
936 record_unwind_save_match_data (); | 936 record_unwind_save_match_data (); |
937 for (lookback = -1; CONSP (cft_element); cft_element = XCDR (cft_element)) | 937 for (lookback = -1; CONSP (cft_element); cft_element = XCDR (cft_element)) |
938 { | 938 { |
939 Lisp_Object elt = XCAR (cft_element); | 939 Lisp_Object elt = XCAR (cft_element); |
940 Lisp_Object re; | 940 Lisp_Object re; |
1374 if (! NILP (val)) | 1374 if (! NILP (val)) |
1375 check_val = val, check = cur; | 1375 check_val = val, check = cur; |
1376 } | 1376 } |
1377 prev = cur; | 1377 prev = cur; |
1378 /* Now search forward. */ | 1378 /* Now search forward. */ |
1379 search_forward: | 1379 search_forward: |
1380 *gstring = Qnil; | 1380 *gstring = Qnil; |
1381 if (! NILP (check_val) || limit >= orig.pos) | 1381 if (! NILP (check_val) || limit >= orig.pos) |
1382 { | 1382 { |
1383 if (NILP (check_val)) | 1383 if (NILP (check_val)) |
1384 cur = orig; | 1384 cur = orig; |