Nick Dokos <ndo...@gmail.com> writes:

> Feng Shu <tuma...@gmail.com> writes:
>
>> How to get the information "test" from:
>>
>> ((#("test" 0 2 (fontified nil org-category "i-contacts"))
>>
>> Thanks!
>
> It's missing a couple of closing parens, but assuming that the opening
> parens describe the situation correctly, the following should work:
> --8<---------------cut here---------------start------------->8---
> (setq s '((#("test" 0 2 (fontified nil org-category "i-contacts")))))
> (substring-no-properties (caar s))
> --8<---------------cut here---------------end--------------->8---

Thanks!
>
> The caar gets to the string-with-properties and the
> substring-no-properties gets the string, discarding the properties.

-- 

Reply via email to