Mercurial > emacs
changeset 7673:6ad64419ba08
(Freplace_match): Don't capitalize unless all matched words are capitalized.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 25 May 1994 03:53:30 +0000 |
parents | c6d09116d66a |
children | 947d24fefd9e |
files | src/search.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;