From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yagnesh Raghava Yakkala Subject: Re: [feature] Cut & paste of subtree Date: Thu, 01 Nov 2012 00:42:11 +0900 Message-ID: <87liemk5rg.fsf@yagnesh.org> References: <80ip9q99ys.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaRQ-0004pQ-MG for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 11:42:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTaRP-0002Co-Af for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 11:42:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:34374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTaRP-0002CF-48 for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 11:42:51 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TTaRU-0007a1-HM for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 16:42:56 +0100 In-Reply-To: <80ip9q99ys.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 31 Oct 2012 12:06:51 +0100") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello Sebastien, On 10=E6=9C=88 31 2012, "Sebastien Vauban" wrote: > Hello, > > Since more or less one month or so, I've seen a change in the behavior of= C-c > C-x C-w, when cutting and pasting a subtree. I did know about this key binding, thanks for letting me know.. generally I go to the beginning of the heading I fold it and cut it., may be work around for you.. coming the problem, I can confirm the behavior. A shot in the dark. --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org.el b/lisp/org.el index 63c4323..039e901 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7721,7 +7721,6 @@ useful if the caller implements cut-and-paste as copy= -then-paste-then-cut." (if (org-called-interactively-p 'any) (org-back-to-heading nil) ; take what looks like a subtree (org-back-to-heading t)) ; take what is really there - (org-back-over-empty-lines) (setq beg (point)) (skip-chars-forward " \t\r\n") (save-match-data @@ -7731,7 +7730,6 @@ useful if the caller implements cut-and-paste as copy= -then-paste-then-cut." (org-forward-heading-same-level (1- n) t) (error nil)) (org-end-of-subtree t t)) - (org-back-over-empty-lines) (setq end (point)) (goto-char beg0) (when (> end beg) --8<---------------cut here---------------end--------------->8--- Thanks., --=20 =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81 YYR