From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to move up/down a headline but not the subtree? Date: Sat, 07 Jul 2018 10:20:55 +0200 Message-ID: <8736wv3194.fsf@nicolasgoaziou.fr> References: <23357.59250.52090.498378@frac.u-strasbg.fr> <87wouaq7lo.fsf@nicolasgoaziou.fr> <23359.22951.446973.150428@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbiSj-0007aI-PX for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 04:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbiSg-0000i2-Kx for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 04:21:01 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:49411) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fbiSg-0000hS-Dy for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 04:20:58 -0400 In-Reply-To: <23359.22951.446973.150428@frac.u-strasbg.fr> (Alain Cochard's message of "Fri, 6 Jul 2018 13:59:35 +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 Hello, Alain.Cochard@unistra.fr writes: > 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. This is indeed a quantitative difference. demoting/promoting is quite natural, predictable, and easy to implement. Barring indentation, it only affects the current line. This is a useful low-level function. Your suggestion is, OTOH, very vague. You want to move a headline and its section. Where? What should happen then to the rest of the sub-tree? Even if properly defined, it would potentially affect a lot of the document, possibly in a convoluted way. You certainly have good use for this, but I insist on this point: this is not a "basic" operation, at all. AFAIU, I do think that such a complex low-level operation should not be a standard command. > 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... I cannot answer as I don't know what exactly you want to achieve. > 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? Not at all. You can see how to contribute there: . If you don't have time for the gory details, you can also suggest a change in the Org manual without formatting it as a patch. Since the manual is an Org file[1], you don't even have to learn Texinfo. Regards, Footnotes: [1] https://code.orgmode.org/bzg/org-mode/raw/master/doc/org-manual.org -- Nicolas Goaziou 0x80A93738