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