From f56ec5a520f31d642c0c80bb73b7df75af5ffcad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 29 Nov 2025 17:09:16 +0000 Subject: [PATCH] Fix ekp-text-hash to consider text properties Co-authored-by: Kinneyzhang <38454496+Kinneyzhang@users.noreply.github.com> --- ekp.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ekp.el b/ekp.el index 7395ce3..d16cbb3 100644 --- a/ekp.el +++ b/ekp.el @@ -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