From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: A way to export agenda with links into org-files to html ? Date: Tue, 01 Mar 2011 18:57:15 +0100 Message-ID: <8762s2n2pw.fsf@gnu.org> References: <87bp2iv8bd.fsf@gnu.org> <87vd0jkamb.fsf@xemacs.org> <874o81g05g.fsf@gnu.org> <8762shel1i.fsf@xemacs.org> <87oc5yeph2.fsf@altern.org> <87k4gj4vev.fsf@xemacs.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuTp6-0008KN-EC for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 12:57:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuTp5-0001ob-15 for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 12:57:24 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:62427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuTp4-0001oW-Sn for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 12:57:22 -0500 Received: by fxm5 with SMTP id 5so5966993fxm.0 for ; Tue, 01 Mar 2011 09:57:22 -0800 (PST) In-Reply-To: <87k4gj4vev.fsf@xemacs.org> (Hrvoje Niksic's message of "Tue, 01 Mar 2011 00:00:08 +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: Hrvoje Niksic Cc: emacs-orgmode@gnu.org Hi Hrvoje, Hrvoje Niksic 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") I see. So (thing-at-point 'url) would return the url/uri depending on that 'uri-ref property. But as far as I've understood, thing-at-point does not rely on properties -- am I wrong? Unless such a property can be used with thing-at-point (for `browse-url' and other commands), I'd rather put the burden of finding the proper ref to htmlize, based on the help-echo area... What do you think? -- Bastien