1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

; Fix last change in NEWS

This commit is contained in:
Eli Zaretskii 2016-03-10 12:17:02 +02:00
parent 83b2a20714
commit a7d6f39d8a

View File

@ -622,30 +622,31 @@ item as before.
** Search and Replace ** Search and Replace
+++ +++
*** `isearch' and `query-replace' can now perform character folding in *** `isearch' and `query-replace' can now perform character folding in matches.
matches. Character folding is enabled by customizing This is analogous to case folding, but instead of disregarding case
`search-default-mode' to the value `character-fold-to-regexp'. You variants, it disregards wider classes of distinctions between similar
can also toggle character folding in the middle of a search by typing
`M-s ''.
`query-replace' honors character folding this if the new variable
`replace-character-fold' is customized to a non-nil value. This is
analogous to case folding, but instead of disregarding case variants,
it disregards wider classes of distinctions between similar
characters. (Case folding is a special case of character folding.) characters. (Case folding is a special case of character folding.)
This means many characters in the search string will match entire This means many characters in the search string will match entire
groups of characters instead of just themselves. groups of characters instead of just themselves.
For instance, the " will match all variants of double quotes (like “ For instance, the ASCII double quote character " will match all
and ”), and the letter a will match all of its accented cousins, even variants of double quotes (like “ and ”), and the letter a will match
those composed of multiple characters, as well as many other symbols all of its accented cousins, even those composed of multiple
like ℀, ℁, ⒜, and ⓐ. characters, as well as many other symbols like ℀, ℁, ⒜, and ⓐ.
Character folding is enabled by customizing `search-default-mode' to
the value `character-fold-to-regexp'. You can also toggle character
folding in the middle of a search by typing `M-s ''.
`query-replace' honors character folding if the new variable
`replace-character-fold' is customized to a non-nil value.
+++ +++
*** New user option `search-default-mode'. *** New user option `search-default-mode'.
This option specifies the default mode for Isearch. The default This option specifies the default mode for Isearch. The default
value, nil specifies that Isearch does not fold characters when value, nil specifies that Isearch does literal searches (however,
searching. `case-fold-search' and `isearch-lax-whitespace' may still be applied,
as in previous Emacs versions).
+++ +++
*** New function `character-fold-to-regexp' can be used *** New function `character-fold-to-regexp' can be used