From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: two basic elisp questions Date: Fri, 22 Jul 2016 19:27:39 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQeHT-0007Sa-DA for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 13:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQeHN-0005Uo-1b for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 13:30:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:55404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQeHM-0005U3-QV for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 13:30:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bQeHG-0001xp-38 for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 19:30:22 +0200 Received: from dslb-088-066-015-139.088.066.pools.vodafone-ip.de ([88.66.15.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2016 19:30:22 +0200 Received: from mwe012008 by dslb-088-066-015-139.088.066.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2016 19:30:22 +0200 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" To: emacs-orgmode@gnu.org Hello, Matt Price writes: > (1) can I interactively call an e lisp function like "org-set-property" and > provide a single argument to it even if it expects 2, e.g.: > (call-interactively 'org-set-protertyt (vector "GRADE" ))? (I don't seem to > be able to pass ANY arguments via call-interactively so maybe I > misunderstand something fundamental). right, call-interactively uses the interactive form of the called function to figure out the parameters and their values. Maybe you are looking for something like this: (defun set-foo-value (value) (interactive (list (read-string "prop value: " nil nil ""))) (org-set-property "foo" value)) (call-interactively 'set-foo-value) Regards hmw