diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/editfns.c b/src/editfns.c index bee3bbc2cdd..4618164d008 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2695,7 +2695,7 @@ called interactively, INHERIT is t. */) | |||
| 2695 | string[i] = str[i % len]; | 2695 | string[i] = str[i % len]; |
| 2696 | while (n > stringlen) | 2696 | while (n > stringlen) |
| 2697 | { | 2697 | { |
| 2698 | QUIT; | 2698 | maybe_quit (); |
| 2699 | if (!NILP (inherit)) | 2699 | if (!NILP (inherit)) |
| 2700 | insert_and_inherit (string, stringlen); | 2700 | insert_and_inherit (string, stringlen); |
| 2701 | else | 2701 | else |
| @@ -3060,8 +3060,6 @@ determines whether case is significant or ignored. */) | |||
| 3060 | characters, not just the bytes. */ | 3060 | characters, not just the bytes. */ |
| 3061 | int c1, c2; | 3061 | int c1, c2; |
| 3062 | 3062 | ||
| 3063 | QUIT; | ||
| 3064 | |||
| 3065 | if (! NILP (BVAR (bp1, enable_multibyte_characters))) | 3063 | if (! NILP (BVAR (bp1, enable_multibyte_characters))) |
| 3066 | { | 3064 | { |
| 3067 | c1 = BUF_FETCH_MULTIBYTE_CHAR (bp1, i1_byte); | 3065 | c1 = BUF_FETCH_MULTIBYTE_CHAR (bp1, i1_byte); |
| @@ -3093,12 +3091,12 @@ determines whether case is significant or ignored. */) | |||
| 3093 | c1 = char_table_translate (trt, c1); | 3091 | c1 = char_table_translate (trt, c1); |
| 3094 | c2 = char_table_translate (trt, c2); | 3092 | c2 = char_table_translate (trt, c2); |
| 3095 | } | 3093 | } |
| 3096 | if (c1 < c2) | 3094 | |
| 3097 | return make_number (- 1 - chars); | 3095 | if (c1 != c2) |
| 3098 | if (c1 > c2) | 3096 | return make_number (c1 < c2 ? -1 - chars : chars + 1); |
| 3099 | return make_number (chars + 1); | ||
| 3100 | 3097 | ||
| 3101 | chars++; | 3098 | chars++; |
| 3099 | rarely_quit (chars); | ||
| 3102 | } | 3100 | } |
| 3103 | 3101 | ||
| 3104 | /* The strings match as far as they go. | 3102 | /* The strings match as far as they go. |