Fix ekp-text-hash to consider text properties

Co-authored-by: Kinneyzhang <38454496+Kinneyzhang@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-29 17:09:16 +00:00
parent 5c646bf6be
commit f56ec5a520

5
ekp.el
View File

@ -231,9 +231,10 @@ set type to 'nws for each glue after position in hyphen_positions."
(defun ekp-text-hash (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
'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)
;; consider font