aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 82c6abb9987..4618164d008 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3053,7 +3053,6 @@ determines whether case is significant or ignored. */)
3053 i2 = begp2; 3053 i2 = begp2;
3054 i1_byte = buf_charpos_to_bytepos (bp1, i1); 3054 i1_byte = buf_charpos_to_bytepos (bp1, i1);
3055 i2_byte = buf_charpos_to_bytepos (bp2, i2); 3055 i2_byte = buf_charpos_to_bytepos (bp2, i2);
3056 immediate_quit = true;
3057 3056
3058 while (i1 < endp1 && i2 < endp2) 3057 while (i1 < endp1 && i2 < endp2)
3059 { 3058 {
@@ -3092,17 +3091,14 @@ determines whether case is significant or ignored. */)
3092 c1 = char_table_translate (trt, c1); 3091 c1 = char_table_translate (trt, c1);
3093 c2 = char_table_translate (trt, c2); 3092 c2 = char_table_translate (trt, c2);
3094 } 3093 }
3094
3095 if (c1 != c2) 3095 if (c1 != c2)
3096 { 3096 return make_number (c1 < c2 ? -1 - chars : chars + 1);
3097 immediate_quit = false;
3098 return make_number (c1 < c2 ? -1 - chars : chars + 1);
3099 }
3100 3097
3101 chars++; 3098 chars++;
3099 rarely_quit (chars);
3102 } 3100 }
3103 3101
3104 immediate_quit = false;
3105
3106 /* The strings match as far as they go. 3102 /* The strings match as far as they go.
3107 If one is shorter, that one is less. */ 3103 If one is shorter, that one is less. */
3108 if (chars < endp1 - begp1) 3104 if (chars < endp1 - begp1)