From mboxrd@z Thu Jan 1 00:00:00 1970 From: PT Subject: Error when invoking remember before the first header of org file Date: Thu, 1 Oct 2009 10:40:54 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtJ6M-0001cn-9X for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 06:41:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtJ6E-0001Wp-GO for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 06:41:30 -0400 Received: from [199.232.76.173] (port=50129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtJ6E-0001We-2F for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 06:41:26 -0400 Received: from lo.gmane.org ([80.91.229.12]:38959) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtJ6D-0007ga-HA for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 06:41:25 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MtJ67-0001Ig-N8 for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 12:41:19 +0200 Received: from dsl51B79293.pool.t-online.hu ([81.183.146.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 12:41:19 +0200 Received: from spamfilteraccount by dsl51B79293.pool.t-online.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 12:41:19 +0200 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: emacs-orgmode@gnu.org 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 #) 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)