emacs-emojify

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

commit 4c84ef9502988b52b1e296630bcee7f7c62cfc02
parent 782ac307f37239e90c56810323db4263a6469219
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Thu, 17 Oct 2019 11:20:31 +0700

Handle failures due to deprecated cons style faces used with overlays

See
https://www.gnu.org/software/emacs/manual/html_node/elisp/Overlay-Properties.html,
background-color-at-point does not seem to handle such faces properly

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

diff --git a/emojify.el b/emojify.el @@ -966,7 +966,9 @@ This returns nil if the emojis between BEG and END do not fall in region." (or (emojify--region-background-maybe beg end) (save-excursion (goto-char beg) - (background-color-at-point)))) + (condition-case nil + (background-color-at-point) + (wrong-type-argument nil))))) (defvar emojify--imagemagick-support-cache (ht-create))