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

Hi Hrvoje,

Hrvoje Niksic <hniksic@xemacs.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")

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

  reply	other threads:[~2011-03-01 17:57 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
2011-03-01 17:57             ` Bastien [this message]
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=8762s2n2pw.fsf@gnu.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=hniksic@xemacs.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).