From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: How to get the link the point is on? Date: Thu, 25 Sep 2014 17:49:00 -0400 Message-ID: <87r3yzs75f.fsf@kmlap.domain.org> References: <8761gb8lq2.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXGsz-00036l-6j for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 17:47:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXGst-0003Ah-4b for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 17:47:37 -0400 Received: from mail-qa0-f51.google.com ([209.85.216.51]:53768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXGst-00039w-0F for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 17:47:31 -0400 Received: by mail-qa0-f51.google.com with SMTP id j7so5159113qaq.24 for ; Thu, 25 Sep 2014 14:47:24 -0700 (PDT) In-Reply-To: <8761gb8lq2.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Thu, 25 Sep 2014 22:54:29 +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: Marcin Borkowski Cc: Org-mode Marcin Borkowski wrote: [...] > What I'd like to have is a function that would just extract the link > portion (which is normally invisible) and displayed it in the echo > area (something like hovering over a link in a web browser). There may be a better way, but I think below does what you want. #+begin_src elisp (defun org-display-link () (interactive) (message "%s" (org-element-property :raw-link (org-element-context)))) #+end_src -- Kyle