Fix ekp-text-hash to consider text properties
Co-authored-by: Kinneyzhang <38454496+Kinneyzhang@users.noreply.github.com>
This commit is contained in:
parent
5c646bf6be
commit
f56ec5a520
5
ekp.el
5
ekp.el
@ -231,9 +231,10 @@ set type to 'nws for each glue after position in hyphen_positions."
|
|||||||
|
|
||||||
(defun ekp-text-hash (string)
|
(defun ekp-text-hash (string)
|
||||||
(let ((latin-font (ekp-latin-font string))
|
(let ((latin-font (ekp-latin-font string))
|
||||||
(cjk-font (ekp-cjk-font string)))
|
(cjk-font (ekp-cjk-font string))
|
||||||
|
(print-text-properties t))
|
||||||
(secure-hash
|
(secure-hash
|
||||||
'md5 (format "%s|%s|%s" latin-font cjk-font string))))
|
'md5 (format "%s|%s|%s" latin-font cjk-font (prin1-to-string string)))))
|
||||||
|
|
||||||
(defun ekp-text-cache (string)
|
(defun ekp-text-cache (string)
|
||||||
;; consider font
|
;; consider font
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user