From: Marcin Borkowski <mbork@mbork.pl>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to call org-set-property from a function
Date: Tue, 05 Jan 2016 23:24:56 +0100 [thread overview]
Message-ID: <878u438y13.fsf@mbork.pl> (raw)
In-Reply-To: <87r3hv8yid.fsf@free.fr>
On 2016-01-05, at 23:14, Julien Cubizolles <j.cubizolles@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
next prev parent reply other threads:[~2016-01-05 22:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 22:14 How to call org-set-property from a function Julien Cubizolles
2016-01-05 22:24 ` Marcin Borkowski [this message]
2016-01-05 22:34 ` Julien Cubizolles
2016-01-05 22:27 ` Rasmus
2016-01-05 23:07 ` Julien Cubizolles
2016-01-05 23:34 ` Rasmus
2016-01-06 0:24 ` Julien Cubizolles
2016-01-06 0:38 ` Julien Cubizolles
2016-01-06 0:53 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878u438y13.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=emacs-orgmode@gnu.org \
--cc=j.cubizolles@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).