diff options
| author | Eli Zaretskii | 2015-11-28 11:23:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-28 11:23:02 +0200 |
| commit | 24703a0a89746feb3597d0ac2de65f0fabb7a2bc (patch) | |
| tree | 5c2d8461f5d9f6561b67d685a94e58511f65b8c0 /lisp/replace.el | |
| parent | f32c79dd0ee40b882a12d58d51294356e844c4dd (diff) | |
| download | emacs-24703a0a89746feb3597d0ac2de65f0fabb7a2bc.tar.gz emacs-24703a0a89746feb3597d0ac2de65f0fabb7a2bc.zip | |
Improve documentation of search and replace commands
* doc/emacs/search.texi (Replacement and Lax Matches): Document
which commands are affected by 'replace-character-fold'.
(Lax Search): Add a cross reference to "Replacement and Lax
Matches". Improve wording. Fix lost extra whitespace.
(Search Customizations): Improve wording. (Bug#22036)
See also comments in
http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02376.html.
* lisp/replace.el (query-replace, query-replace-regexp)
(query-replace-regexp-eval, replace-string, replace-regexp):
Mention 'replace-character-fold' in the doc strings.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index b0a14e3f44c..76f8d312c7c 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -317,6 +317,10 @@ If `replace-lax-whitespace' is non-nil, a space or spaces in the string | |||
| 317 | to be replaced will match a sequence of whitespace chars defined by the | 317 | to be replaced will match a sequence of whitespace chars defined by the |
| 318 | regexp in `search-whitespace-regexp'. | 318 | regexp in `search-whitespace-regexp'. |
| 319 | 319 | ||
| 320 | If `replace-character-fold' is non-nil, matching uses character folding, | ||
| 321 | i.e. it ignores diacriticals and other differences between equivalent | ||
| 322 | character strings. | ||
| 323 | |||
| 320 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace | 324 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace |
| 321 | only matches surrounded by word boundaries. A negative prefix arg means | 325 | only matches surrounded by word boundaries. A negative prefix arg means |
| 322 | replace backward. | 326 | replace backward. |
| @@ -375,6 +379,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp | |||
| 375 | to be replaced will match a sequence of whitespace chars defined by the | 379 | to be replaced will match a sequence of whitespace chars defined by the |
| 376 | regexp in `search-whitespace-regexp'. | 380 | regexp in `search-whitespace-regexp'. |
| 377 | 381 | ||
| 382 | This function is not affected by `replace-character-fold'. | ||
| 383 | |||
| 378 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace | 384 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace |
| 379 | only matches surrounded by word boundaries. A negative prefix arg means | 385 | only matches surrounded by word boundaries. A negative prefix arg means |
| 380 | replace backward. | 386 | replace backward. |
| @@ -463,6 +469,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp | |||
| 463 | to be replaced will match a sequence of whitespace chars defined by the | 469 | to be replaced will match a sequence of whitespace chars defined by the |
| 464 | regexp in `search-whitespace-regexp'. | 470 | regexp in `search-whitespace-regexp'. |
| 465 | 471 | ||
| 472 | This function is not affected by `replace-character-fold'. | ||
| 473 | |||
| 466 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace | 474 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace |
| 467 | only matches that are surrounded by word boundaries. | 475 | only matches that are surrounded by word boundaries. |
| 468 | Fourth and fifth arg START and END specify the region to operate on." | 476 | Fourth and fifth arg START and END specify the region to operate on." |
| @@ -554,6 +562,10 @@ If `replace-lax-whitespace' is non-nil, a space or spaces in the string | |||
| 554 | to be replaced will match a sequence of whitespace chars defined by the | 562 | to be replaced will match a sequence of whitespace chars defined by the |
| 555 | regexp in `search-whitespace-regexp'. | 563 | regexp in `search-whitespace-regexp'. |
| 556 | 564 | ||
| 565 | If `replace-character-fold' is non-nil, matching uses character folding, | ||
| 566 | i.e. it ignores diacriticals and other differences between equivalent | ||
| 567 | character strings. | ||
| 568 | |||
| 557 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace | 569 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace |
| 558 | only matches surrounded by word boundaries. A negative prefix arg means | 570 | only matches surrounded by word boundaries. A negative prefix arg means |
| 559 | replace backward. | 571 | replace backward. |
| @@ -605,6 +617,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp | |||
| 605 | to be replaced will match a sequence of whitespace chars defined by the | 617 | to be replaced will match a sequence of whitespace chars defined by the |
| 606 | regexp in `search-whitespace-regexp'. | 618 | regexp in `search-whitespace-regexp'. |
| 607 | 619 | ||
| 620 | This function is not affected by `replace-character-fold' | ||
| 621 | |||
| 608 | In Transient Mark mode, if the mark is active, operate on the contents | 622 | In Transient Mark mode, if the mark is active, operate on the contents |
| 609 | of the region. Otherwise, operate from point to the end of the buffer. | 623 | of the region. Otherwise, operate from point to the end of the buffer. |
| 610 | 624 | ||