emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Mark Elston <m_elston@comcast.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: latex enumeration issue
Date: Wed, 03 Feb 2010 23:28:49 -0500	[thread overview]
Message-ID: <87vded1v5q.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <4B6A3B10.5060300@comcast.net> (Mark Elston's message of "Wed, 03 Feb 2010 19:12:16 -0800")

Mark Elston <m_elston@comcast.net> 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

  reply	other threads:[~2010-02-04  4:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02 22:08 latex enumeration issue Mark Elston
2010-02-03 10:34 ` Carsten Dominik
2010-02-03 20:41   ` Mark Elston
2010-02-04  2:24     ` Mark Elston
2010-02-04  3:12       ` Mark Elston
2010-02-04  4:28         ` Dan Davison [this message]
2010-02-04  7:00         ` Mark Elston
2010-02-04 10:05       ` Eric S Fraga
2010-02-06  8:18         ` Daniel Martins
2010-02-06 19:06           ` Mark Elston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vded1v5q.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=m_elston@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).