|
From: | Christian Moe |
Subject: | Re: [O] Function: Extract link location to killring |
Date: | Thu, 23 Jun 2011 16:20:47 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
On 6/23/11 2:17 PM, Memnon Anon wrote:
(defun my-extract-link () "Extract the link location at point and put it on the killring." (interactive) (when (org-in-regexp org-bracket-link-regexp 1) (kill-new (org-link-unescape (org-match-string-no-properties 1)))))
Thanks, that seems to work nicely!Thanks for the tip about saving two keystrokes by aborting with C-g, too -- why didn't I think of that??
Yours, Christian
[Prev in Thread] | Current Thread | [Next in Thread] |