emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@xemacs.org>
To: emacs-orgmode@gnu.org
Subject: Re: A way to export agenda with links into org-files to html ?
Date: Tue, 01 Mar 2011 00:00:08 +0100	[thread overview]
Message-ID: <87k4gj4vev.fsf@xemacs.org> (raw)
In-Reply-To: <87oc5yeph2.fsf@altern.org> (Bastien's message of "Sat, 26 Feb 2011 10:45:04 +0100")

Bastien <bzg@altern.org> writes:

> This are the typical text properties for an Org-mode link:
>
>   face                 org-link
>   help-echo            "LINK: http://bonjour.fr"
>   mouse-face           highlight

These three properties (face, help-echo, mouse-face) are general, which
would require htmlize to deduce URLs from them much like it now deduces
URLs by examining buffer text.  I would like to offer a better
alternative.

What I had in mind is a general property that marks a URI reference.
For example, a `uri-ref' property could refer to the URI that would
cause htmlize to generate an <a href="..."> link, `browse-url' to react
to mouse clicks to that area, etc.  The property value would typically
be a string containing the URI, but could also be a plist describing the
reference.

;; just the URI
(put-text-property beg end 'uri-ref "http://bonjour.fr")

;; the same, with the ability to specify additional props of this ref
(put-text-property beg end 'uri-ref '(:uri "http://bonjour.fr"))

  reply	other threads:[~2011-03-01  0:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05 21:46 A way to export agenda with links into org-files to html ? Marc-Oliver Ihm
2011-02-11 16:34 ` Bastien
2011-02-16 20:06   ` Hrvoje Niksic
2011-02-18  9:30     ` Bastien
2011-02-18  9:42       ` Hrvoje Niksic
2011-02-26  9:45         ` Bastien
2011-02-28 23:00           ` Hrvoje Niksic [this message]
2011-03-01 17:57             ` Bastien
2011-03-02  8:48               ` Hrvoje Niksic
2011-02-21 21:40 ` Marc-Oliver Ihm

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=87k4gj4vev.fsf@xemacs.org \
    --to=hniksic@xemacs.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).