From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: CUA copy/paste within code block Date: Fri, 18 Apr 2014 11:32:54 +0200 Message-ID: <5350F146.4080105@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb5AS-0005Cd-1s for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb5AI-0007E3-My for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:33:07 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:35350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb5AI-0007Dz-FU for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:32:58 -0400 Received: by mail-we0-f173.google.com with SMTP id w61so1380757wes.18 for ; Fri, 18 Apr 2014 02:32:57 -0700 (PDT) Received: from [134.158.89.151] (nb-nemo6.lal.in2p3.fr. [134.158.89.151]) by mx.google.com with ESMTPSA id gp15sm42827448wjc.10.2014.04.18.02.32.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Apr 2014 02:32:55 -0700 (PDT) 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" 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