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: Fri, 6 Jul 2018 13:59:35 +0200 Message-ID: <23359.22951.446973.150428@frac.u-strasbg.fr> References: <23357.59250.52090.498378@frac.u-strasbg.fr> <87wouaq7lo.fsf@nicolasgoaziou.fr> 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]:59916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbPdg-0007Uc-6r for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 08:15:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbPdd-0005zg-11 for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 08:15:04 -0400 Received: from smr1.u-strasbg.fr ([130.79.222.217]:41604 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 1fbPdc-0005yu-Q3 for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 08:15:00 -0400 In-Reply-To: <87wouaq7lo.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi, and thanks for your message. Nicolas Goaziou writes on Thu 5 Jul 2018 12:50: > > 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. > Yes, this is not a "basic" operation: it breaks the structure of > the document. Org helps you maintain it and organize it, this would > be going the opposite way. I do not understand this. When one is demoting/promoting headlines[fn:2] (and even whole subtrees), it seems to me that one is implicitly admitting that the structure is wrong. I only see a quantitative difference (i.e., not a qualitative one) between doing this and performing want I want to do. Only now do I realize that it is probably the same logic which is behind the triggering of the error "Cannot move past superior level or buffer limit" which occurs when trying to move a subtree. Well, I certainly don't appreciate these limitations :-) At least in that case I can not too painfully break the law by promoting+moving+demoting... > There are ways to do this, and you can even automate them with a > keyboard macro or a function. Indeed, I will try to hack something. Ideally, it has to work for list items as well -- certainly not easy for me. I had hoped someone would have done it already... > > [fn:1] I am surprised I can't find it in the manual -- I find it > > extremely useful. > Documentation patches are always welcome. The hardest part would be = to > find an appropriate location for this. Maybe Miscellaneous. I understand patches are welcome, but I don't know how to do that yet. In that case, is it better that I remain silent=3F Regards a. [fn:2] Here I am not even talking about cases like going from: * head=20 * sub head text =09* sub sub head to: * head=20 * sub head text =09* sub sub head which is obtained by demoting 'sub head' 3 times. (With the similar structure with list items, one gets "Cannot outdent an item without its children".) --=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=