[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [Help] Look for a exist function to car a contact, Urgent!!!
From: |
Feng Shu |
Subject: |
Re: [O] [Help] Look for a exist function to car a contact, Urgent!!! |
Date: |
Tue, 04 Jun 2013 11:16:25 +0800 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.2 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Feng Shu <address@hidden> 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.
--