[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Programming with org-element-cache -> short introduction?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Programming with org-element-cache -> short introduction? |
Date: |
Mon, 11 Aug 2014 16:22:54 +0200 |
Thorsten Jolitz <address@hidden> writes:
> Is it ok to do these two things:
>
> - let-bind a value returned by `org-element-at-point' and modify it (with
> plist-put), and
No, per advice given before. `plist-put' is destructive.
Instead, create a new element. You can use `org-combine-plists' to
generate its property list.
[...]
> - globally set a value returned by `org-element-at-point', modify it
> (with plist-put) in a function call, but use the variable as a quoted
> (!) function arg and reset the original value with this trick:
Ditto.