diff options
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/editfns.c | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a02d1473b4c..6cacc4576fb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | EMACS_INT, since callers assume the returned value fits in int. | 8 | EMACS_INT, since callers assume the returned value fits in int. |
| 9 | (upcase1): Likewise, for UPCASE_TABLE. | 9 | (upcase1): Likewise, for UPCASE_TABLE. |
| 10 | (uppercasep, lowercasep, upcase): New static inline functions. | 10 | (uppercasep, lowercasep, upcase): New static inline functions. |
| 11 | * editfns.c (Fchar_equal): Remove no-longer-needed workaround for | ||
| 12 | the race-condition problem the old DOWNCASE. | ||
| 11 | 13 | ||
| 12 | * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT): | 14 | * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT): |
| 13 | Rename locals to avoid shadowing. | 15 | Rename locals to avoid shadowing. |
diff --git a/src/editfns.c b/src/editfns.c index 59cf269ef7b..8d428eb4815 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -4222,9 +4222,6 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer. */) | |||
| 4222 | if (NILP (BVAR (current_buffer, case_fold_search))) | 4222 | if (NILP (BVAR (current_buffer, case_fold_search))) |
| 4223 | return Qnil; | 4223 | return Qnil; |
| 4224 | 4224 | ||
| 4225 | /* Do these in separate statements, | ||
| 4226 | then compare the variables. | ||
| 4227 | because of the way downcase uses temp variables. */ | ||
| 4228 | i1 = XFASTINT (c1); | 4225 | i1 = XFASTINT (c1); |
| 4229 | if (NILP (BVAR (current_buffer, enable_multibyte_characters)) | 4226 | if (NILP (BVAR (current_buffer, enable_multibyte_characters)) |
| 4230 | && ! ASCII_CHAR_P (i1)) | 4227 | && ! ASCII_CHAR_P (i1)) |
| @@ -4237,9 +4234,7 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer. */) | |||
| 4237 | { | 4234 | { |
| 4238 | MAKE_CHAR_MULTIBYTE (i2); | 4235 | MAKE_CHAR_MULTIBYTE (i2); |
| 4239 | } | 4236 | } |
| 4240 | i1 = downcase (i1); | 4237 | return (downcase (i1) == downcase (i2) ? Qt : Qnil); |
| 4241 | i2 = downcase (i2); | ||
| 4242 | return (i1 == i2 ? Qt : Qnil); | ||
| 4243 | } | 4238 | } |
| 4244 | 4239 | ||
| 4245 | /* Transpose the markers in two regions of the current buffer, and | 4240 | /* Transpose the markers in two regions of the current buffer, and |