emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-remember items are stored to the wrong headline
Date: Fri, 5 Sep 2008 08:20:49 +0200	[thread overview]
Message-ID: <65B4642A-FDF2-41D3-9774-399FF39BF904@uva.nl> (raw)
In-Reply-To: <87hc97t0q7.fsf@thinkpad.tsdh.de>

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

  parent reply	other threads:[~2008-09-05  7:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27  6:45 Org-remember items are stored to the wrong headline Tassilo Horn
2008-08-27  9:52 ` Manish
2008-08-27 10:24   ` Tassilo Horn
2008-09-05  6:20 ` Carsten Dominik [this message]
2008-09-05  7:42   ` Tassilo Horn

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=65B4642A-FDF2-41D3-9774-399FF39BF904@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=tassilo@member.fsf.org \
    /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).