emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 8a6efbf67cfac1ba6ca244eb2ace615d06d25685
parent 8ddcba097c710c6adc41246f81306eca1b8dfb99
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Mon,  5 Sep 2016 13:27:48 +0530

Use ht-each instead of maphash

Diffstat:
Memojify.el | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emojify.el b/emojify.el @@ -1228,7 +1228,7 @@ run the command `emojify-download-emoji'"))) ;; Collection matching emojis in a list (list score emoji emoji-data) ;; elements, where score is the proximity of the emoji to given pattern ;; calculated using `apropos-score-str' - (maphash (lambda (key value) + (ht-each (lambda (key value) (when (or (string-match apropos-regexp key) (string-match apropos-regexp (ht-get value "name"))) (push (list (max (apropos-score-str key) @@ -1276,7 +1276,7 @@ This respects the `emojify-emoji-styles' variable." (line-spacing 7) (completion-ignore-case t) (candidates (let (emojis) - (maphash (lambda (key value) + (ht-each (lambda (key value) (when (member (ht-get value "style") styles) (push (format "%s - %s (%s)" key