From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] [O, 2/3] When demoting a subtree, don't change level of inline tasks within Date: Sun, 6 Mar 2011 09:30:19 +0100 (CET) Message-ID: <20110306083019.7E9DE6A2C@myhost.localdomain> References: <1299084964-26440-2-git-send-email-n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52170 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw9MO-0003PF-2c for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 03:30:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw9MK-0005FF-Hi for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 03:30:37 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:49416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw9MK-0005FA-Ch for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 03:30:36 -0500 Received: by wwj40 with SMTP id 40so3498418wwj.30 for ; Sun, 06 Mar 2011 00:30:35 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch 644 (http://patchwork.newartisans.com/patch/644/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1299084964-26440-2-git-send-email-n.goaziou%40gmail.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O, 2/3] When demoting a subtree, > don't change level of inline tasks within > Date: Wed, 02 Mar 2011 21:56:03 -0000 > From: Nicolas Goaziou > X-Patchwork-Id: 644 > Message-Id: <1299084964-26440-2-git-send-email-n.goaziou@gmail.com> > To: Org mode list > Cc: Nicolas Goaziou > > * lisp/org.el (org-demote-subtree,org-promote-subtree): wrap > org-map-tree into org-with-limited-levels macro, so it avoids > operating on inline tasks. > > --- > lisp/org.el | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index 6e1be76..8ae5e6f 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -7002,7 +7002,7 @@ When a subtree is being promoted, the hook will be called for each node.") > See also `org-promote'." > (interactive) > (save-excursion > - (org-map-tree 'org-promote)) > + (org-with-limited-levels (org-map-tree 'org-promote))) > (org-fix-position-after-promote)) > > (defun org-demote-subtree () > @@ -7010,7 +7010,7 @@ See also `org-promote'." > See also `org-promote'." > (interactive) > (save-excursion > - (org-map-tree 'org-demote)) > + (org-with-limited-levels (org-map-tree 'org-demote))) > (org-fix-position-after-promote)) > > >