Re: Properly handle defaults in org-set-property

2023-02-03 Thread Ihor Radchenko
Janek F writes: > 1. Put the cursor on a heading that does not have an id > 2. Invoke (org-set-property "ID" (org-read-property-value "ID" nil > "default-value")) via keybind or Alt-: > 3. default-value is not within the list of suggestions Fixed, on main.

Re: Properly handle defaults in org-set-property

2023-02-02 Thread Janek F
1. Put the cursor on a heading that does not have an id 2. Invoke (org-set-property "ID" (org-read-property-value "ID" nil "default-value")) via keybind or Alt-: 3. default-value is not within the list of suggestions ~ Janek --- Original Message --- Ihor Radchenko schrieb am

Re: Properly handle defaults in org-set-property

2023-02-02 Thread Ihor Radchenko
Janek F writes: > That is exactly what I use, as you can see in my dotfiles: > https://code.ftt.gmbh/janek/dotfiles/src/branch/main/.config/doom/config.el#L293 > > But it leads to the exact aforementioned problem... May you please elaborate? What exactly did you do? What did you expect to

Re: Properly handle defaults in org-set-property

2023-02-01 Thread Janek F
That is exactly what I use, as you can see in my dotfiles: https://code.ftt.gmbh/janek/dotfiles/src/branch/main/.config/doom/config.el#L293 But it leads to the exact aforementioned problem... --- Original Message --- Ihor Radchenko schrieb am Dienstag, 20. September 2022 um 10:10: >

Re: Properly handle defaults in org-set-property

2022-09-20 Thread Ihor Radchenko
Janek F writes: > As discussed in > https://emacs.stackexchange.com/questions/71774/pass-default-value-to-org-set-property/71777, > providing a default to org-set-property does not always work. > > It calls `org-read-property-value`, which only uses the supplied default > value if it can

Properly handle defaults in org-set-property

2022-09-16 Thread Janek F
As discussed in https://emacs.stackexchange.com/questions/71774/pass-default-value-to-org-set-property/71777, providing a default to org-set-property does not always work. It calls `org-read-property-value`, which only uses the supplied default value if it can compute a list of allowed values