emacs-emojify

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

commit 0cf872bc643cead6d920b5758198b9c2a336408b
parent b0bb1ff871d5f02c5dc6137d1d18a729f51f75b4
Author: Iqbal Ansari <iqbal.ansari@ignitesol.com>
Date:   Mon, 30 Nov 2015 19:45:53 +0530

Handle non-default values of `redisplay-highlight-region-function`

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

diff --git a/emojify.el b/emojify.el @@ -596,8 +596,9 @@ and end of region respectively." (<= end emojify-region-end))))) (defun emojify--region-face (beg end) - (when (or (emojify--inside-non-rectangle-selection-p beg end) - (emojify--inside-rectangle-selection-p beg end)) + (when (and (equal (default-value 'redisplay-highlight-region-function) redisplay-highlight-region-function) + (or (emojify--inside-non-rectangle-selection-p beg end) + (emojify--inside-rectangle-selection-p beg end))) (face-background 'region))) (defun emojify--overlay-face (beg)