emacs-emojify

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

commit e4a8e5a71a0ea20675a7deb795cc0ee0db04b9e9
parent 59afda34b00eacbf95c08d8156e59c2685c489b9
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  1 Nov 2015 15:42:23 +0530

Improve `emojify-valid-prog-context-p`

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

diff --git a/emojify.el b/emojify.el @@ -247,8 +247,8 @@ The arguments IGNORED are, well ignored" "Determine if the text between BEG and END should be used to display emojis. This returns non-nil if the region is valid according to `emojify-prog-contexts'" - (unless (or (not emojify-prog-contexts) - (eq emojify-prog-contexts 'none)) + (when (and emojify-prog-contexts + (memq emojify-prog-contexts '(string comments both))) (let ((syntax-beg (syntax-ppss beg)) (syntax-end (syntax-ppss end)) (pos (pcase emojify-prog-contexts