emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Re: [Orgmode] A way to export agenda with links into org-files to ht


From: Hrvoje Niksic
Subject: [O] Re: [Orgmode] A way to export agenda with links into org-files to html ?
Date: Tue, 01 Mar 2011 00:00:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Bastien <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]