Fabian Braennstroem <[EMAIL PROTECTED]> 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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode