From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to call org-set-property from a function Date: Tue, 05 Jan 2016 23:24:56 +0100 Message-ID: <878u438y13.fsf@mbork.pl> References: <87r3hv8yid.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGa2W-0001VP-Fr for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:25:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGa2T-0007B1-3S for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:25:16 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:48760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGa2S-0007Aj-SW for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:25:13 -0500 In-reply-to: <87r3hv8yid.fsf@free.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Julien Cubizolles Cc: emacs-orgmode@gnu.org 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 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