emacs-emojify

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

commit 91799fb78de688fcf7aff91ce7f6d63ed2304d07
parent b44b8aca65bc0fd4903585dbb3c06a9187039881
Author: Iqbal Ansari <iqbal.ansari@ignitesol.com>
Date:   Thu, 29 Oct 2015 15:13:58 +0530

Do not emojify text inside lists

Earlier '8)' inside (1 8) was emojified, now we try to avoid such cases
:rocket:

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

diff --git a/emojify.el b/emojify.el @@ -214,6 +214,14 @@ BEG and END are the beginning and end of the region respectively" ;; The text is at the beginning of the buffer (emojify-valid-text-context-p match-beginning match-end) + ;; Inhibit possibly inside a list + ;; 41 is ?) but packages get confused by the extra closing paren + ;; TODO Report bugs to such packages + (not (and (eq (char-syntax (char-before match-end)) 41) + (ignore-errors (scan-sexps match-end -1)))) + + (not (run-hook-with-args-until-success 'emojify-inhibit-functions match match-beginning match-end))) + ;; TODO: Remove double checks (when (gethash match emoji-parsed) (add-text-properties match-beginning