From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Tindall Subject: need file+function help Date: Thu, 4 Apr 2013 11:42:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9473a7916000304d98d561a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNp7e-0001C0-Rk for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 14:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNp7X-0003Mw-0w for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 14:42:54 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:64002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNp7W-0003M6-Of for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 14:42:46 -0400 Received: by mail-la0-f43.google.com with SMTP id ek20so2804083lab.16 for ; Thu, 04 Apr 2013 11:42:44 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode --14dae9473a7916000304d98d561a Content-Type: text/plain; charset=ISO-8859-1 There's really very little documentation about how this works, could use a pointer to an example or two, or even a bit of help. Here's my goal: Using a capture temple of file+function to do the following: (basically enhancing file+datetree) user enters a bit of information (ticket ID, description, etc) using normal capture template stuff (prompt for tags or prompt{enter ticket ID} the ticket number is used as a parameter to file+function to: a) find the current date in the tree b) find or create a subtree based on the ticket ID c) add an entry below this subtree with the ticket ID as a tag, and the description as the headline, plus possible links to the file where capture was initiated etc. d) 'clock in' to the task (:clock-in property works great) I have all of this working fine using file+datetree EXCEPT the subtree create or add questions: 1) are the values gathered by capture available to the function specified for file+function, & if so what are their names? 2) what is the general template for a function for use with file+function, cleanup, return values, etc that would be expected? 3) would it be better to extend datetree to datetree+headline for entries of this type? it seems like it a pretty usefully functionality to have (I can think of 2 or 3 instances i'd regularly use this just off the top of my head Thanks, all! Subhan -- Subhan Michael Tindall | Software Developer | smt@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT --14dae9473a7916000304d98d561a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
There's really very little documentation about how thi= s works, could use a pointer to an example or two, or even a bit of help.
Here's my goal:
Using a capture temple of file+function to do= the following: (basically enhancing file+datetree)
user enters a bit of information (ticket ID, description, etc) using n= ormal capture template stuff (prompt for tags or prompt{enter ticket ID}
the ticket number is used as a parameter to file+function to:
a) find the current date in the tree
b) find or create a sub= tree based on the ticket ID
c) add an entry below this subtree wi= th the ticket ID as a tag, and the description as the headline, plus possib= le links to the file where capture was initiated etc.
d) 'clock in' to the task (:clock-in property works grea= t)

I have all of this working fine usi= ng file+datetree EXCEPT the subtree create or add

questions:
1) are the values gathered by capture= available to the function specified for file+function, & if so what ar= e their names?
2) what is the general template for a functi= on for use with file+function, cleanup, return values, etc that would be ex= pected?
3) would it be better to extend datetree to datetree+headline fo= r entries of this type? it seems like it a pretty usefully functionality to= have (I can think of 2 or 3 instances i'd regularly use this just off = the top of my head
Thanks, all!
Subhan



--
Subhan Michael Tindall | Software Developer
| smt@rentrakmail.com
RENTRAK | www.rentrak= .com | NASDAQ: RENT
--14dae9473a7916000304d98d561a--