From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [BUG] org-capture: file+function Date: Wed, 18 Aug 2010 18:28:08 +0530 Message-ID: <814oesdqn3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41771 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OliDp-0008Pz-Ad for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 08:58:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OliDo-0004wo-6F for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 08:58:25 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:38385) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OliDn-0004w5-Ru for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 08:58:24 -0400 Received: by pwi3 with SMTP id 3so474673pwi.0 for ; Wed, 18 Aug 2010 05:58:22 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I have run into couple of issues with file+function templates. Let me explain. I have the following entry in org-capture-templates ( ("b" "Bookmarks" entry (file+function "~/bookmark.org" point) "** %c\n %i \n %?")) The intention is to add a bookmark entry at the cursor position. This entry gets triggered by an org-protocol://capture://b/... entry in the browser With the above setup I notice the following. 1. Entry doesn't get added at the cursor position. For example, create an empty bookmark.org like this. * Heading1 and position cursor at the end of the heading line. Trigger a bookmark entry. Notice that the entry gets added *before* the heading line. 2. Entry gets added with single '*' as opposed to '**' (Latter one was what was advised) IMHO, org-mode shouldn't override my advise when creating such file+function entries. To elaborate further, When I am researching a topic, I create a new headline in the bookmark.org and all subsequent bookmarks gets added to the cursor position. When I move on to another topic, I create another heading and position my cursor underneath it and all future bookmarks go under the new topic. I wonder whether this - "create entry at the target file at the current cursor location" - is a common workflow for others. If yes, may be having an escape sequence for this would be a good idea. Jambunathan K.