emacs 26 lisp change. ucs-names is now a hashtable

By Xah Lee. Date: .

ucs-names is now a hashtable

2018-07-09 emacs 26 change. ucs-names was alist, now it's hash table. update all your code

you can use this wrapper:

(defun xah-math-input--name-to-codepoint (P-name)
  "Returns integer that's the codepoint of Unicode char named P-name (string).
Version 2018-07-09"
  (interactive)
  (if (version<= "26" emacs-version)
      (gethash P-name (ucs-names))
    (assoc-string P-name (ucs-names) t)))