From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How to check whether the headline the point is on has some tag? Date: Fri, 24 Oct 2014 19:30:38 -0400 Message-ID: <87lho5kpup.fsf@andrew.cmu.edu> References: <878uk55akh.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhoJP-0004St-9H for emacs-orgmode@gnu.org; Fri, 24 Oct 2014 19:30:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhoJK-00012e-He for emacs-orgmode@gnu.org; Fri, 24 Oct 2014 19:30:27 -0400 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:39599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhoJK-00012a-D8 for emacs-orgmode@gnu.org; Fri, 24 Oct 2014 19:30:22 -0400 Received: by mail-qc0-f169.google.com with SMTP id i17so43614qcy.14 for ; Fri, 24 Oct 2014 16:30:21 -0700 (PDT) In-Reply-To: <878uk55akh.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Sat, 25 Oct 2014 01:09:50 +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: Marcin Borkowski Cc: orgmode Marcin Borkowski writes: Check the last element of org-heading-components. * Headline :tag1: #+BEGIN_SRC emacs-lisp (org-heading-components) #+END_SRC #+RESULTS: | 1 | 1 | nil | nil | Headline | :tag1: | > Hi list, > > I'd like to implement splitting an org file at tagged entries in my > org-one-to-many library (as requested on the list by Daniel Clemente). > How do I check whether a specific headline (say, one a point is at) has > some tag (but not inherited)? > > TIA, -- ----------------------------------- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu