|
From: | Lennart Borgman (gmail) |
Subject: | Is this a bug in overlay property list handling? |
Date: | Sun, 01 Jun 2008 11:58:11 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
(setq syntax-ppss-last-min (copy-tree (cons (1- last-pos) (if is-main-mode-chunk (mumamo-with-major-mode-fontification main-major `(parse-partial-sexp (point-min) last-pos)) (parse-partial-sexp 1 1))) )) (overlay-put chunk-at-pos 'syntax-ppss-last-min syntax-ppss-last-min) If I test this immediately after with `overlay-get' the value looks ok.However, later when I read these values with `overlay-get' it seems like the property list has got corrupted. The car of the value stored in property 'syntax-ppss-last-min is nil.
I use copy-tree to try to avoid surprices like this one. Maybe I should do something different? Maybe this is a bug in overlay property list handling?
[Prev in Thread] | Current Thread | [Next in Thread] |