From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [Help] Look for a exist function to car a contact, Urgent!!! Date: Tue, 04 Jun 2013 11:16:25 +0800 Message-ID: <87y5aq1s6u.fsf@news.tumashu-localhost.org> References: <87mwr6n4ij.fsf@news.tumashu-localhost.org> <87li6qprap.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujhkl-0006ec-Kh for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 23:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujhkj-00015y-C5 for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 23:17:43 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:34677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujhkj-00015d-5o for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 23:17:41 -0400 Received: by mail-pd0-f172.google.com with SMTP id t10so3039462pdi.17 for ; Mon, 03 Jun 2013 20:17:39 -0700 (PDT) Received: from news.tumashu-localhost.org ([110.97.82.245]) by mx.google.com with ESMTPSA id xz1sm34940236pab.5.2013.06.03.20.17.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 20:17:38 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UjhjV-00014t-Ar for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 11:16:25 +0800 In-Reply-To: <87li6qprap.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Mon, 03 Jun 2013 22:01:50 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > Feng Shu 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. --