diff options
| author | Artur Malabarba | 2015-06-25 02:52:02 +0100 |
|---|---|---|
| committer | Artur Malabarba | 2015-06-25 02:52:35 +0100 |
| commit | 80e46ac5e1fd6f76edbf272bf2ec7d90edadf2ea (patch) | |
| tree | 6a9d0590ccffad5a38d6247bafe0d8178f9eefa6 | |
| parent | e7128f626356098080a85ccd9b4a9467452616dd (diff) | |
| download | emacs-80e46ac5e1fd6f76edbf272bf2ec7d90edadf2ea.tar.gz emacs-80e46ac5e1fd6f76edbf272bf2ec7d90edadf2ea.zip | |
* lisp/character-fold.el (character-fold-table): Fix table generation
| -rw-r--r-- | lisp/character-fold.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/character-fold.el b/lisp/character-fold.el index 15e76584fe0..7f5be8324a8 100644 --- a/lisp/character-fold.el +++ b/lisp/character-fold.el | |||
| @@ -33,7 +33,14 @@ some).") | |||
| 33 | 33 | ||
| 34 | (defconst character-fold-table | 34 | (defconst character-fold-table |
| 35 | (eval-when-compile | 35 | (eval-when-compile |
| 36 | (let ((equiv (make-char-table 'character-fold-table))) | 36 | (let* ((equiv (make-char-table 'character-fold-table)) |
| 37 | (table (unicode-property-table-internal 'decomposition)) | ||
| 38 | (func (char-table-extra-slot table 1))) | ||
| 39 | ;; Ensure the table is populated | ||
| 40 | (map-char-table | ||
| 41 | (lambda (i v) (when (consp i) (funcall func (car i) v table))) | ||
| 42 | table) | ||
| 43 | |||
| 37 | ;; Compile a list of all complex characters that each simple | 44 | ;; Compile a list of all complex characters that each simple |
| 38 | ;; character should match. | 45 | ;; character should match. |
| 39 | (map-char-table | 46 | (map-char-table |