From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Thomas Subject: Re: Convert list to paragraph Date: Sat, 27 Aug 2011 09:16:35 -0500 Message-ID: References: <5350.1314394027@alphaville.americas.hpqcorp.net> <87ippjmzy0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxJgb-0005fR-2X for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 10:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxJga-0003Vf-4M for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 10:16:37 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:55425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxJgZ-0003VR-Uh for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 10:16:36 -0400 Received: by vxj3 with SMTP id 3so3944664vxj.0 for ; Sat, 27 Aug 2011 07:16:35 -0700 (PDT) In-Reply-To: <87ippjmzy0.fsf@gmail.com> 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: Nicolas Goaziou Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org > Nick Dokos writes: > >> (defun org-list-to-paragraph () >> =C2=A0 "Convert the list at point into a paragraph." >> =C2=A0 (interactive) >> =C2=A0 (insert (org-list-to-generic (org-list-parse-list t) '(:ustart ""= :splice t :isep " " :nobr t )))) >> >> >> (defun org-lists-to-paragraphs () >> =C2=A0 (goto-char (point-min)) >> =C2=A0 (condition-case nil >> =C2=A0 =C2=A0 =C2=A0 (while (org-list-search-forward "+ ") >> =C2=A0 =C2=A0 =C2=A0 (org-list-to-paragraph)) >> =C2=A0 =C2=A0 (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