From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: BUG: blank lines when cutting and pasting Date: Wed, 16 Jan 2008 11:05:14 +0100 Message-ID: <9ECC99FB-D14A-4BEA-8705-B335D724CE52@gmail.com> References: <878x2zaspn.wl%max@openchat.com> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JF59A-0000OX-Bp for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 05:05:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JF597-0000IN-IV for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 05:05:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JF596-0000G7-UY for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 05:05:20 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JF596-0001rh-2i for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 05:05:20 -0500 Received: by fg-out-1718.google.com with SMTP id d23so228607fga.30 for ; Wed, 16 Jan 2008 02:05:19 -0800 (PST) In-Reply-To: <878x2zaspn.wl%max@openchat.com> 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: Max Mikhanosha Cc: emacs-orgmode@gnu.org Hi Max maybe you have sen the recent thread about the behavior of whitespace when moving outline subtrees through the file. It was my impression that the conclusion was that the whitespace *before* the tree should be moved with the tree. Therefore I modified the cut and past of subtrees to do just that. I do agree that this feels a bit odd in interactive use, and I certainly could make this configurable or so. The alternative is that you develop the habit to move the cursor to the first empty line after the subtree where you want to paste, not to the beginning of the subtree before you want to paste. This is an issue difficult to handle right. I am inviting more contributions to this discussion! - Carsten On Jan 9, 2008, at 5:07 PM, Max Mikhanosha wrote: > Given the following top level heading > > > * test > ** one > *** one.one > > some text > > ** two > *** two.two > > some text > > ** three > *** three.three > > some text > > > If one goes to the beginning of heading ** two and use C-M-w to cut > the heading, the cut buffer starts with "\n\n** two", ie contains two > extra blank lines before the actual start of the heading. It does > not matter if children are expanded or not. > > If you paste that heading with C-M-y the extra blank line is inserted > before the heading. > > IMHO if user cuts a heading, cut buffer should contain the text > starting with asterisk, without any extra new lines. > > Regards, > Max > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode