[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to call org-set-property from a function
From: |
Julien Cubizolles |
Subject: |
Re: [O] How to call org-set-property from a function |
Date: |
Wed, 06 Jan 2016 00:07:03 +0100 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) |
Rasmus <address@hidden> 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Ā ?
Julien.