From: Feng Shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [Help] Look for a exist function to car a contact, Urgent!!!
Date: Tue, 04 Jun 2013 11:16:25 +0800 [thread overview]
Message-ID: <87y5aq1s6u.fsf@news.tumashu-localhost.org> (raw)
In-Reply-To: <87li6qprap.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Mon, 03 Jun 2013 22:01:50 -0400")
Nick Dokos <ndokos@gmail.com> writes:
> Feng Shu <tumashu@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.
--
prev parent reply other threads:[~2013-06-04 3:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-03 23:44 [Help] Look for a exist function to car a contact, Urgent!!! Feng Shu
2013-06-04 2:01 ` Nick Dokos
2013-06-04 3:16 ` Feng Shu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5aq1s6u.fsf@news.tumashu-localhost.org \
--to=tumashu@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).