aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Aspinall2008-07-24 11:12:50 +0000
committerDavid Aspinall2008-07-24 11:12:50 +0000
commit8bd936fe447b5cccf9637bc01e1eaa78ee46fb41 (patch)
treea53b2393b697d5f0ac7d447ffb7409bf7005c9c0 /lib
parent0ff03ffd23f25f8d84153822be1d92dc13f3ab19 (diff)
Fix maths menu tokenise adjustment for type of unicode-tokens-uchar-hash-table.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicode-tokens.el6
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