]> git.eshelyaron.com Git - emacs.git/commit
Customizable char-fold with char-fold-symmetric, char-fold-include (bug#35689)
authorJuri Linkov <juri@linkov.net>
Tue, 23 Jul 2019 20:27:28 +0000 (23:27 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 23 Jul 2019 20:27:28 +0000 (23:27 +0300)
commit376f5df3cca0dbf186823e5b329d76b52019473d
treed13fed57ed0b5d306d27846e87ee1e21b2f9900a
parenta48726ebae2f44ed15b97cb72bc7eca199d8de47
Customizable char-fold with char-fold-symmetric, char-fold-include (bug#35689)

* doc/emacs/search.texi (Lax Search): Document
char-fold-symmetric, char-fold-include, char-fold-exclude.

* lisp/char-fold.el (char-fold--default-include)
(char-fold--default-exclude, char-fold--default-symmetric)
(char-fold--previous): New defconsts.
(char-fold-include, char-fold-exclude, char-fold-symmetric):
New defcustoms.
(char-fold-make-table): Use them.
(char-fold-update-table): New function called at top-level.

* test/lisp/char-fold-tests.el (char-fold--test-no-match-exactly)
(char-fold--permutation): New functions.
(char-fold--test-without-customization)
(char-fold--test-with-customization): New tests.
doc/emacs/search.texi
etc/NEWS
lisp/char-fold.el
test/lisp/char-fold-tests.el