diff options
| author | Eli Zaretskii | 2016-03-10 12:17:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-03-10 12:17:02 +0200 |
| commit | a7d6f39d8a291ba78b7605f0e841e2751dfe5e11 (patch) | |
| tree | da65728cec8706ce3a6c8b4a436077b286017be6 /etc | |
| parent | 83b2a2071460b7aa0d4460fec3d900a75ee51d9c (diff) | |
| download | emacs-a7d6f39d8a291ba78b7605f0e841e2751dfe5e11.tar.gz emacs-a7d6f39d8a291ba78b7605f0e841e2751dfe5e11.zip | |
; Fix last change in NEWS
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 33 |
1 files changed, 17 insertions, 16 deletions
| @@ -622,30 +622,31 @@ item as before. | |||
| 622 | ** Search and Replace | 622 | ** Search and Replace |
| 623 | 623 | ||
| 624 | +++ | 624 | +++ |
| 625 | *** `isearch' and `query-replace' can now perform character folding in | 625 | *** `isearch' and `query-replace' can now perform character folding in matches. |
| 626 | matches. Character folding is enabled by customizing | 626 | This is analogous to case folding, but instead of disregarding case |
| 627 | `search-default-mode' to the value `character-fold-to-regexp'. You | 627 | variants, it disregards wider classes of distinctions between similar |
| 628 | can also toggle character folding in the middle of a search by typing | ||
| 629 | `M-s ''. | ||
| 630 | |||
| 631 | `query-replace' honors character folding this if the new variable | ||
| 632 | `replace-character-fold' is customized to a non-nil value. This is | ||
| 633 | analogous to case folding, but instead of disregarding case variants, | ||
| 634 | it disregards wider classes of distinctions between similar | ||
| 635 | characters. (Case folding is a special case of character folding.) | 628 | characters. (Case folding is a special case of character folding.) |
| 636 | This means many characters in the search string will match entire | 629 | This means many characters in the search string will match entire |
| 637 | groups of characters instead of just themselves. | 630 | groups of characters instead of just themselves. |
| 638 | 631 | ||
| 639 | For instance, the " will match all variants of double quotes (like “ | 632 | For instance, the ASCII double quote character " will match all |
| 640 | and ”), and the letter a will match all of its accented cousins, even | 633 | variants of double quotes (like “ and ”), and the letter a will match |
| 641 | those composed of multiple characters, as well as many other symbols | 634 | all of its accented cousins, even those composed of multiple |
| 642 | like ℀, ℁, ⒜, and ⓐ. | 635 | characters, as well as many other symbols like ℀, ℁, ⒜, and ⓐ. |
| 636 | |||
| 637 | Character folding is enabled by customizing `search-default-mode' to | ||
| 638 | the value `character-fold-to-regexp'. You can also toggle character | ||
| 639 | folding in the middle of a search by typing `M-s ''. | ||
| 640 | |||
| 641 | `query-replace' honors character folding if the new variable | ||
| 642 | `replace-character-fold' is customized to a non-nil value. | ||
| 643 | 643 | ||
| 644 | +++ | 644 | +++ |
| 645 | *** New user option `search-default-mode'. | 645 | *** New user option `search-default-mode'. |
| 646 | This option specifies the default mode for Isearch. The default | 646 | This option specifies the default mode for Isearch. The default |
| 647 | value, nil specifies that Isearch does not fold characters when | 647 | value, nil specifies that Isearch does literal searches (however, |
| 648 | searching. | 648 | `case-fold-search' and `isearch-lax-whitespace' may still be applied, |
| 649 | as in previous Emacs versions). | ||
| 649 | 650 | ||
| 650 | +++ | 651 | +++ |
| 651 | *** New function `character-fold-to-regexp' can be used | 652 | *** New function `character-fold-to-regexp' can be used |