From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: How to move up/down a headline but not the subtree? Date: Thu, 5 Jul 2018 14:07:20 +0200 Message-ID: <23358.2552.656578.663056@frac.u-strasbg.fr> 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> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb32M-0006Pn-7h for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 08:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb32J-00024P-2l for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 08:07:02 -0400 Received: from smr2.u-strasbg.fr ([130.79.222.218]:48072 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fb32I-0001tX-SJ for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 08:06:59 -0400 In-Reply-To: <87bmbmj6yp.fsf@gmail.com> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org 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=3F Then all you have to do is move and= > yank=3F Would still be long... > What was not clear in your OP was what happens to the first > subheading=3F Should it be promoted or does it suddenly become a > child of another main heading=3F 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). Regards --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=