From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Split source block at point Date: Wed, 27 Nov 2013 08:15:03 +0100 Message-ID: <87siui5n9k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlZLS-0000wy-Uu for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 02:15:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlZLH-0004Wm-Nb for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 02:15:34 -0500 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:58930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlZLH-0004Vj-GW for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 02:15:23 -0500 Received: by mail-ea0-f175.google.com with SMTP id z10so4255138ead.6 for ; Tue, 26 Nov 2013 23:15:21 -0800 (PST) Received: from T420s (nat-wh-wh36.rz.uni-karlsruhe.de. [141.70.81.154]) by mx.google.com with ESMTPSA id e43sm5606727eep.7.2013.11.26.23.15.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2013 23:15:21 -0800 (PST) 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: emacs-orgmode@gnu.org Hello together, is therer a command or a function that lets me split a source block at a given position? I think what I mean is best demonstrated by looking at an example: Given this buffer: ---------------------------------------------------------------- begin_src emacs-lisp (defun foo () (bar)) (baz (foo)) end_src ---------------------------------------------------------------- With point somewhere at the free line I want to invoke the split function and get this: ---------------------------------------------------------------- begin_src emacs-lisp (defun foo () (bar)) end_src begin_src emacs-lisp (baz (foo)) end_src ---------------------------------------------------------------- This is similar to what M-RET does in message-mode. Do we already have something like this in org? And if not, do you think this is useful? Personally I find myself quite frequently splitting up soure blocks manually. Best regards, -- Alexander Baier