[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to call org-set-property from a function

From: Marcin Borkowski
Subject: Re: [O] How to call org-set-property from a function
Date: Tue, 05 Jan 2016 23:24:56 +0100
User-agent: mu4e 0.9.13; emacs

On 2016-01-05, at 23:14, Julien Cubizolles <address@hidden> 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.


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

[Prev in Thread] Current Thread [Next in Thread]