emacs-emojify

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

commit 6d03c618aaa6f9864652afb1b4f1f7f37b634644
parent 5005e6a2c39725cf08c7f9583a6d6cbd40fd2a3c
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Tue,  1 Dec 2015 23:39:41 +0530

Check `redisplay-highlight-region-function` is bound before using it

Restores compatibility with Emacs 24.3 :sweat_smile:

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

diff --git a/emojify.el b/emojify.el @@ -637,7 +637,9 @@ and end of region respectively." (<= end emojify-region-end))))) (defun emojify--region-face (beg end) - (when (and (equal (default-value 'redisplay-highlight-region-function) redisplay-highlight-region-function) + ;; `redisplay-highlight-region-function' was not defined in Emacs 24.3 + (when (and (or (not (boundp 'redisplay-highlight-region-function)) + (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)))