From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Org-remember and org-back-to-heading Date: Thu, 03 Sep 2009 12:42:30 -0400 Message-ID: <87ljkwou89.fsf@fastmail.fm> 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 1MjFK1-0006ZQ-Q0 for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 12:38:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjFJx-0006T5-Oa for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 12:38:05 -0400 Received: from [199.232.76.173] (port=32807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjFJx-0006Sq-Fp for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 12:38:01 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:42929) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjFJx-0007W1-4C for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 12:38:01 -0400 Received: from archeee (adsl-99-19-45-72.dsl.klmzmi.sbcglobal.net [99.19.45.72]) by mail.messagingengine.com (Postfix) with ESMTPSA id B90911DDE7 for ; Thu, 3 Sep 2009 12:37:58 -0400 (EDT) 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: Org Mode List Hi everyone, When I call org-remember or org-store-link above the first headline in an org buffer, I receive the following error message: Before first headline at position 1 in buffer index.org It seems that either org-remember or org-store-link (or both) calls org-back-to-heading in order to grab the relevant heading for annotation. As a result, if I try to store a link above the first heading, emacs spits out the error message above because there is no heading to return to. Is this the intended behavior? Sometimes I prefer to create a link to the file as a whole rather than to a particular headline. E.g., I might want to create a todo to organize notes.org, which is not an agenda file. In this instance, it does not matter whether org-remember creates a link to a particular headline. In fact, I would prefer a link to the file as a whole and thus expect to be able to store a link while on the first empty line of the file or on #+TITLE. Thanks, Matt