From: Matthew Lundin <mdl@imapmail.org>
To: Trance Diviner <trance.diviner@gmail.com>
Cc: Matt Lundin <mdl@imapmail.org>, emacs-orgmode@gnu.org
Subject: Re: inserting notes at level 1 with org-remember
Date: Fri, 26 Feb 2010 17:26:30 -0500 [thread overview]
Message-ID: <878wafws4p.fsf@fastmail.fm> (raw)
In-Reply-To: <68151009-D0CA-4C64-9CEC-8C4613799B81@gmail.com> (Trance Diviner's message of "Fri, 26 Feb 2010 07:24:43 -0800")
Hi Trance,
Trance Diviner <trance.diviner@gmail.com> writes:
> On Feb 25, 2010, at 7:38 PM, Matt Lundin wrote:
>
>> Trance Diviner <trance.diviner@gmail.com> 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
next prev parent reply other threads:[~2010-02-26 22:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 17:18 inserting notes at level 1 with org-remember Trance Diviner
2010-02-26 3:38 ` Matt Lundin
2010-02-26 15:24 ` Trance Diviner
2010-02-26 22:26 ` Matthew Lundin [this message]
2010-03-04 11:49 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878wafws4p.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=trance.diviner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).