[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: search for dates as tag or property
From: |
Bastien |
Subject: |
Re: [Orgmode] Re: search for dates as tag or property |
Date: |
Fri, 30 Nov 2007 01:35:17 +0000 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
Fabian Braennstroem <address@hidden> 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