emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xavier Garrido <xavier.garrido@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: CUA copy/paste within code block
Date: Fri, 18 Apr 2014 11:32:54 +0200	[thread overview]
Message-ID: <5350F146.4080105@gmail.com> (raw)

Dear orgers,

I am a CUA mode user and when I want to copy/paste a line or block of 
code within a org-babel code block, I always get back to the beginning 
of the code block after pasting. For example, assume you have the 
following piece of code

echo "coucou"

#+BEGIN_SRC sh
for i in {0..10}
do
   echo $i
done
#+END_SRC

and you want to insert the 'echo "coucou"' line inside the for loop 
within the code block, by using the CTRL-C/CTRL-V combination keys, the 
cursor gets back to the beginning of the code block and does not stay 
where the paste is done. Here it is not a real problem since the code 
block is pretty small but when I have a long code block, the cursor is 
pretty far from where I have done the paste. Btw, selecting with the 
mouse and pasting with the middle click works just fine i.e. the cursor 
remains at the same position.

I do not know if it is a bug or a feature but is it possible to get rid 
of such behavior.

Thanks for your help/advice,
Xavier

             reply	other threads:[~2014-04-18  9:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-18  9:32 Xavier Garrido [this message]
2014-04-18 11:01 ` CUA copy/paste within code block Bastien
2014-04-18 12:16   ` Xavier Garrido

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=5350F146.4080105@gmail.com \
    --to=xavier.garrido@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).