emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Hoffman <9qobl2n02@sneakemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Automatically move completed TODO items and checkboxes to another file
Date: Tue, 07 Sep 2010 11:58:35 -0700	[thread overview]
Message-ID: <i6620s$c5r$1@dough.gmane.org> (raw)
In-Reply-To: <87r5h8nfaq.wl%n.goaziou@gmail.com>

Nicolas Goaziou wrote:
> Hello,
>>>>>> Michael Hoffman writes:
> 
>> I've also tried regex-searching for something like "^ - \[ \]" ->
>> "*** TODO" but it's not foolproof since the number of leading spaces
>> doesn't always have something to do with the level of the previous
>> header.
> 
> It looks like you're looking for `org-list-make-subtree' (C-c C-*) and
> then replacing [CBON] with DONE and [CBOFF] with TODO.
> 
> If it's something else, could you explain it with an example?

Try this:

** TODO x
   - [ ] x1
   - [ ] x2
     - [ ] x2.1

Set the region to the checkbox lines, then do C-c C-*. The result is:

** TODO x
*** [ ] x1
*** [ ] x2
*** [ ] x2.1

If you set a macro to do each line individually and move down, you 
instead get:

** TODO x
*** [ ] x1
**** [ ] x2
***** [ ] x2.1

I would regard the correct conversion to be:

** TODO x
*** [ ] x1
*** [ ] x2
**** [ ] x2.1

I'm using Emacs 23.1.3 and org-mode 6.21b.

  reply	other threads:[~2010-09-07 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-17 20:34 Automatically move completed TODO items and checkboxes to another file Michael Hoffman
2010-08-17 20:46 ` Eric S Fraga
2010-08-19 21:41   ` Michael Hoffman
2010-09-03  0:31     ` Bastien
2010-09-03 21:17       ` Michael Hoffman
2010-09-05 18:44         ` Bastien
2010-09-05 19:47         ` Nicolas Goaziou
2010-09-07 18:58           ` Michael Hoffman [this message]
2010-09-07 19:42             ` Achim Gratz

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='i6620s$c5r$1@dough.gmane.org' \
    --to=9qobl2n02@sneakemail.com \
    --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).