From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: two basic elisp questions Date: Fri, 22 Jul 2016 11:38:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c05c4fe341f6505383b39e8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcWq-0006Kb-Cm for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 11:38:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQcWo-0005P7-FE for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 11:38:19 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:36225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcWo-0005P1-9q for emacs-orgmode@gnu.org; Fri, 22 Jul 2016 11:38:18 -0400 Received: by mail-qk0-x22e.google.com with SMTP id x1so104579487qkb.3 for ; Fri, 22 Jul 2016 08:38:18 -0700 (PDT) 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: Org Mode --94eb2c05c4fe341f6505383b39e8 Content-Type: text/plain; charset=UTF-8 (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). (2) Is it possible to set the default value for interactive file selection to something OTHER than the currect directory of the current buffer? Something like: (let ((base-dir "./Assignment1/")) (org-attach--attach)) I'd like to set different base directories when attaching files to subtrees of different first-level trees in a buffer. I guess I would set the value for the base directory with a property. thanks! Matt --94eb2c05c4fe341f6505383b39e8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
(1) can I interact= ively call an e lisp function like "org-set-property" and provide= a single argument to it even if it expects 2, e.g.:
(call-interac= tively 'org-set-protertyt (vector "GRADE" ))? (I don't se= em to be able to pass ANY arguments via call-interactively so maybe I misun= derstand something fundamental).

(2) Is it possible to set the= default value for interactive file selection to something OTHER than the c= urrect directory of the current buffer? Something like:

(let <= br>
=C2=A0 ((base-dir "./Assignment1/"))
=C2=A0 (or= g-attach--attach))

I'd like to set different base director= ies when attaching files to subtrees of different first-level trees in a bu= ffer. I guess I would set the value for the base directory with a property.=

thanks!
Matt
--94eb2c05c4fe341f6505383b39e8--