emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Store links under cursor
Date: Tue, 02 Sep 2014 13:27:49 -0300	[thread overview]
Message-ID: <84d2behtru.fsf@gmail.com> (raw)
In-Reply-To: 84lhq2hw6h.fsf@gmail.com

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

      reply	other threads:[~2014-09-02 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 15:35 Store links under cursor Carlos Pita
2014-09-02 16:27 ` Carlos Pita [this message]

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=84d2behtru.fsf@gmail.com \
    --to=carlosjosepita@gmail.com \
    --cc=emacs-orgmode@gnu.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).