From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: search for dates as tag or property Date: Fri, 30 Nov 2007 01:35:17 +0000 Message-ID: <87wss0ikh6.fsf@bzg.ath.cx> References: <87prxv7nst.fsf@bzg.ath.cx> 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 1Ixumt-0006e9-Gi for emacs-orgmode@gnu.org; Thu, 29 Nov 2007 20:35:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixump-0006dt-Sm for emacs-orgmode@gnu.org; Thu, 29 Nov 2007 20:35:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixump-0006dq-Nl for emacs-orgmode@gnu.org; Thu, 29 Nov 2007 20:35:23 -0500 Received: from wr-out-0506.google.com ([64.233.184.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ixump-0007fY-NB for emacs-orgmode@gnu.org; Thu, 29 Nov 2007 20:35:23 -0500 Received: by wr-out-0506.google.com with SMTP id 37so1716108wra for ; Thu, 29 Nov 2007 17:35:22 -0800 (PST) In-Reply-To: (Fabian Braennstroem's message of "Wed, 28 Nov 2007 21:53:32 +0000") 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 Fabian Braennstroem writes: > Is there a function which puts all links of the current tree > in a kill-ring, which I could use for an external python script? Maybe this: (defun my-collect-links-in-subtree () "Return a list containing all links in current subtree." (interactive) (let (list end) (save-excursion (org-back-to-heading) (setq end (save-excursion (outline-forward-same-level 1) (point))) (while (re-search-forward org-any-link-re end t) (add-to-list 'list (match-string-no-properties 0)))) list)) Then: (setq your-list-of-links (my-collect-links-in-subtree)) will store the list of links for the current subtre... I think there is no need for this in Org itself, though. > BTW: The small tutorial will follow a bit later :-) Looking forward to reading it! Thanks, -- Bastien