[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: |
Nick Dokos |
Subject: |
Re: [O] [Help] Look for a exist function to car a contact, Urgent!!! |
Date: |
Mon, 03 Jun 2013 22:01:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
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---
The caar gets to the string-with-properties and the
substring-no-properties gets the string, discarding the properties.
--
Nick