mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
Change how /etc/NEWS presents character folding
* NEWS: Note that character folding is no longer the default.
This commit is contained in:
parent
b417c5a3b3
commit
83b2a20714
31
etc/NEWS
31
etc/NEWS
@ -622,31 +622,30 @@ item as before.
|
|||||||
** Search and Replace
|
** Search and Replace
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** `isearch' and `query-replace' can now perform character folding in matches.
|
*** `isearch' and `query-replace' can now perform character folding in
|
||||||
Isearch does that by default, while `query-replace' will do that if
|
matches. Character folding is enabled by customizing
|
||||||
the new variable `replace-character-fold' is customized to a non-nil
|
`search-default-mode' to the value `character-fold-to-regexp'. You
|
||||||
value. This is analogous to case folding, but instead of disregarding
|
can also toggle character folding in the middle of a search by typing
|
||||||
case variants, it disregards wider classes of distinctions between
|
`M-s ''.
|
||||||
similar characters. (Case folding is a special case of character
|
|
||||||
folding.) This means many characters in the search string will match
|
`query-replace' honors character folding this if the new variable
|
||||||
entire groups of characters instead of just themselves.
|
`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.)
|
||||||
|
This means many characters in the search string will match entire
|
||||||
|
groups of characters instead of just themselves.
|
||||||
|
|
||||||
For instance, the " will match all variants of double quotes (like “
|
For instance, the " will match all variants of double quotes (like “
|
||||||
and ”), and the letter a will match all of its accented cousins, even
|
and ”), and the letter a will match all of its accented cousins, even
|
||||||
those composed of multiple characters, as well as many other symbols
|
those composed of multiple characters, as well as many other symbols
|
||||||
like ℀, ℁, ⒜, and ⓐ.
|
like ℀, ℁, ⒜, and ⓐ.
|
||||||
|
|
||||||
Character folding is enabled by customizing `search-default-mode' to
|
|
||||||
the value `character-fold-to-regexp'. If you want to turn character
|
|
||||||
folding off, customize the value of `search-default-mode' to the `nil'
|
|
||||||
value. You can also toggle character folding in the middle of a
|
|
||||||
search by typing `M-s ''.
|
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** 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, `character-fold-to-regexp' specifies that Isearch should fold
|
value, nil specifies that Isearch does not fold characters when
|
||||||
characters when searching.
|
searching.
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** New function `character-fold-to-regexp' can be used
|
*** New function `character-fold-to-regexp' can be used
|
||||||
|
Loading…
Reference in New Issue
Block a user