From 29b2ee54d3012347d6605dcad7c30d640c7fc4f8 Mon Sep 17 00:00:00 2001 From: Kinneyzhang Date: Tue, 13 Jan 2026 18:11:40 +0800 Subject: [PATCH] update --- tp.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tp.el b/tp.el index e54b781..1240502 100644 --- a/tp.el +++ b/tp.el @@ -730,13 +730,16 @@ the batch completes. Layer definitions are still updated immediately. Uses `tp--equal-including-string-properties' for comparison to properly detect changes in text properties when the text content is the same." - (when (and (not (tp--equal-including-string-properties (symbol-value symbol) newval)) + (when (and (not (tp--equal-including-string-properties + (when (boundp symbol) + (symbol-value symbol)) + newval)) (eq operation 'set)) (tp-debug-log "Variable %s changed: %S -> %S (where: %s)" - symbol (symbol-value symbol) newval + symbol (when (boundp symbol) (symbol-value symbol)) newval (if where (buffer-name where) "global")) (let ((deps (cdr (assoc symbol tp-reactive-deps))) - (oldval (symbol-value symbol)) + (oldval (when (boundp symbol) (symbol-value symbol))) ;; Create override alist with the new value ;; (watcher is called before the variable is actually updated) (override-alist (list (cons symbol newval))))