diff options
| author | Richard M. Stallman | 1998-04-03 23:58:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-03 23:58:11 +0000 |
| commit | 24cef2618f45d8616044237c6dc642b89479442c (patch) | |
| tree | a58ae5fae08ca0261cdb2ef5c883d6f4ee7f5fc0 /src | |
| parent | c2e527be0b180325bfb4610a5c51bd5848370878 (diff) | |
| download | emacs-24cef2618f45d8616044237c6dc642b89479442c.tar.gz emacs-24cef2618f45d8616044237c6dc642b89479442c.zip | |
(set_intervals_multibyte): Function moved after set_intervals_multibyte_1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/intervals.c b/src/intervals.c index c5dad670926..370bca4a247 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -2115,21 +2115,6 @@ compare_string_intervals (s1, s2) | |||
| 2115 | return 1; | 2115 | return 1; |
| 2116 | } | 2116 | } |
| 2117 | 2117 | ||
| 2118 | static void set_intervals_multibyte_1 (INTERVAL, int, int, int, int, int); | ||
| 2119 | |||
| 2120 | /* Update the intervals of the current buffer | ||
| 2121 | to fit the contents as multibyte (if MULTI_FLAG is 1) | ||
| 2122 | or to fit them as non-multibyte (if MULTI_FLAG is 0). */ | ||
| 2123 | |||
| 2124 | void | ||
| 2125 | set_intervals_multibyte (multi_flag) | ||
| 2126 | int multi_flag; | ||
| 2127 | { | ||
| 2128 | if (BUF_INTERVALS (current_buffer)) | ||
| 2129 | set_intervals_multibyte_1 (BUF_INTERVALS (current_buffer), multi_flag, | ||
| 2130 | BEG, BEG_BYTE, Z, Z_BYTE); | ||
| 2131 | } | ||
| 2132 | |||
| 2133 | /* Recursively adjust interval I in the current buffer | 2118 | /* Recursively adjust interval I in the current buffer |
| 2134 | for setting enable_multibyte_characters to MULTI_FLAG. | 2119 | for setting enable_multibyte_characters to MULTI_FLAG. |
| 2135 | The range of interval I is START ... END in characters, | 2120 | The range of interval I is START ... END in characters, |
| @@ -2189,4 +2174,17 @@ set_intervals_multibyte_1 (i, multi_flag, start, start_byte, end, end_byte) | |||
| 2189 | } | 2174 | } |
| 2190 | } | 2175 | } |
| 2191 | 2176 | ||
| 2177 | /* Update the intervals of the current buffer | ||
| 2178 | to fit the contents as multibyte (if MULTI_FLAG is 1) | ||
| 2179 | or to fit them as non-multibyte (if MULTI_FLAG is 0). */ | ||
| 2180 | |||
| 2181 | void | ||
| 2182 | set_intervals_multibyte (multi_flag) | ||
| 2183 | int multi_flag; | ||
| 2184 | { | ||
| 2185 | if (BUF_INTERVALS (current_buffer)) | ||
| 2186 | set_intervals_multibyte_1 (BUF_INTERVALS (current_buffer), multi_flag, | ||
| 2187 | BEG, BEG_BYTE, Z, Z_BYTE); | ||
| 2188 | } | ||
| 2189 | |||
| 2192 | #endif /* USE_TEXT_PROPERTIES */ | 2190 | #endif /* USE_TEXT_PROPERTIES */ |