emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to call org-set-property from a function
@ 2016-01-05 22:14 Julien Cubizolles
  2016-01-05 22:24 ` Marcin Borkowski
  2016-01-05 22:27 ` Rasmus
  0 siblings, 2 replies; 9+ messages in thread
From: Julien Cubizolles @ 2016-01-05 22:14 UTC (permalink / raw)
  To: emacs-orgmode

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.

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 ?

Julien.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-01-06  0:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 22:14 How to call org-set-property from a function Julien Cubizolles
2016-01-05 22:24 ` Marcin Borkowski
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

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).