From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [BABEL] C-v C-v M-x? Date: Thu, 04 Nov 2010 22:51:02 +0530 Message-ID: <81bp65t37l.fsf@gmail.com> References: <8162wkq6up.fsf@gmail.com> <87pqulhznw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33302 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE3Ux-0001eJ-6s for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 13:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE3Uw-0005li-92 for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 13:21:15 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:40280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE3Uw-0005la-6n for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 13:21:14 -0400 Received: by ywl5 with SMTP id 5so1836269ywl.0 for ; Thu, 04 Nov 2010 10:21:13 -0700 (PDT) In-Reply-To: <87pqulhznw.fsf@gmail.com> (Eric Schulte's message of "Thu, 04 Nov 2010 07:44:01 -0600") 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 >> Is there a C-c C-v M-x? Can this be made available. I will find it >> useful. >> > What behavior would you want this bound to? C-c C-v C-x does this today: #+begin_src emacs-lisp (org-babel-do-key-sequence-in-edit-buffer KEY) #+end_src In similar I vein, I would like C-c C-v M-x to do #+begin_src emacs-lisp (org-babel-do-command-in-edit-buffer INTERACTIVE-COMMAND) #+end_src To be specific, I have a custom interactive function in my .emacs, that cleans up or prettifies an XML buffer that is part of an OpenOffice file which is invoked with M-x my-xml-cleanup in an XML buffer. It basically converts "ugly / non-readable / long" xml stuff of the form #+begin_src xml blah blah blah #+end_src to #+begin_src xml blah blah blah #+end_src Typical way I go about this is 1. C-c ' 2. M-x my-xml-cleanup (in src buffer) 3. C-c ' I want all of 1,2,3 to be collapsed in to a single sequence, - C-c C-v M-x my-xml-cleanup Today if I have to get the above behaviour I would be required to bind my-xml-cleanup to be bound to a key-sequence which I would like to avoid. Jambunathan K.