From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: latex enumeration issue Date: Wed, 03 Feb 2010 23:28:49 -0500 Message-ID: <87vded1v5q.fsf@stats.ox.ac.uk> References: <4B68A26A.3030509@comcast.net> <4B69DF82.70407@comcast.net> <4B6A2FC2.5020908@comcast.net> <4B6A3B10.5060300@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NctKs-0000TR-MV for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 23:28:58 -0500 Received: from [199.232.76.173] (port=54347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NctKr-0000TJ-CI for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 23:28:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NctKp-0004gg-TJ for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 23:28:57 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:64528) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NctKp-0004ga-G7 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 23:28:55 -0500 In-Reply-To: <4B6A3B10.5060300@comcast.net> (Mark Elston's message of "Wed, 03 Feb 2010 19:12:16 -0800") 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: Mark Elston Cc: emacs-orgmode@gnu.org Mark Elston writes: > 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 Hi Mark, I haven't tried to understand the use case, but here's a modified version. Dan (defun mee-delete-empty-org-headers () (while (re-search-forward "^\\*+[\t ]+:[a-zA-Z0-9]+:$" nil t) (beginning-of-line) (kill-line) (forward-line))) > > 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) >> >> > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode