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

2016-01-05 Thread Rasmus
Julien Cubizolles writes: > Rasmus writes: > > >> For more fine grained control you probably need to write something akin to >> org-set-property and check the actual values (e.g. to signal quit if an >> empty quote is returned). > > Actually, shouldn't org-set-property check for an empty quote f

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

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > For more fine grained control you probably need to write something akin to > org-set-property and check the actual values (e.g. to signal quit if an > empty quote is returned). Actually, shouldn't org-set-property check for an empty quote for the property name since it will res

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

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > When you enter no value (C-j when ido is enabled) or C-return with helm. > it insert :: VALUE. But then you end up with a malformed drawer, so C-g is better for the moment. > For more fine grained control you probably need to write something akin to > org-set-property and c

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

2016-01-05 Thread Rasmus
Julien Cubizolles writes: > Rasmus writes: > > >> Does this do what you want: >> >> (call-interactively 'org-set-property) > > Thanks, indeed it does, Marcin beat you to it though :-) > >>> Also, I will sometimes need to include several different >>> properties. What would be the right way

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

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > Does this do what you want: > > (call-interactively 'org-set-property) Thanks, indeed it does, Marcin beat you to it though :-) >> 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

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

2016-01-05 Thread Julien Cubizolles
Marcin Borkowski 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 someti

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

2016-01-05 Thread Rasmus
Hi Julien, Julien Cubizolles writes: > 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 possibili

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

2016-01-05 Thread Marcin Borkowski
On 2016-01-05, at 23:14, Julien Cubizolles 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 t

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

2016-01-05 Thread Julien Cubizolles
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 ca