From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Store links under cursor Date: Tue, 02 Sep 2014 13:27:49 -0300 Message-ID: <84d2behtru.fsf@gmail.com> References: <84lhq2hw6h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOqhI-0007C9-1Z for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 12:12:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOqhA-0003ct-BY for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 12:12:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:52927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOqhA-0003bY-69 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 12:12:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOqh8-0005ut-Vj for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 18:12:34 +0200 Received: from 190.216.58.35 ([190.216.58.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 18:12:34 +0200 Received: from carlosjosepita by 190.216.58.35 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 18:12:34 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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