From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Org-remember items are stored to the wrong headline Date: Wed, 27 Aug 2008 15:22:43 +0530 Message-ID: References: <87hc97t0q7.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYHhn-00025J-Sq for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 05:52:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYHhm-00024l-4h for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 05:52:47 -0400 Received: from [199.232.76.173] (port=33885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYHhl-00024f-VX for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 05:52:46 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:35999) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYHhl-0006SP-86 for emacs-orgmode@gnu.org; Wed, 27 Aug 2008 05:52:45 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1551328tia.10 for ; Wed, 27 Aug 2008 02:52:43 -0700 (PDT) In-Reply-To: <87hc97t0q7.fsf@thinkpad.tsdh.de> Content-Disposition: inline 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: Tassilo Horn Cc: emacs-orgmode@gnu.org On Wed, Aug 27, 2008 at 12:15 PM, Tassilo Horn wrote: > Hi all, > > I use org-mode which is included in Emacs 23 from CVS (a current > checkout). This is my relevant config for org-remember: > > --8<---------------cut here---------------start------------->8--- > (require 'remember) > (setq org-default-notes-file "~/repos/org/main.org" > org-remember-default-headline "Remember" > org-remember-templates > '(;; TODOs > ("todo-template" ?t "* TODO %?\n (created: %U)\n %i\n %a") > ;; Ideas > ("idea-template" ?i "* Idea: %^{Title}\n (created: %U)\n %?\n %i\n %a") > ;; Notes > ("note-template" ?n "* Note: %?\n (created: %U)\n %i\n %a"))) > (setq remember-annotation-functions '(org-remember-annotation) > remember-handler-functions '(org-remember-handler) > org-remember-store-without-prompt t) > (add-hook 'remember-mode-hook 'org-remember-apply-template) > (global-set-key (kbd "C-c o r") 'org-remember) > --8<---------------cut here---------------end--------------->8--- > > The structure of my main.org file is as follows: > > --8<---------------cut here---------------start------------->8--- > * Remember > #+CATEGORY: Remember > > * Projects > #+CATEGORY: Projects > > * Foo > #+CATEGORY: Foo > --8<---------------cut here---------------end--------------->8--- > > When I create a new remember item with `C-c -o r', fill out one template > and hit `C-c C-c', it's always filed as **-headline in main.org, but not > below the "Remember" headline but below the last headline, i.e. "Foo". > > As a workaround I can put the Remember headline to the end of the file, > but according to the docs, it should work as I've set it up... I took liberty to rephrase the template definition. Seems to work as you expect it to now. (setq org-remember-templates (quote (( ;; TODOs ("todo-emplate" ?t "* TODO %? \n :CREATED: %U%i\n %a" "~/org/main.org" "Remember") ;; Ideas ("idea-template" ?i "* Idea: %^{Title}\n %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember") ;; Notes ("note-template" ?n "* Note: %?\n :CREATED: %U%i\n %a" "~/org/main.org" "Remember")))) HTH, -- Manish