aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-28 11:23:02 +0200
committerEli Zaretskii2015-11-28 11:23:02 +0200
commit24703a0a89746feb3597d0ac2de65f0fabb7a2bc (patch)
tree5c2d8461f5d9f6561b67d685a94e58511f65b8c0 /lisp
parentf32c79dd0ee40b882a12d58d51294356e844c4dd (diff)
downloademacs-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')
-rw-r--r--lisp/replace.el14
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
317to be replaced will match a sequence of whitespace chars defined by the 317to be replaced will match a sequence of whitespace chars defined by the
318regexp in `search-whitespace-regexp'. 318regexp in `search-whitespace-regexp'.
319 319
320If `replace-character-fold' is non-nil, matching uses character folding,
321i.e. it ignores diacriticals and other differences between equivalent
322character strings.
323
320Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace 324Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace
321only matches surrounded by word boundaries. A negative prefix arg means 325only matches surrounded by word boundaries. A negative prefix arg means
322replace backward. 326replace backward.
@@ -375,6 +379,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp
375to be replaced will match a sequence of whitespace chars defined by the 379to be replaced will match a sequence of whitespace chars defined by the
376regexp in `search-whitespace-regexp'. 380regexp in `search-whitespace-regexp'.
377 381
382This function is not affected by `replace-character-fold'.
383
378Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace 384Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace
379only matches surrounded by word boundaries. A negative prefix arg means 385only matches surrounded by word boundaries. A negative prefix arg means
380replace backward. 386replace backward.
@@ -463,6 +469,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp
463to be replaced will match a sequence of whitespace chars defined by the 469to be replaced will match a sequence of whitespace chars defined by the
464regexp in `search-whitespace-regexp'. 470regexp in `search-whitespace-regexp'.
465 471
472This function is not affected by `replace-character-fold'.
473
466Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace 474Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace
467only matches that are surrounded by word boundaries. 475only matches that are surrounded by word boundaries.
468Fourth and fifth arg START and END specify the region to operate on." 476Fourth 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
554to be replaced will match a sequence of whitespace chars defined by the 562to be replaced will match a sequence of whitespace chars defined by the
555regexp in `search-whitespace-regexp'. 563regexp in `search-whitespace-regexp'.
556 564
565If `replace-character-fold' is non-nil, matching uses character folding,
566i.e. it ignores diacriticals and other differences between equivalent
567character strings.
568
557Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace 569Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace
558only matches surrounded by word boundaries. A negative prefix arg means 570only matches surrounded by word boundaries. A negative prefix arg means
559replace backward. 571replace backward.
@@ -605,6 +617,8 @@ If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp
605to be replaced will match a sequence of whitespace chars defined by the 617to be replaced will match a sequence of whitespace chars defined by the
606regexp in `search-whitespace-regexp'. 618regexp in `search-whitespace-regexp'.
607 619
620This function is not affected by `replace-character-fold'
621
608In Transient Mark mode, if the mark is active, operate on the contents 622In Transient Mark mode, if the mark is active, operate on the contents
609of the region. Otherwise, operate from point to the end of the buffer. 623of the region. Otherwise, operate from point to the end of the buffer.
610 624