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 13:28:28 +0200 Message-ID: <23358.220.12819.903256@frac.u-strasbg.fr> References: <23357.59250.52090.498378@frac.u-strasbg.fr> <87lgaq0xke.fsf@ossau.homelinux.net> 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]:42814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb2Qj-0007VT-GM for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 07:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb2Qg-0006cc-Ce for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 07:28:09 -0400 Received: from smr2.u-strasbg.fr ([130.79.222.218]:58204 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 1fb2Qg-0006V6-4q for emacs-orgmode@gnu.org; Thu, 05 Jul 2018 07:28:06 -0400 In-Reply-To: <87lgaq0xke.fsf@ossau.homelinux.net> 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: Neil Jerram Cc: emacs-orgmode@gnu.org Neil Jerram writes on Thu 5 Jul 2018 11:46: > > What I would like to do is to be able to move a headline with > > everything up to (but not including) its first subheading. > > > > Does anyone know how to do that=3F =20 > > > > I am also interested in knowing if there are specific (deep=3F) > > reasons why this seemingly basic operation, which I see as the > > analogous of org-do-promote/demote and perform very often with > > standard (but tedious) emacs editing commands, is not already > > implemented. > My view/guess: because the subheadings are an integral part of the > content of the containing item. >=20 > Wouldn't you agree=3F It seems to me like a fairly fundamental > aspect of the Org model. Yes, but couldn't you raise the same argument about org-promote/demote=3F > That said, perhaps your use case is one where you've realized that > subheadings don't actually belong to the containing item=3F In that= > case, what could make more sense is to promote (or kill and yank > elsewhere) all of the wrongly placed subheadings. You could > promote an individual subheading with M-S-left, or kill and yank it > with C-c C-x C-w and C-c C-x C-y, but I don't know if there's an > easy way to repeat that over all subheadings. >=20 > Another possible approach: what about demoting just the containing > heading with M-left and then killing/yanking that elsewhere=3F My use case is after I have not too carefully written down many ideas. Then I start thinking and try to order them in a better way. All what you suggest is very sensible but much longer than the command I am looking for. Thanks much for you time. a. --=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=