From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: How to call org-set-property from a function Date: Tue, 05 Jan 2016 23:34:35 +0100 Message-ID: <87mvsj8xl0.fsf@free.fr> References: <87r3hv8yid.fsf@free.fr> <878u438y13.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGaBk-0006Cw-8G for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:34:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGaBh-0000ak-2B for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:34:48 -0500 Received: from plane.gmane.org ([80.91.229.3]:60664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGaBg-0000af-RY for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:34:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGaBf-0001nN-CV for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 23:34:43 +0100 Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 23:34:43 +0100 Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 23:34:43 +0100 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: emacs-orgmode@gnu.org 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 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.