[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] API problem
From: |
Nicolas Goaziou |
Subject: |
Re: [O] API problem |
Date: |
Wed, 22 Jan 2014 18:03:36 +0100 |
Hello,
Cecil Westerhof <address@hidden> writes:
> 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'.
Anyway, it's much simpler to use `org-toggle-checkbox'.
Regards,
--
Nicolas Goaziou
- [O] API problem, Cecil Westerhof, 2014/01/22
- Re: [O] API problem,
Nicolas Goaziou <=
- Message not available
- [O] Fwd: API problem, Cecil Westerhof, 2014/01/22
- Re: [O] API problem, Cecil Westerhof, 2014/01/22
- Re: [O] API problem, Nicolas Goaziou, 2014/01/22
- Re: [O] API problem, Cecil Westerhof, 2014/01/22
- Re: [O] API problem, Nicolas Goaziou, 2014/01/22
- Re: [O] API problem, Cecil Westerhof, 2014/01/22