aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-09-03 04:08:49 +0000
committerKenichi Handa2002-09-03 04:08:49 +0000
commitd6f0c8e67f272b50bffeaa0b2eefab0f9dc3bd41 (patch)
tree19b0afc6c23fb002b356e8d77b778b4a3a35c0c1 /src
parentb9dbd42887fbf92d30cb36ff3859375b59fdcc70 (diff)
downloademacs-d6f0c8e67f272b50bffeaa0b2eefab0f9dc3bd41.tar.gz
emacs-d6f0c8e67f272b50bffeaa0b2eefab0f9dc3bd41.zip
(Fminibuffer_complete_word): Use the macro
FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 298aa6c8a5a..88113df57bb 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1967,22 +1967,14 @@ Return nil if there is no valid completion, else t. */)
1967 1967
1968 /* Now find first word-break in the stuff found by completion. 1968 /* Now find first word-break in the stuff found by completion.
1969 i gets index in string of where to stop completing. */ 1969 i gets index in string of where to stop completing. */
1970 { 1970 while (i_byte < STRING_BYTES (XSTRING (completion)))
1971 int len, c; 1971 {
1972 completion_string = XSTRING (completion)->data; 1972 int c;
1973 for (; i_byte < STRING_BYTES (XSTRING (completion)); i_byte += len, i++) 1973
1974 { 1974 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE (c, completion, i, i_byte);
1975 c = STRING_CHAR_AND_LENGTH (completion_string + i_byte, 1975 if (SYNTAX (c) != Sword)
1976 bytes - i_byte, 1976 break;
1977 len); 1977 }
1978 if (SYNTAX (c) != Sword)
1979 {
1980 i_byte += len;
1981 i++;
1982 break;
1983 }
1984 }
1985 }
1986 1978
1987 /* If got no characters, print help for user. */ 1979 /* If got no characters, print help for user. */
1988 1980