emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Derek Thomas <derekcthomas@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Convert list to paragraph
Date: Sat, 27 Aug 2011 09:16:35 -0500	[thread overview]
Message-ID: <CALDRGc_LRi7_+oiRPTWbXjNC9CpFU+K0_okL7GMXAfZoY8XfNA@mail.gmail.com> (raw)
In-Reply-To: <87ippjmzy0.fsf@gmail.com>

> Nick Dokos <nicholas.dokos@hp.com> writes:
>
>> (defun org-list-to-paragraph ()
>>   "Convert the list at point into a paragraph."
>>   (interactive)
>>   (insert (org-list-to-generic (org-list-parse-list t) '(:ustart "" :splice t :isep " " :nobr t ))))
>>
>>
>> (defun org-lists-to-paragraphs ()
>>   (goto-char (point-min))
>>   (condition-case nil
>>       (while (org-list-search-forward "+ ")
>>       (org-list-to-paragraph))
>>     (error nil)))
>>
>> (add-hook 'org-export-preprocess-hook (function org-lists-to-paragraphs))

This looks like it will do what I want.  Is there any way to restrict
this export option to certain org files?  Thanks,

Derek

  reply	other threads:[~2011-08-27 14:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 20:01 Convert list to paragraph Derek Thomas
2011-08-26 21:27 ` Nick Dokos
2011-08-27  0:59   ` Nicolas Goaziou
2011-08-27 14:16     ` Derek Thomas [this message]
2011-08-27 16:32       ` Nick Dokos

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=CALDRGc_LRi7_+oiRPTWbXjNC9CpFU+K0_okL7GMXAfZoY8XfNA@mail.gmail.com \
    --to=derekcthomas@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=nicholas.dokos@hp.com \
    /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).