# HG changeset patch # User Richard M. Stallman # Date 769838010 0 # Node ID 6ad64419ba0853a2f39350e4b6b9fa1ee9c39912 # Parent c6d09116d66a4bc7b40426d6e5ce4e5ac2c03b8f (Freplace_match): Don't capitalize unless all matched words are capitalized. diff -r c6d09116d66a -r 6ad64419ba08 src/search.c --- a/src/search.c Wed May 25 02:39:20 1994 +0000 +++ b/src/search.c Wed May 25 03:53:30 1994 +0000 @@ -1235,7 +1235,10 @@ 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;