From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: turn headline(s) into plain list? Date: Sat, 07 May 2011 10:17:25 -0400 Message-ID: <87liyippca.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIiK0-0005j2-Dp for emacs-orgmode@gnu.org; Sat, 07 May 2011 10:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIiJz-0000s3-8W for emacs-orgmode@gnu.org; Sat, 07 May 2011 10:17:28 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:45726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIiJz-0000ry-2H for emacs-orgmode@gnu.org; Sat, 07 May 2011 10:17:27 -0400 In-Reply-To: (Gary Oberbrunner's message of "Fri, 6 May 2011 14:39:27 -0400") 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: Gary Oberbrunner Cc: Orgmode Mailing List Gary Oberbrunner writes: > Is there any way to turn a headline (and its subtree) into a plain > list (and nested list items)? Or better yet, turn all level N and > below headlines into plain lists at the corresponding level? For the latter, you could use org-map-entries: --8<---------------cut here---------------start------------->8--- (defun org-convert-low-levels-to-list (level) "Convert headings in file equal or greater than LEVEL to lists. A numeric prefix argument can be used to set the level. The default level is three" (interactive "P") (let ((level (number-to-string (or level 3)))) (org-map-entries 'org-ctrl-c-minus (concat "+LEVEL>=" level) 'file))) --8<---------------cut here---------------end--------------->8--- There is also an FAQ that covers what the other replies have said. http://orgmode.org/worg/org-faq.html#convert-plain-lists-to-headlines Best, Matt