From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: org-e-latex: ignoreheading is not working any more. Date: Wed, 21 Nov 2012 12:37:19 +0000 Message-ID: <87a9ubi134.fsf@gmail.com> References: <8739032640.fsf@yagnesh.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tb9YH-0006ID-TW for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 07:37:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tb9YG-0004Pk-Io for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 07:37:13 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:46960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tb9YG-0004Pc-Af for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 07:37:12 -0500 Received: by mail-wi0-f169.google.com with SMTP id hq12so2779308wib.0 for ; Wed, 21 Nov 2012 04:37:11 -0800 (PST) In-reply-to: <8739032640.fsf@yagnesh.org> 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: Yagnesh Raghava Yakkala Cc: emacs-orgmode@gnu.org Hi Yagnesh, Yagnesh Raghava Yakkala writes: > I have been using example setting suggested by Nicolas > (http://article.gmane.org/gmane.emacs.orgmode/55972) to tell exporter to skip > particular headline (with ignoreheading tag). > > It seems recent commit made this setup obsolete. could anybody suggest me the > alternative setting for this.? I've been using this, (I notice it is significantly longer than the example in the link above so it may be overkill): #+BEGIN_SRC emacs-lisp (defun my-export-delete-headlines-tagged-noheading(heading-text) "Goto headline `heading-text'" (let ((wasfound t)) (while wasfound (progn (org-element-map (org-element-parse-buffer 'headline) 'headline (lambda (x) (if (member "noheading" (org-element-property :tags x)) (progn (goto-char (org-element-property :begin x)) (delete-region (point) (progn (forward-line 1) (point))) (goto-char (point-min))) (setq wasfound nil))) nil t)) ;; stop at first find, nil) ;; start again from the top of the buffer (goto-char (point-min)))) (add-to-list 'org-export-before-processing-hook 'my-export-delete-headlines-tagged-noheading) #+END_SRC Myles