From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to move up/down a headline but not the subtree? Date: Thu, 05 Jul 2018 14:39:45 +0100 Message-ID: <87po01iyxq.fsf@gmail.com> References: <23357.59250.52090.498378@frac.u-strasbg.fr> <87muv6j9tr.fsf@gmail.com> <23357.62744.719557.989359@frac.u-strasbg.fr> <87bmbmj6yp.fsf@gmail.com> <23358.2552.656578.663056@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb4UC-0003SL-IK for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 09:39:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb4U8-0001Ka-I4 for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 09:39:52 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:54639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb4U8-0001Ft-Ao for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 09:39:48 -0400 Received: by mail-wm0-x22d.google.com with SMTP id i139-v6so11143749wmf.4 for ; Thu, 05 Jul 2018 06:39:48 -0700 (PDT) In-Reply-To: <23358.2552.656578.663056@frac.u-strasbg.fr> (Alain Cochard's message of "Thu, 5 Jul 2018 14:07:20 +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: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org On Thursday, 5 Jul 2018 at 14:07, Alain.Cochard@unistra.fr wrote: > Eric S Fraga writes on Thu 5 Jul 2018 11:46: > > > Well, it's a deterministic set of steps so you could record a macro > > to do the selection and kill? Then all you have to do is move and > > yank? > > Would still be long... You save the keyboard macro as a key binding and it would be no longer than what you were asking for? Maybe one key stroke longer. > > What was not clear in your OP was what happens to the first > > subheading? Should it be promoted or does it suddenly become a > > child of another main heading? > > In my mind, everything except the headline and its associated text > would stay unchanged, though your questions make me realize that a > reasonable option would be that the whole subtree be promoted (but > probably not just the 1st subheading). But, as others have noted, this is a change of (semantic) structure and not well defined which is arguably why there's no automatic way of doing what you want. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4