emacs-orgmode
[Top][All Lists]
Advanced

[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: Tue, 05 Jan 2016 23:34:35 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:


> What about call-interactively?
Thanks, that's the way to do it:

#+begin_src emacs-lisp
  (interactive)
  (save-excursion
    (org-beamer-select-environment)
    (org-set-tags-command)
      (call-interactively 'org-set-property)
    )
#+end_src

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

I can still run C-x-p afterwards, I've already saved many keystrokes.

Julien.




reply via email to

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