emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Store links under cursor
@ 2014-09-02 15:35 Carlos Pita
  2014-09-02 16:27 ` Carlos Pita
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Pita @ 2014-09-02 15:35 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

there are occasions, v.g. when reading a gnus article, when I don't want
to store a link to the article itself (which is the behavior of C-c l)
but some link that is part of the article instead. I use to read rss
through gwene and many times I want to link the url for the full post,
while the gnus article is itself irrelevant as a bookmark.

How can I achieve that with org? That is, assuming the point is under
some link, to store that link and not the link for the document
containing it.

Thank you in advance.

Cheers
--
Carlos

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Store links under cursor
  2014-09-02 15:35 Store links under cursor Carlos Pita
@ 2014-09-02 16:27 ` Carlos Pita
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos Pita @ 2014-09-02 16:27 UTC (permalink / raw)
  To: emacs-orgmode

Well I've done (part of) my homework and found out that:

* By default gnus uses shr (simple html renderer) for washing html parts

* The function shr-copy-url (bound to u) will copy the url under point
  to the kill ring.

* The url is stored as a text property:
      (get-text-property (point) 'shr-url)  -->  url

I guess I can figure out how to write my own link handler now, but maybe
one generous soul between you has done it already and is eager to share
the result.

Cheers
--
Carlos

Carlos Pita <carlosjosepita@gmail.com> writes:

> Hi all,
>
> there are occasions, v.g. when reading a gnus article, when I don't want
> to store a link to the article itself (which is the behavior of C-c l)
> but some link that is part of the article instead. I use to read rss
> through gwene and many times I want to link the url for the full post,
> while the gnus article is itself irrelevant as a bookmark.
>
> How can I achieve that with org? That is, assuming the point is under
> some link, to store that link and not the link for the document
> containing it.
>
> Thank you in advance.
>
> Cheers
> --
> Carlos

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-02 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02 15:35 Store links under cursor Carlos Pita
2014-09-02 16:27 ` Carlos Pita

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).