Skip to main content
2 of 5
added 32 characters in body
John Kitchin
  • 12.1k
  • 1
  • 23
  • 45

I think you can do this:

(setq myvar (apply 'propertize "mystring" (text-properties-at 0 myvar)))

I didn't find any way to use setf or some similar kind of thing to just modify the string part while preserving the properties.

John Kitchin
  • 12.1k
  • 1
  • 23
  • 45