From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Elston Subject: Re: latex enumeration issue Date: Wed, 03 Feb 2010 19:12:16 -0800 Message-ID: <4B6A3B10.5060300@comcast.net> References: <4B68A26A.3030509@comcast.net> <4B69DF82.70407@comcast.net> <4B6A2FC2.5020908@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncs8r-0005Jp-Ra for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 22:12:29 -0500 Received: from [199.232.76.173] (port=47943 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncs8r-0005JD-B6 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 22:12:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncs8q-0007pS-Ai for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 22:12:29 -0500 Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:58323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncs8p-0007p8-S7 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 22:12:28 -0500 In-Reply-To: <4B6A2FC2.5020908@comcast.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org OK. I guess I was wrong. For some reason this hook doesn't seem to work. I masked the issue a different way and it made me *think* this was working. Any ideas why this hook function would not remove header lines with only tags and no header text? Mark On 2/3/2010 6:24 PM, Mark Elston wrote: > ... > > ;;; Export Hooks > (defun mee-delete-empty-org-headers () > (while (re-search-forward "^[*]+ [ ]+:[a-zA-Z0-9]+:$" nil t) > (progn > (beginning-of-line) > (kill-line 0)))) > > (add-hook 'org-export-preprocess-hook > 'mee-delete-empty-org-headers) > >