From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-move-subtree-down whitespace dance Date: Wed, 11 Apr 2018 22:43:20 +0200 Message-ID: <87k1tdzd7b.fsf@nicolasgoaziou.fr> References: <84zi299ac8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6MaX-0006nj-Df for emacs-orgmode@gnu.org; Wed, 11 Apr 2018 16:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6MaT-0006yu-Gf for emacs-orgmode@gnu.org; Wed, 11 Apr 2018 16:43:29 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35649) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f6MaT-0006vc-AK for emacs-orgmode@gnu.org; Wed, 11 Apr 2018 16:43:25 -0400 In-Reply-To: <84zi299ac8.fsf@gmail.com> (Marco Wahl's message of "Wed, 11 Apr 2018 14:49:43 +0200") 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" To: Marco Wahl Cc: emacs-orgmode@gnu.org Hello, Marco Wahl writes: > After having stumbled over > > https://emacs.stackexchange.com/questions/32144/org-mode-org-move-subtree-down-function-strange-behavior > > I also think the behavior of org-move-subtree-down is strange. > > What about pulling out the dance with the whitespace from > org-move-subtree-down and just move the subtree as it is? There's at least a minor issue. I you like to separate your heading with N spaces, you must keep N blank lines at the end of the buffer at all time. Granted, the current implementation requires the same thing before the first headline, but those are easier to see and maintain. Intuitively, I would say the current behaviour is better, but feel free to provide a patch so we can test the other way. Regards, -- Nicolas Goaziou