emacs-emojify

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

commit 6acb1b52f7bf6fc4252d6b69566d70280d71625b
parent c06331d45a3746d848feb7bb882fbd2d75640aa5
Author: Iqbal Ansari <iqbal.ansari@ignitesol.com>
Date:   Wed, 18 Nov 2015 11:01:35 +0530

Fix a regression introduced in previous change

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

diff --git a/emojify.el b/emojify.el @@ -551,8 +551,9 @@ TODO: Skip emojifying if region is already emojified." (match (match-string-no-properties 0)) (buffer (current-buffer))) - ;; Display unconditionally in non-prog mode - (when (and (or (not (derived-mode-p 'prog-mode)) + (when (and (ht-contains-p emojify-emojis match) + ;; Display unconditionally in non-prog mode + (or (not (derived-mode-p 'prog-mode)) ;; In prog mode enable respecting `emojify-prog-contexts' (emojify-valid-prog-context-p match-beginning match-end))