emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: PT <spamfilteraccount@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Error when invoking remember before the first header of org file
Date: Thu, 1 Oct 2009 13:14:28 +0200	[thread overview]
Message-ID: <9FB62AB4-8A1B-42C1-8195-42F0CE5CA9AD@gmail.com> (raw)
In-Reply-To: <loom.20091001T123602-849@post.gmane.org>

Hi PT,

please always try the latest version before reporting a bug.  The
bug might be fixed already.  This particular bug was fixed on  
September 4th.


- Carsten

On Oct 1, 2009, at 12:40 PM, PT wrote:

> I have remember set up, so that new notes always go to a certain org
> file under a certain header:
> (setq org-default-notes-file (concat org-directory "/todo.org"))
> (setq org-remember-default-headline "capture")
> (setq org-remember-templates
>      '(("Todo" ?t "* TODO %?")))
> It works well, but if I'm at the beginning of an org file, before the
> first header then M-x org-remember bails out with an error.
> Is it a bug? Why does it care where I'm standing in the file?
> Org-mode version 6.30:
> Debugger entered--Lisp error: (error "Before first headline at  
> position 1
> in buffer work.org")
>  signal(error ("Before first headline at position 1 in buffer  
> work.org"))
>  error("Before first headline at position %d in buffer %s"
> 1 #<buffer work.org>)
>  byte-code("  `p# " [error "Before first headline at position %d
> in buffer %s"] 4)
>  org-back-to-heading(t)
>  org-heading-components()
>  org-store-link(nil)
>  org-remember-annotation()
>  run-hook-with-args-until-success(org-remember-annotation)
>  remember(nil)
>  org-do-remember()
>  org-remember(nil)
>  call-interactively(org-remember t nil)
>  execute-extended-command(nil)
>  call-interactively(execute-extended-command nil nil)
> _______________________________________________
> 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

      reply	other threads:[~2009-10-01 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01 10:40 Error when invoking remember before the first header of org file PT
2009-10-01 11:14 ` Carsten Dominik [this message]

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:

  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=9FB62AB4-8A1B-42C1-8195-42F0CE5CA9AD@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=spamfilteraccount@gmail.com \


* 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


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).