From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: "ignoreheading" for non-beamer export Date: Fri, 26 Jul 2013 13:41:06 +0200 Message-ID: <20130726114106.GD16304@kuru.dyndns-at-home.com> References: <87mwpa2u6v.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2gOW-0001Er-DL for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 07:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2gOV-0006jb-8L for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 07:41:12 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:62169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2gOV-0006jV-23 for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 07:41:11 -0400 Received: by mail-ea0-f170.google.com with SMTP id h10so1548853eaj.1 for ; Fri, 26 Jul 2013 04:41:10 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id m1sm80508124eex.17.2013.07.26.04.41.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 26 Jul 2013 04:41:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87mwpa2u6v.wl%jamshark70@dewdrop-world.net> 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 Hi James, On Thu, Jul 25, 2013 at 05:42:00PM -0400, James Harkins wrote: > Hi, I found an inventive solution by Suvayu to discard headlines from export here [1], but the 8.0+ solution throws an error in my environment. > > (defun sa-ignore-headline (contents backend info) [...chomp...chomp...chomp...] > (downcase headline))) > (replace-match "" nil nil headline))) > > (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline) > > --> string-match: Symbol's value as variable is void: headline > > It seems it should actually be: > > (defun sa-ignore-headline (contents backend info) [...chomp...chomp...chomp...] > (downcase contents))) > (replace-match "" nil nil contents))) > > (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline) Oops, typo! Also a correction, I had a solution for the old exporter. If I recall correctly Nick Dokos helped me come up with it. The 8.0< solution was from Rasmus based on suggestions from Nicolas. I'll update the answer on SO. Thanks for checking it, -- Suvayu Open source is the future. It sets us free.