From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: inserting notes at level 1 with org-remember Date: Thu, 4 Mar 2010 12:49:28 +0100 Message-ID: <7EE2708B-5F38-465E-8AF4-1DBBC36347AD@gmail.com> References: <878wagd5u0.fsf@fastmail.fm> <68151009-D0CA-4C64-9CEC-8C4613799B81@gmail.com> <878wafws4p.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) 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 1Nn9Yc-00071G-RJ for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 06:49:34 -0500 Received: from [140.186.70.92] (port=41494 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nn9Yc-000711-1G for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 06:49:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nn9Yb-0005YK-KX for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 06:49:34 -0500 Received: from ey-out-1920.google.com ([74.125.78.147]:34188) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nn9Yb-0005YE-EI for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 06:49:33 -0500 Received: by ey-out-1920.google.com with SMTP id 26so514641eyw.34 for ; Thu, 04 Mar 2010 03:49:32 -0800 (PST) In-Reply-To: <878wafws4p.fsf@fastmail.fm> 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: Matthew Lundin Cc: emacs-orgmode@gnu.org, Trance Diviner Hi Trance and Matt, I am not able to reproduce this problem. - Carsten On Feb 26, 2010, at 11:26 PM, Matthew Lundin wrote: > Hi Trance, > > Trance Diviner writes: > >> On Feb 25, 2010, at 7:38 PM, Matt Lundin wrote: >> >>> Trance Diviner writes: >>> >>>> But I find that org-remember always creates notes as a level-2 >>>> entry. >>>> For example, starting with an empty "example.org" file and the >>>> following configuration: >>>> >>>> (setq org-remember-templates >>>> '(("Note" ?n "* %u %?\n\n%i\n%a" "example.org" top))) >>>> >>>> Invoking org-remember twice results in these contents: >>>> >>>> ** [2010-02-25 Thu] note two >>>> ** [2010-02-25 Thu] note one >>>> >>>> >>>> What I expected was: >>>> >>>> * [2010-02-25 Thu] note two >>>> * [2010-02-25 Thu] note one >>> >>> I cannot duplicate this. With your remember template, org mode >>> files the >>> entries at the top of example.org as level 1 headlines. >> >> That's promising. What org-mode and emacs version? >> >> org-version >> "6.33x" >> emacs-version >> "23.1.90.1" > > I tried it again exactly as you explained and now can confirm that > this > behavior occurs when there is no blank/new line at the top of the > remember target file. (When I tried it before, I used a file that > had a > new line.) > > To duplicate the bug, I did the following: > > 1) "touch example.org" > > 2) called the remember template above. > > If you want a temporary fix, ensure that there is a blank/new line > (or a > comment line) at the top of your target file. (If you have content in > the file, this shouldn't be a problem.) > > Best, > Matt > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten