commit 96b728c1b89b8476778f517b8714b31110db07fa
parent a23b946c4af11fbd7645a023bfca4c2525fcb7df
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Mon, 13 Mar 2017 14:47:11 +0530
Use `ht-get` instead of `gethash`
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/emojify.el b/emojify.el
@@ -707,10 +707,11 @@ and then `emojify-emojis'."
(let (unicode-emojis ascii-emojis)
(ht-each (lambda (emoji data)
- (when (string= (gethash "style" data) "unicode")
+
+ (when (string= (ht-get data "style") "unicode")
(push emoji unicode-emojis))
- (when (string= (gethash "style" data) "ascii")
+ (when (string= (ht-get data "style") "ascii")
(push emoji ascii-emojis)))
emojify-emojis)
@@ -1033,7 +1034,7 @@ should not be a problem 🤞."
(compose-end (next-single-property-change compose-start 'composition nil end)))
;; Display only composed text that is unicode char
(when (and emoji
- (string= (gethash "style" emoji) "unicode"))
+ (string= (ht-get emoji "style") "unicode"))
(emojify--display-emoji emoji match (current-buffer) compose-start compose-end))
;; Setup the next loop
(setq compose-start (and compose-end (next-single-property-change compose-end