]> git.eshelyaron.com Git - emacs.git/commitdiff
(Freplace_match): Don't capitalize unless all matched words are capitalized.
authorRichard M. Stallman <rms@gnu.org>
Wed, 25 May 1994 03:53:30 +0000 (03:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 25 May 1994 03:53:30 +0000 (03:53 +0000)
src/search.c

index 7819f1a81904f3a66e7d7418c8fd802f60815f22..2ac8d14e0b072720fbb81d9bb8bf9d93ffbb511a 100644 (file)
@@ -1235,7 +1235,10 @@ Leaves point at end of replacement text.")
       if (! some_lowercase && some_multiletter_word)
        case_action = all_caps;
       /* Capitalize each word, if the old text has all capitalized words.  */
-      else if (!some_lowercase_initial && some_multiletter_word)
+      /* We used to insist on some_multiletter_word here,
+        but that screwed query replacing x with y, acting on X.
+        Even what we have now is more strict than what 19.22 had.  */
+      else if (!some_lowercase_initial)
        case_action = cap_initial;
       else
        case_action = nochange;