diff options
| author | Kim F. Storm | 2006-06-13 22:45:21 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-06-13 22:45:21 +0000 |
| commit | 946a79d0f7c71262aec6db474cac6050c4c29b7c (patch) | |
| tree | 5cc6d643e5724589726cb7bf67180cad829462ef /src | |
| parent | 79595fa45e8c58e2ae7ec74909f93532e9f92bf9 (diff) | |
| download | emacs-946a79d0f7c71262aec6db474cac6050c4c29b7c.tar.gz emacs-946a79d0f7c71262aec6db474cac6050c4c29b7c.zip | |
(IT_STACK_SIZE): New macro specifying size of
iterator stack (instead of hardcoded number). Increase from 2 to 4
to make room for propertized overlay strings before and after a
display string, image or composition.
(struct it): Add image_id and method members to iterator stack.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 6654e8beb5a..e975a1676e2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1819,6 +1819,8 @@ enum it_method { | |||
| 1819 | NUM_IT_METHODS | 1819 | NUM_IT_METHODS |
| 1820 | }; | 1820 | }; |
| 1821 | 1821 | ||
| 1822 | #define IT_STACK_SIZE 4 | ||
| 1823 | |||
| 1822 | struct it | 1824 | struct it |
| 1823 | { | 1825 | { |
| 1824 | /* The window in which we iterate over current_buffer (or a string). */ | 1826 | /* The window in which we iterate over current_buffer (or a string). */ |
| @@ -1930,10 +1932,12 @@ struct it | |||
| 1930 | int stop_charpos; | 1932 | int stop_charpos; |
| 1931 | int face_id; | 1933 | int face_id; |
| 1932 | Lisp_Object string; | 1934 | Lisp_Object string; |
| 1935 | int image_id; | ||
| 1933 | struct display_pos pos; | 1936 | struct display_pos pos; |
| 1934 | int end_charpos; | 1937 | int end_charpos; |
| 1935 | int string_nchars; | 1938 | int string_nchars; |
| 1936 | enum glyph_row_area area; | 1939 | enum glyph_row_area area; |
| 1940 | enum it_method method; | ||
| 1937 | unsigned multibyte_p : 1; | 1941 | unsigned multibyte_p : 1; |
| 1938 | unsigned string_from_display_prop_p : 1; | 1942 | unsigned string_from_display_prop_p : 1; |
| 1939 | unsigned display_ellipsis_p : 1; | 1943 | unsigned display_ellipsis_p : 1; |
| @@ -1942,7 +1946,7 @@ struct it | |||
| 1942 | short voffset; | 1946 | short voffset; |
| 1943 | Lisp_Object font_height; | 1947 | Lisp_Object font_height; |
| 1944 | } | 1948 | } |
| 1945 | stack[2]; | 1949 | stack[IT_STACK_SIZE]; |
| 1946 | 1950 | ||
| 1947 | /* Stack pointer. */ | 1951 | /* Stack pointer. */ |
| 1948 | int sp; | 1952 | int sp; |