From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [BABEL] Seemless editing of Babel Blocks Date: Mon, 16 Aug 2010 14:08:21 +0530 Message-ID: <81hbivx88y.fsf@gmail.com> References: <4C459236.3@gmail.com> <87k4opu5fk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=49192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkvDO-0008Ab-Ca for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkvDI-0006V6-KV for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:38:42 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:47888) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkvDI-0006Um-Ce for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:38:36 -0400 Received: by pvc30 with SMTP id 30so3273715pvc.0 for ; Mon, 16 Aug 2010 01:38:34 -0700 (PDT) In-Reply-To: <87k4opu5fk.fsf@gmail.com> (Eric Schulte's message of "Tue, 20 Jul 2010 15:58:07 -0700") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric Apologize for duplicate post. Ccing the mailing list this time. Eric> Hi Jambunathan, I like the idea of displaying the Eric> begin/end_src lines as commented sections in the Eric> org-edit-special code buffer, and then potentially using them Eric> to change the values of the begin/end_src lines in the Eric> original org-mode buffer after exiting the src-edit buffer. Eric> It would be very cool to be able to edit header arguments Eric> while editing source code. It may be hard to implement, but Eric> could be worth the effort. Based on my experimentation, offering of #+begin_src and #+end_src lines (or for that matter 'surrounding context' - leading and trailing) is not problematic as such. What really gets in the way (in the sense of being irksome to implement) is the preserving and restoring of indentations while moving between the org and org-src buffers. I am giving up my efforts on this proposal. 1 Original Proposal ~~~~~~~~~~~~~~~~~~~~ What is this in org-buffer (defun hello () "" (message "Hello World") ) gets offered as ;; #+begin_src emacs-lisp (defun hello () "" (message "Hello World") ) ;; #+end_src in org-src buffer. All that babel has to do is to run 'comment-region' and 'uncomment-region' on leading and trailing contexts before moving into and out-of org-src buffers. (un)comment-region makes sure that this could be done in a target language agnostic way. Furthermore, the way emacs fills out comment blocks (while editing them) would retain the org-like structure of the surrounding context. Jambunathan K.