From: Michael Slass <miknrene@drizzle.com>
Subject: Re: emacs-w3m copy url under point
Date: Sat, 28 Sep 2002 02:49:59 GMT [thread overview]
Message-ID: <m365wqesix.fsf@localhost.localdomain> (raw)
In-Reply-To: m2bs6jp9hh.fsf@localhost.localdomain
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
next prev parent reply other threads:[~2002-09-28 2:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-27 18:34 emacs-w3m copy url under point mr.sparkle
2002-09-28 2:49 ` Michael Slass [this message]
2002-09-28 6:59 ` Shiro Takeda
2002-09-29 22:32 ` mr.sparkle
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m365wqesix.fsf@localhost.localdomain \
--to=miknrene@drizzle.com \
/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.
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).