all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Zebee Johnstone <zebeej@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: org mode checkboxes from file
Date: Wed, 22 Jan 2014 23:50:01 +0000 (UTC)	[thread overview]
Message-ID: <slrnle0m98.2bv1.zebeej@gmail.com> (raw)
In-Reply-To: mailman.12592.1390427861.10748.help-gnu-emacs@gnu.org

In gnu.emacs.help on Wed, 22 Jan 2014 22:57:17 +0100
Bastien <bzg@altern.org> wrote:
>
> Inserting from the file will not update the counter,
> updating at least one checkbox will.

The counter on the todo line stays at [0/0]  It doesn't see the
checkboxes underneath.

>
>> If I position the cursor at the end of the TODO line then delete until
>> the first line of the imported file moves to that line, then hit RET,
>> well suddenly all is well...
>
> You lost me here...
>

Start like this:

* TODO buy things. [/]

Then position cursor on the next line.  use C-x i to import a file that
looks like this
 - [ ] first thing to do
 - [ ] second thing to do

Position cursor on [/] on todo line.  do C-c C-c.  [/] is now [0/0]

update checkbox in first line with C-c C-c

no change in TODO count.


>> Has to be a more sensible way?
>
> Updating a checkbox should do.

nope...

What has worked is to not have the check boxes in the list in the
imported file, but to do the C-u C-c C-c once it is imported.

Now to see if that works when your imported list is

 - thing to do
   - subthing 1
   - subthing 2
 - other thing to do

Zebee


  parent reply	other threads:[~2014-01-22 23:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 21:24 org mode checkboxes from file Zebee Johnstone
2014-01-22 21:39 ` Thorsten Jolitz
2014-01-22 21:57 ` Bastien
     [not found] ` <mailman.12592.1390427861.10748.help-gnu-emacs@gnu.org>
2014-01-22 23:50   ` Zebee Johnstone [this message]
2014-01-23  6:37     ` Bastien

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnle0m98.2bv1.zebeej@gmail.com \
    --to=zebeej@gmail.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.