From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: org-babel - utility to ease chopping src chunks into smaller org entries Date: Sun, 19 Sep 2010 03:48:00 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=37800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox90r-0001NY-L3 for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 21:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox90q-0000t4-JO for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 21:48:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:43470) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox90q-0000sv-BR for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 21:48:16 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ox90o-00066J-IZ for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 03:48:14 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 03:48:14 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 03:48:14 +0200 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: emacs-orgmode@gnu.org I often find myself chopping a large source code block into smaller entities with their own notes, tags and comments etc. This small utility facilitates that by wrapping the current region with org entry markers and src code delimiters. It assumes you are in a currently src block. http://splash-of-open-sauce.blogspot.com/2010/09/mark-region-as-src-code-if-prefix-used.html Its currently hardcoded for emacs-lisp but it might be useful nonetheless. (Anyone know how to make blogspot line wrap?) r.