emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BABEL] C-v C-v M-x?
Date: Thu, 04 Nov 2010 22:51:02 +0530	[thread overview]
Message-ID: <81bp65t37l.fsf@gmail.com> (raw)
In-Reply-To: <87pqulhznw.fsf@gmail.com> (Eric Schulte's message of "Thu, 04 Nov 2010 07:44:01 -0600")


>> 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
  <text:p> blah blah blah </text:p>
#+end_src

to

#+begin_src xml
  <text:p>
    blah blah blah 
  </text:p>
#+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.

      reply	other threads:[~2010-11-04 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 11:04 [BABEL] C-v C-v M-x? Jambunathan K
2010-11-04 13:44 ` Eric Schulte
2010-11-04 17:21   ` Jambunathan K [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81bp65t37l.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).