aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorNickolas Lloyd2017-02-01 22:31:55 -0500
committerNickolas Lloyd2017-02-01 22:31:55 -0500
commit9a15b5509abb49a11c97c1101ad216f4ef258368 (patch)
tree7311337d92833cb8f233eaa696a967a15a306a80 /src/editfns.c
parent5d8f2548ceaa5a0b33c08a39f1d6c11071ec63aa (diff)
parent70d36dda26465b43c1a63e8e13153e070af86456 (diff)
downloademacs-nick.lloyd-bytecode-jit.tar.gz
emacs-nick.lloyd-bytecode-jit.zip
Merge branch 'master' into nick.lloyd-bytecode-jitnick.lloyd-bytecode-jit
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)