From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-remember items are stored to the wrong headline Date: Fri, 5 Sep 2008 08:20:49 +0200 Message-ID: <65B4642A-FDF2-41D3-9774-399FF39BF904@uva.nl> References: <87hc97t0q7.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbVXv-0006K7-VY for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbVXs-0006Hj-UG for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:54 -0400 Received: from [199.232.76.173] (port=33789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbVXs-0006H6-7A for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:52 -0400 Received: from mx20.gnu.org ([199.232.41.8]:39707) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbVXr-0001RA-Kl for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:52 -0400 Received: from ug-out-1314.google.com ([66.249.92.168]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbVXq-0004B8-Ha for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:50 -0400 Received: by ug-out-1314.google.com with SMTP id a2so24879ugf.17 for ; Fri, 05 Sep 2008 00:15:50 -0700 (PDT) In-Reply-To: <87hc97t0q7.fsf@thinkpad.tsdh.de> 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 Hi Tassilo, this is a bug in compatibility code that is supposed convert values previously valid for org-remember-templates to the new format. In your case, this code modified your templates to include the empty string as the default headline. You can see this if you look at the value of org-remember-templates after you have used remember for the first time in an emacs session. Things will be fine if you explicitly specify nil for the file and headline fields in the template definition. Or get the latest git release, where this problem is fixed as well. Thanks for the report. - Carsten On Aug 27, 2008, at 8:45 AM, 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... > > Is this a bug or am I doing something wrong? > > Bye, > Tassilo > -- > RMS counted to infinity. Twice... > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode