emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: API problem
Date: Wed, 22 Jan 2014 21:24:32 +0100	[thread overview]
Message-ID: <CAG-LmmCNgc3VVpLofhvx7NLojRQ8D5n7O6-vrc_VzyMqeYgp8g@mail.gmail.com> (raw)
In-Reply-To: <CAG-LmmApJwvTvTYZ3cFjb_rLkiX9B_JP3FzTX-D_kW3H1=D6pA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

Did not go to the list. :'(

---------- Forwarded message ----------
From: Cecil Westerhof <cldwesterhof@gmail.com>
Date: 2014/1/22
Subject: Re: API problem
To: Nicolas Goaziou <n.goaziou@gmail.com>

2014/1/22 Nicolas Goaziou <n.goaziou@gmail.com>

> > To solve a problem I have the following line in an org file:
> >         - [ ] B (org-list-set-checkbox (line-beginning-position)
> > (org-list-struct) "[X]") ITEM STRUCT CHECKBOX (org-list-send-item
> > (line-beginning-position) 'end (org-list-struct)) ITEM DEST STRUCT
> >
> > Executing the org-list-send-item brings the entry to the end of the list,
> > but executing org-list-set-checkbox does nothing. What am I doing
> > wrong?
> `org-list-set-checkbox' modifies the structure, i.e., the internal list
> representation. It doesn't modify the buffer. You would have to apply
> the new structure to the buffer with `org-list-write-struct'.

Just started today to want to do some thing, so I am a tabula rasa. ;-)

> Anyway, it's much simpler to use `org-toggle-checkbox'.

That goes wrong when there is a marked region. I only want to set the
current checkbox.

So I have to work out how to use org-list-wrte-struct.

Cecil Westerhof

[-- Attachment #2: Type: text/html, Size: 2339 bytes --]

  parent reply	other threads:[~2014-01-22 20:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 16:37 API problem Cecil Westerhof
2014-01-22 17:03 ` Nicolas Goaziou
     [not found]   ` <CAG-LmmApJwvTvTYZ3cFjb_rLkiX9B_JP3FzTX-D_kW3H1=D6pA@mail.gmail.com>
2014-01-22 20:24     ` Cecil Westerhof [this message]
2014-01-22 20:28       ` Cecil Westerhof
2014-01-22 20:40         ` Nicolas Goaziou
2014-01-22 21:57           ` Cecil Westerhof
2014-01-22 22:23             ` Nicolas Goaziou
2014-01-22 23:52           ` Cecil Westerhof

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:

  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=CAG-LmmCNgc3VVpLofhvx7NLojRQ8D5n7O6-vrc_VzyMqeYgp8g@mail.gmail.com \
    --to=cldwesterhof@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).