Re: org-set-properties for various (all) headings

2022-07-20 Thread Kaushal Modi
On Wed, Jul 20, 2022 at 4:07 AM Uwe Brauer wrote: > 2. Second code > > (defun test/set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > ^el is defined but not used. > (org-set-property "Ne

Re: org-set-properties for various (all) headings

2022-07-20 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> Two comments though >> >> 1. It works, if the source block is at the beginning of the file 😉 >> >> 2. I confess I don't understand anymore the use of `(let ((el >> (org-element-at-point)))': >> >> a. In your first version you used th

Re: org-set-properties for various (all) headings

2022-07-20 Thread Ihor Radchenko
Uwe Brauer writes: > Two comments though > > 1. It works, if the source block is at the beginning of the file 😉 > > 2. I confess I don't understand anymore the use of `(let ((el > (org-element-at-point)))': > >a. In your first version you used the defined «el», but know you >

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
>>> "KM" == Kaushal Modi writes: > On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: >> >> > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: >> >> > Try replacing the `org-set-property` form to: >> >> > (org-set-property "New" "[]") >> >> This does not anything (besides garbage collecting

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: > > > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > Try replacing the `org-set-property` form to: > > > (org-set-property "New" "[]") > > This does not anything (besides garbage collecting) > Did you replace only the `org-set-property`

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
> On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > Try replacing the `org-set-property` form to: > (org-set-property "New" "[]") This does not anything (besides garbage collecting) -- I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine'

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > #+begin_src elisp :noexport > (defun my-set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > (org-set-property "New" (org-element-property "[

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
>>> "KM" == Kaushal Modi writes: > Check out org-map-entries. I have one example here: > https://scripter.co/looping-through-org-mode-headings/#example-modifying-a-property-in-all-headings > . Very nice thanks however one question. I started as test with #+begin_src ** TODO Test :PROPERT

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
Check out org-map-entries. I have one example here: https://scripter.co/looping-through-org-mode-headings/#example-modifying-a-property-in-all-headings . On Tue, Jul 19, 2022, 4:16 AM Uwe Brauer wrote: > > > Now, I would add to all subheadings a new property, say > > :Received: [ ] > > Whose v

org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
Hi I have * Over :PROPERTIES: :ID: ef19f286-8769-4fe7-8f95-8167691257a0 :COLUMNS: %5TODO(Status) %5NR(Nr) :END: ** TODO Test :PROPERTIES: :Sent: [X] :END: ** WAIT Test2 :PROPERTIES: :Sent: [X] :END: ** TODO Test3 :PROPERTIES: :Sent: [ ] :