emacs-emojify

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

commit 62e020ac3922da1147ba9fd718105ddce85fed57
parent 1be071c635c19d1efcaeb8027df53f9a560f9c8e
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Mon, 13 Mar 2017 16:04:19 +0530

Allow forcing re-reading of emoji data in `emojify-create-emojify-emojis`

Diffstat:
Memojify.el | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/emojify.el b/emojify.el @@ -688,9 +688,12 @@ The candidates are calculated according to currently active emojis)))) (cdr emojify--completing-candidates-cache))) -(defun emojify-create-emojify-emojis () - "Create `emojify-emojis' if needed." - (unless emojify-emojis +(defun emojify-create-emojify-emojis (&optional force) + "Create `emojify-emojis' if needed. + +The function avoids reading emoji data if it has already been read unless FORCE +in which case emoji data is re-read." + (when (or force (not emojify-emojis)) (emojify-set-emoji-data))) (defun emojify-get-emoji (emoji)