[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-w3m copy url under point
From: |
Michael Slass |
Subject: |
Re: emacs-w3m copy url under point |
Date: |
Sat, 28 Sep 2002 02:49:59 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
happy@vole.com (mr.sparkle) writes:
>Is there any way in emacs-w3m to copy the url under point? It shows up
>in the minibuffer, so a method of copying minibuffer contents would
>work, if no direct way to do it from emacs-w3m.
Try this: (VERY lightly tested)
(defun w3m-copy-current-anchor-as-kill ()
"Copy the link (as a string) under the point to the kill ring"
(interactive)
(let ((link (w3m-anchor)))
(if (not link)
(message "The point is not over an anchor.")
(kill-new link)
(message "Copied \"%s\" to kill-ring." link))))
Bind to your favorite key sequence.
--
Mike Slass