]> git.eshelyaron.com Git - emacs.git/commitdiff
* editfns.c (Fchar_equal): Remove no-longer-needed workaround for
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 21:23:02 +0000 (14:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 21:23:02 +0000 (14:23 -0700)
the race-condition problem the old DOWNCASE.

src/ChangeLog
src/editfns.c

index a02d1473b4cd69b67e1bbd15ba41d434fae27500..6cacc4576fbcad130fbe58c89b7cad76ba897f2b 100644 (file)
@@ -8,6 +8,8 @@
        EMACS_INT, since callers assume the returned value fits in int.
        (upcase1): Likewise, for UPCASE_TABLE.
        (uppercasep, lowercasep, upcase): New static inline functions.
+       * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
+       the race-condition problem the old DOWNCASE.
 
        * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
        Rename locals to avoid shadowing.
index 59cf269ef7b7c9126a6b47d7c854006c64417814..8d428eb4815400eb736d609424d349600e1a050d 100644 (file)
@@ -4222,9 +4222,6 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer.  */)
   if (NILP (BVAR (current_buffer, case_fold_search)))
     return Qnil;
 
-  /* Do these in separate statements,
-     then compare the variables.
-     because of the way downcase uses temp variables.  */
   i1 = XFASTINT (c1);
   if (NILP (BVAR (current_buffer, enable_multibyte_characters))
       && ! ASCII_CHAR_P (i1))
@@ -4237,9 +4234,7 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer.  */)
     {
       MAKE_CHAR_MULTIBYTE (i2);
     }
-  i1 = downcase (i1);
-  i2 = downcase (i2);
-  return (i1 == i2 ? Qt :  Qnil);
+  return (downcase (i1) == downcase (i2) ? Qt :  Qnil);
 }
 \f
 /* Transpose the markers in two regions of the current buffer, and