diff options
| author | David Aspinall | 2008-07-24 11:12:50 +0000 |
|---|---|---|
| committer | David Aspinall | 2008-07-24 11:12:50 +0000 |
| commit | 8bd936fe447b5cccf9637bc01e1eaa78ee46fb41 (patch) | |
| tree | a53b2393b697d5f0ac7d447ffb7409bf7005c9c0 /lib | |
| parent | 0ff03ffd23f25f8d84153822be1d92dc13f3ab19 (diff) | |
Fix maths menu tokenise adjustment for type of unicode-tokens-uchar-hash-table.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/unicode-tokens.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/unicode-tokens.el b/lib/unicode-tokens.el index cb2414c5..b2d55bce 100644 --- a/lib/unicode-tokens.el +++ b/lib/unicode-tokens.el @@ -596,11 +596,13 @@ of symbol compositions, and will lose layout information." ;; adjust maths menu to insert tokens (set (make-local-variable 'maths-menu-filter-predicate) - (lambda (uchar) (gethash uchar unicode-tokens-uchar-hash-table))) + (lambda (uchar) (gethash (char-to-string uchar) + unicode-tokens-uchar-hash-table))) (set (make-local-variable 'maths-menu-tokenise-insert) (lambda (uchar) (unicode-tokens-insert-token - (gethash uchar unicode-tokens-uchar-hash-table))))) + (gethash (char-to-string uchar) + unicode-tokens-uchar-hash-table))))) (when (not unicode-tokens-mode) (when flks |
