font lock question: put-text-property doesn't work as expected
Lispworks for Linux Pro, 5.0.2 Code doesn't work: (in-package #:editor) (defvar editor::*play* (second editor:*buffer-list*)) (use-buffer *play* (with-point ((start (current-point)) (end (current-point))) (line-end end) (print (points-to-string start end)) (put-text-property start end 'face *font-lock-comment-face*))) Put this in a buffer. Assign buffer to *play*. Put cursor at beginning of "(use-buffer" line. cut-and-paste into Listener: EDITOR 70 > (use-buffer *play* (with-point ((start (current-point)) (end (current-point))) (line-end end) (print (points-to-string start end)) (put-text-property start end 'face *font-lock-comment-face*))) "(use-buffer *play*" T But it doesn't change the color of the "(use-buffer" line. I know, or at least I'm pretty sure, that the marks are in the right place, 'cause it prints the points-to-string as expected. So there's something I'm missing about put-text-property. Any hints or suggestions? Do I have to "commit changes" or something? -- Larry