[O] [Help] Look for a exist function to car a contact, Urgent!!!

2013-06-03 Thread Feng Shu

How to get the information test from:

((#(test 0 2 (fontified nil org-category i-contacts))

Thanks!


-- 



Re: [O] [Help] Look for a exist function to car a contact, Urgent!!!

2013-06-03 Thread Nick Dokos
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---

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

-- 
Nick




Re: [O] [Help] Look for a exist function to car a contact, Urgent!!!

2013-06-03 Thread Feng Shu
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.

--