From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [Help] Look for a exist function to car a contact, Urgent!!! Date: Mon, 03 Jun 2013 22:01:50 -0400 Message-ID: <87li6qprap.fsf@pierrot.dokosmarshall.org> References: <87mwr6n4ij.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjgZa-0005Ij-5k for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 22:02:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjgZY-0001tL-Ff for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 22:02:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:56383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjgZY-0001su-9u for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 22:02:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UjgZV-0008N8-PL for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 04:02:01 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 04:02:01 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 04:02:01 +0200 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 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--- The caar gets to the string-with-properties and the substring-no-properties gets the string, discarding the properties. -- Nick