From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hrvoje Niksic Subject: Re: A way to export agenda with links into org-files to html ? Date: Tue, 01 Mar 2011 00:00:08 +0100 Message-ID: <87k4gj4vev.fsf@xemacs.org> References: <87bp2iv8bd.fsf@gnu.org> <87vd0jkamb.fsf@xemacs.org> <874o81g05g.fsf@gnu.org> <8762shel1i.fsf@xemacs.org> <87oc5yeph2.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuD6U-0003yF-2f for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 19:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuD6Q-0002YF-FZ for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 19:06:12 -0500 Received: from smtp-out-01.xnet.hr ([83.139.103.71]:47870 helo=smtp.xnet.hr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuD6Q-0002WL-9q for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 19:06:10 -0500 Received: from mail.globalnet.hr (cartman-alt.bnet.hr [213.149.32.15]) by smtp.xnet.hr (XnetMailOut) with ESMTP id D820948367 for ; Tue, 1 Mar 2011 00:49:30 +0100 (CET) Received: from cpezg-94-253-137-238-cbl.xnet.hr (HELO mulj) ([94.253.137.238]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 28 Feb 2011 23:49:28 -0000 Received: from hniksic by mulj with local (Exim 4.72) (envelope-from ) id 1PuC4W-0005jq-H8 for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 00:00:08 +0100 In-Reply-To: <87oc5yeph2.fsf@altern.org> (Bastien's message of "Sat, 26 Feb 2011 10:45:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien 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 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"))