Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
026e8330
Commit
026e8330
authored
May 25, 1994
by
Richard M. Stallman
Browse files
(Freplace_match): Don't capitalize unless all matched words are capitalized.
parent
d7be4211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/search.c
src/search.c
+4
-1
No files found.
src/search.c
View file @
026e8330
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment