On 2016-01-05, at 23:14, Julien Cubizolles <j.cubizol...@free.fr> wrote:

> I have the following function to automate the creation of a new entry:
>
> #+begin_src emacs-lisp
>   (interactive)
>   (save-excursion
>     (org-beamer-select-environment)
>     (org-set-tags-command)
>     )
> #+end_src
>
> I'd like to add the possibility to set some properties through
> (org-set-property) but I can't figure out how to call it in its
> interactive way, so that it prompts me for a property and value? Of
> course adding (org-set-property) or (interactive (org-set-property))
> doesn't work.

What about call-interactively?

> 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?

That I don't know.

> Julien.

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

Reply via email to