Julien Cubizolles <j.cubizol...@free.fr> writes: > Rasmus <ras...@gmx.us> writes: > > >> Does this do what you want: >> >> (call-interactively 'org-set-property) > > Thanks, indeed it does, Marcin beat you to it though :-) > >>> Also, I will sometimes need to include several different >>> properties. What would be the right way to run a loop where a new >>> property is set until the user answers something like C-return at the >>> prompt ? >> >> Here's naive approach. Probably you can find a more elegant way. >> >> (condition-case nil >> (while t >> (call-interactively 'org-set-property)) >> (quit nil)) > > That's working, I'm breaking out of the loop with C-g, is that what you > intended ?
Yes. When you enter no value (C-j when ido is enabled) it insert :: VALUE. For more fine grained control you probably need to write something akin to org-set-property and check the actual values (e.g. to signal quit if an empty quote is returned). Rasmus -- And when I’m finished thinking, I have to die a lot