Re: Setting buffer-level properties in code

2024-10-12 Thread Ihor Radchenko
mb...@mbork.pl writes: > #+PROPERTY: name value > ... > However, what I need is to programmatically insert or change that line > to set or update the property. Is there a built-in function for that or > do I have to search and update that line myself? There is nothing built-in, AFAIK. Maybe http

Re: Setting buffer-level properties in code

2024-10-12 Thread Rohit Patnaik
> However, what I need is to programmatically insert or change that line > to set or update the property. Is there a built-in function for that or > do I have to search and update that line myself? I would look at `org-entry-put`. It seems like it does what you need --- it takes an element, mark

Setting buffer-level properties in code

2024-10-10 Thread mbork
Hi fellow Orgers, I know that I can say #+PROPERTY: name value somewhere in the buffer to set the property `name' to `value' for every entry (assuming I use inheritance, like in `(org-entry-get (point) "name" t)`). However, what I need is to programmatically insert or change that line to set or