From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: lisp question Date: Thu, 4 Aug 2011 08:49:33 +0200 Message-ID: References: <814o1x4w3s.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1312440759 15231 80.91.229.12 (4 Aug 2011 06:52:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2011 06:52:39 +0000 (UTC) Cc: Emacs mailing list To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 08:52:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QornF-0005Xu-H7 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Aug 2011 08:52:33 +0200 Original-Received: from localhost ([::1]:39962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QornF-00029I-40 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Aug 2011 02:52:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QornB-00029A-KG for help-gnu-emacs@gnu.org; Thu, 04 Aug 2011 02:52:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QornA-0004xy-Tc for help-gnu-emacs@gnu.org; Thu, 04 Aug 2011 02:52:29 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:53024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QornA-0004xu-Kl for help-gnu-emacs@gnu.org; Thu, 04 Aug 2011 02:52:28 -0400 Original-Received: by fxg9 with SMTP id 9so35302fxg.0 for ; Wed, 03 Aug 2011 23:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=nyKTXgi2/w6aucb9xzAPvzYb5toI4uQTG4Srwnd/8Uw=; b=hvTXsThvuo6pLpq/iDlWqwyWBiiqguYZkUBd9wxE1ENMpDcpSIXqRgbK7Q2uWbLh7O EoZGmSRhuHn0E6EoztpakkoVmeV+x88kufyCBPkZq3nwg7+ToNcvsaU2CPck1ee9s+mz VdysNBzUSABY2B8o1TE4B/zI7W0eJhQDmaQOU= Original-Received: by 10.204.152.130 with SMTP id g2mr122161bkw.216.1312440594472; Wed, 03 Aug 2011 23:49:54 -0700 (PDT) Original-Received: by 10.204.132.87 with HTTP; Wed, 3 Aug 2011 23:49:33 -0700 (PDT) In-Reply-To: <814o1x4w3s.fsf@gmail.com> X-Google-Sender-Auth: E-44J0jmi0tXpte3ULD0Phv6a9Y X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81868 Archived-At: Hi Jambunathan, On Thu, Aug 4, 2011 at 6:52 AM, Jambunathan K wrote: > Return value is a text with properties. You can use > > (substring-no-properties (org-get-category (point))) > > to get just the text part. > > I think you will be better off using the property APIs. You can use > (org-entry-get (point) "CATEGORY") > > to extract the desired information. > > See "Using the property API" section of the manual. Thanks a lot for both the pointers! :) -- Suvayu Open source is the future. It sets us free.