From: Bastien Guerry <bzg@altern.org>
To: emacs-orgmode@gnu.org
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) [thread overview]
Message-ID: <20110306083019.7E9DE6A2C@myhost.localdomain> (raw)
In-Reply-To: 1299084964-26440-2-git-send-email-n.goaziou@gmail.com
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 <n.goaziou@gmail.com>
> X-Patchwork-Id: 644
> Message-Id: <1299084964-26440-2-git-send-email-n.goaziou@gmail.com>
> To: Org mode list <emacs-orgmode@gnu.org>
> Cc: Nicolas Goaziou <n.goaziou@gmail.com>
>
> * 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))
>
>
>
next prev parent reply other threads:[~2011-03-06 8:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 16:56 [PATCH 1/3] Fix bug when narrowing to subtree with point at an inline task Nicolas Goaziou
2011-03-02 16:56 ` [PATCH 2/3] When demoting a subtree, don't change level of inline tasks within Nicolas Goaziou
2011-03-06 8:30 ` Bastien Guerry [this message]
2011-03-02 16:56 ` [PATCH 3/3] Promote and demote inline tasks Nicolas Goaziou
2011-03-06 8:30 ` [Accepted] [O,3/3] " Bastien Guerry
2011-03-06 8:29 ` [Accepted] [O, 1/3] Fix bug when narrowing to subtree with point at an inline task Bastien Guerry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110306083019.7E9DE6A2C@myhost.localdomain \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).