From mboxrd@z Thu Jan 1 00:00:00 1970 From: Esben Stien Subject: Re: Link to Top Most Heading Date: Wed, 25 Jun 2014 12:06:14 +0200 Message-ID: <87oaxhl2w9.fsf@quasar.esben-stien.name> References: <87ha3lzk53.fsf@quasar.esben-stien.name> <87d2dxjpwq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzk5w-0001rS-2e for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 06:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzk5p-0001xP-JC for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 06:06:24 -0400 Received: from nmsh1.e.nsc.no ([193.213.121.72]:58016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzk5p-0001xA-8U for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 06:06:17 -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 s5PA6FIr009756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NOT) for ; Wed, 25 Jun 2014 12:06:15 +0200 (MEST) In-Reply-To: <87d2dxjpwq.fsf@bzg.ath.cx> (Bastien's message of "Wed, 25 Jun 2014 11:32:05 +0200") 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 Bastien writes: > (defun my-org-store-link-to-top-level-heading () > (interactive) > (save-excursion > (org-up-heading-all 10) > (call-interactively 'org-store-link))) Perfect. So simple with org-up-heading-all. Didn't find that. Thanks a lot. Saves me so much time;) -- 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