From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: inserting notes at level 1 with org-remember Date: Fri, 26 Feb 2010 17:26:30 -0500 Message-ID: <878wafws4p.fsf@fastmail.fm> References: <878wagd5u0.fsf@fastmail.fm> <68151009-D0CA-4C64-9CEC-8C4613799B81@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nl8ah-0000rq-RD for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 17:23:23 -0500 Received: from [140.186.70.92] (port=48984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl8ag-0000rb-Kl for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 17:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nl8af-0002E3-SK for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 17:23:22 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:53660) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl8af-0002Dy-Od for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 17:23:21 -0500 In-Reply-To: <68151009-D0CA-4C64-9CEC-8C4613799B81@gmail.com> (Trance Diviner's message of "Fri, 26 Feb 2010 07:24:43 -0800") 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: Trance Diviner Cc: Matt Lundin , emacs-orgmode@gnu.org 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