From mboxrd@z Thu Jan 1 00:00:00 1970 From: Esben Stien Subject: Link to Top Most Heading Date: Mon, 16 Jun 2014 04:02:48 +0200 Message-ID: <87ha3lzk53.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwMGJ-0002Ml-Qd for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 22:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwMGA-0005J1-V9 for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 22:03:07 -0400 Received: from nmsh1.e.nsc.no ([193.213.121.72]:38862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwMGA-0005I0-Jo for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 22:02:58 -0400 Received: from quasar.esben-stien.name (cm-84.210.71.233.getinternet.no [84.210.71.233]) (authenticated bits=0) by nmsh1.nsc.no (8.14.7/8.14.7) with ESMTP id s5G22mMu016779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NOT) for ; Mon, 16 Jun 2014 04:02:49 +0200 (MEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I'm trying to figure out how I can get a link to the top most heading without actually moving point up there and doing C-c C-l. Is there some function to do that? If I try using the function outline-previous-heading, how can I know when I've reached the top as it seems to just bang its head in the roof of the file when it reaches the top. It also finds stuff above the topmost heading, like lines beginning with "#". Any pointers as to what I can try? -- Esben Stien is b0ef@e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n