emacs-emojify

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

commit fd6efdf1393f2a3df8a57ac3af792d413397c3aa
parent 62a32d34bade5279f2c23ce19308bb11f1aa0162
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  4 Sep 2016 14:57:29 +0530

Use face-background in place of non-existent emojify--face-background

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

diff --git a/emojify.el b/emojify.el @@ -674,7 +674,7 @@ and end of region respectively." (<= end emojify-region-end))))) (defun emojify--region-background-face-maybe (beg end) - "Get the region for emoji between BEG and END. + "If the BEG and END falls inside an active region return the region face. This returns nil if the emojis between BEG and END do not fall in region." ;; `redisplay-highlight-region-function' was not defined in Emacs 24.3 @@ -697,7 +697,7 @@ directly defined on the face." (and (consp face) ;; Handle anonymous faces (or (or (plist-get face :background) - (emojify--face-background (car (plist-get face :inherit)))) + (face-background (car (plist-get face :inherit)) nil 'default )) ;; Possibly a list of faces (emojify--overlay-face-background (car face))))))