2014/1/22 Nicolas Goaziou
> See `org-list-write-struct' docstring. Basically, STRUCT doesn't match
> real structure anymore since step C. You need to provide the original
> structure as a third argument so `org-list-write-struct' can modify
> buffer by set difference.
>
> (let* ((struct (org-li
Hello,
Cecil Westerhof writes:
> But one thing I do not understand. When you do an org-list-write-struct,
> you want to change the structure. So why is old-struct optional?
Good question.
IIRC, it's just syntactic sugar since `org-list-write-struct' will do
the `copy-tree' for you in most situ
2014/1/22 Nicolas Goaziou
> Cecil Westerhof writes:
>
> > I have an org-file wth the folowing:
> > - [ ] A (setq struct (org-list-struct))
> > - [-] B (org-list-get-checkbox 41 struct)
> > - [ ] C (org-list-set-checkbox 41 struct "[X]")
> > - [ ] D (org-list-get-checkbox 41 struct)
> > - [ ] E (
Cecil Westerhof writes:
> I have an org-file wth the folowing:
> - [ ] A (setq struct (org-list-struct))
> - [-] B (org-list-get-checkbox 41 struct)
> - [ ] C (org-list-set-checkbox 41 struct "[X]")
> - [ ] D (org-list-get-checkbox 41 struct)
> - [ ] E (org-list-write-struct struct (org-list-pare
2014/1/22 Cecil Westerhof
> 2014/1/22 Nicolas Goaziou
>
>> > 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) 'e
Hello,
Cecil Westerhof 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 STRUC
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