From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: need file+function help Date: Sat, 06 Apr 2013 01:09:48 +0200 Message-ID: <87mwtc32k9.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOHKn-0007jf-2q for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 20:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOHKl-0002mS-OV for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 20:50:21 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:52213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOHKl-0002mH-Iy for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 20:50:19 -0400 Received: by mail-wi0-f174.google.com with SMTP id hj8so1088310wib.13 for ; Fri, 05 Apr 2013 17:50:18 -0700 (PDT) In-Reply-To: (Subhan Tindall's message of "Thu, 4 Apr 2013 11:42:44 -0700") 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: Subhan Tindall Cc: Org-Mode Hi Subhan, Subhan Tindall writes: > questions: > 1) are the values gathered by capture available to the function > specified for file+function, & if so what are their names? No. > 2) what is the general template for a function for use with > file+function, cleanup, return values, etc that would be expected? The function is expected to find a location where to put the new entry, not to return any specific value, and if it returns a value, the value is ignored. It can also act on the subtree at the location it has found, but this is slightly abusing the feature I'd say. > 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 "datetree+headline" is improper, because a location in a datetree is a headline... so maybe your best chance is to use (function ...) or (file+function ...) and try to see if the function can interactively prompt for the values you want and edit the location as you want. But again, this goes beyond the purpose of function, which is to find to location. -- Bastien