emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Re: search for dates as tag or property
Date: Fri, 30 Nov 2007 01:35:17 +0000	[thread overview]
Message-ID: <87wss0ikh6.fsf@bzg.ath.cx> (raw)
In-Reply-To: <fikk96$n35$1@ger.gmane.org> (Fabian Braennstroem's message of "Wed, 28 Nov 2007 21:53:32 +0000")

Fabian Braennstroem <f.braennstroem@gmx.de> 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

      parent reply	other threads:[~2007-11-30  1:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 13:39 search for dates as tag or property Fabian Braennstroem
2007-11-27 14:42 ` Bastien
2007-11-28  7:29   ` Carsten Dominik
2007-11-28 21:53     ` Fabian Braennstroem
2007-11-29  5:24       ` Carsten Dominik
2007-11-30  1:35       ` Bastien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wss0ikh6.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).