aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el35
1 files changed, 21 insertions, 14 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 168ccf2f72a..f3a71f87fec 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -340,13 +340,17 @@ that reads FROM-STRING, or invoke replacements from
340incremental search with a key sequence like `C-s C-s M-%' 340incremental search with a key sequence like `C-s C-s M-%'
341to use its current search string as the string to replace. 341to use its current search string as the string to replace.
342 342
343Matching is independent of case if `case-fold-search' is non-nil and 343Matching is independent of case if both `case-fold-search'
344FROM-STRING has no uppercase letters. Replacement transfers the case 344and `search-upper-case' are non-nil and FROM-STRING has no
345pattern of the old text to the new text, if `case-replace' and 345uppercase letters; if `search-upper-case' is nil, then
346`case-fold-search' are non-nil and FROM-STRING has no uppercase 346whether matching ignores case depends on `case-fold-search'
347letters. (Transferring the case pattern means that if the old text 347regardless of whether there are uppercase letters in FROM-STRING.
348matched is all caps, or capitalized, then its replacement is upcased 348Replacement transfers the case pattern of the old text to the
349or capitalized.) 349new text, if both `case-fold-search' and `case-replace' are
350non-nil and FROM-STRING has no uppercase letters.
351\(Transferring the case pattern means that if the old text
352matched is all caps, or capitalized, then its replacement is
353respectively upcased or capitalized.)
350 354
351Ignore read-only matches if `query-replace-skip-read-only' is non-nil, 355Ignore read-only matches if `query-replace-skip-read-only' is non-nil,
352ignore hidden matches if `search-invisible' is nil, and ignore more 356ignore hidden matches if `search-invisible' is nil, and ignore more
@@ -402,13 +406,16 @@ that reads REGEXP, or invoke replacements from
402incremental search with a key sequence like `C-M-s C-M-s C-M-%' 406incremental search with a key sequence like `C-M-s C-M-s C-M-%'
403to use its current search regexp as the regexp to replace. 407to use its current search regexp as the regexp to replace.
404 408
405Matching is independent of case if `case-fold-search' is non-nil and 409Matching is independent of case if both `case-fold-search'
406REGEXP has no uppercase letters. Replacement transfers the case 410and `search-upper-case' are non-nil and REGEXP has no uppercase
407pattern of the old text to the new text, if `case-replace' and 411letters; if `search-upper-case' is nil, then whether matching
408`case-fold-search' are non-nil and REGEXP has no uppercase letters. 412ignores case depends on `case-fold-search' regardless of whether
409\(Transferring the case pattern means that if the old text matched is 413there are uppercase letters in REGEXP.
410all caps, or capitalized, then its replacement is upcased or 414Replacement transfers the case pattern of the old text to the new
411capitalized.) 415text, if both `case-fold-search' and `case-replace' are non-nil
416and REGEXP has no uppercase letters. (Transferring the case pattern
417means that if the old text matched is all caps, or capitalized,
418then its replacement is respectively upcased or capitalized.)
412 419
413Ignore read-only matches if `query-replace-skip-read-only' is non-nil, 420Ignore read-only matches if `query-replace-skip-read-only' is non-nil,
414ignore hidden matches if `search-invisible' is nil, and ignore more 421ignore hidden matches if `search-invisible' is nil, and ignore more