From: ged9203@srv.cc.hit-u.ac.jp (Shiro Takeda)
Subject: Re: emacs-w3m copy url under point
Date: 27 Sep 2002 23:59:20 -0700 [thread overview]
Message-ID: <fed739c6.0209272259.597fa911@posting.google.com> (raw)
In-Reply-To: m365wqesix.fsf@localhost.localdomain
Michael Slass <miknrene@drizzle.com> wrote in message news:<m365wqesix.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.
At least in my emacs-w3m (CVS version),
I can copy the url under the point with `w3m-print-this-url'
(binded to u).
---
Shiro Takeda <ged9203@srv.cc.hit-u.ac.jp>
next prev parent reply other threads:[~2002-09-28 6:59 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
2002-09-28 6:59 ` Shiro Takeda [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fed739c6.0209272259.597fa911@posting.google.com \
--to=ged9203@srv.cc.hit-u.ac.jp \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.