diff options
| author | John Wiegley | 2016-03-09 15:32:22 -0800 |
|---|---|---|
| committer | John Wiegley | 2016-03-09 15:32:22 -0800 |
| commit | 83b2a2071460b7aa0d4460fec3d900a75ee51d9c (patch) | |
| tree | ebe2d650f1425eedd8b8bfd6e699bc6ffcb598c6 /etc | |
| parent | b417c5a3b35bf31e66a170529c5aeb34cb3318d0 (diff) | |
| download | emacs-83b2a2071460b7aa0d4460fec3d900a75ee51d9c.tar.gz emacs-83b2a2071460b7aa0d4460fec3d900a75ee51d9c.zip | |
Change how /etc/NEWS presents character folding
* NEWS: Note that character folding is no longer the default.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 31 |
1 files changed, 15 insertions, 16 deletions
| @@ -622,31 +622,30 @@ 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 matches. | 625 | *** `isearch' and `query-replace' can now perform character folding in |
| 626 | Isearch does that by default, while `query-replace' will do that if | 626 | matches. Character folding is enabled by customizing |
| 627 | the new variable `replace-character-fold' is customized to a non-nil | 627 | `search-default-mode' to the value `character-fold-to-regexp'. You |
| 628 | value. This is analogous to case folding, but instead of disregarding | 628 | can also toggle character folding in the middle of a search by typing |
| 629 | case variants, it disregards wider classes of distinctions between | 629 | `M-s ''. |
| 630 | similar characters. (Case folding is a special case of character | 630 | |
| 631 | folding.) This means many characters in the search string will match | 631 | `query-replace' honors character folding this if the new variable |
| 632 | entire groups of characters instead of just themselves. | 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.) | ||
| 636 | This means many characters in the search string will match entire | ||
| 637 | groups of characters instead of just themselves. | ||
| 633 | 638 | ||
| 634 | For instance, the " will match all variants of double quotes (like “ | 639 | For instance, the " will match all variants of double quotes (like “ |
| 635 | and ”), and the letter a will match all of its accented cousins, even | 640 | and ”), and the letter a will match all of its accented cousins, even |
| 636 | those composed of multiple characters, as well as many other symbols | 641 | those composed of multiple characters, as well as many other symbols |
| 637 | like ℀, ℁, ⒜, and ⓐ. | 642 | like ℀, ℁, ⒜, and ⓐ. |
| 638 | 643 | ||
| 639 | Character folding is enabled by customizing `search-default-mode' to | ||
| 640 | the value `character-fold-to-regexp'. If you want to turn character | ||
| 641 | folding off, customize the value of `search-default-mode' to the `nil' | ||
| 642 | value. You can also toggle character folding in the middle of a | ||
| 643 | search by typing `M-s ''. | ||
| 644 | |||
| 645 | +++ | 644 | +++ |
| 646 | *** New user option `search-default-mode'. | 645 | *** New user option `search-default-mode'. |
| 647 | This option specifies the default mode for Isearch. The default | 646 | This option specifies the default mode for Isearch. The default |
| 648 | value, `character-fold-to-regexp' specifies that Isearch should fold | 647 | value, nil specifies that Isearch does not fold characters when |
| 649 | characters when searching. | 648 | searching. |
| 650 | 649 | ||
| 651 | +++ | 650 | +++ |
| 652 | *** New function `character-fold-to-regexp' can be used | 651 | *** New function `character-fold-to-regexp' can be used |