Re: [O] Re: [Orgmode] A way to export agenda with links into org-files to html ?
Bastien writes: > 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? I am proposing a new property which currently available software of course does not support. If we promote it, maybe programmers of these other modes will like it enough to support it. > 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? I think that the help-echo text is not a robust way to detect URLs. For example, org-mode's help-echo text is "LINK: url", someone else will use just the URL, others will translate "link", and yet others will not use help-echo at all. Modes need a reliable way to tell htmlize (and other interesting parties) about URI references in the buffer. A property seems like an obvious way to do so, and I'd prefer the property not to be specific to htmlize. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [O] Re: [Orgmode] A way to export agenda with links into org-files to html ?
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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[O] Re: [Orgmode] A way to export agenda with links into org-files to html ?
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";)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode