unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: happy@vole.com (mr.sparkle)
Subject: Re: emacs-w3m copy url under point
Date: 29 Sep 2002 18:32:07 -0400	[thread overview]
Message-ID: <m2y99kh1g8.fsf@localhost.localdomain> (raw)
In-Reply-To: fed739c6.0209272259.597fa911@posting.google.com

On 27 Sep 2002, ged9203@srv.cc.hit-u.ac.jp wrote:
> 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))))

This seems to work 
>> 
>> 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). 

So does this! I must have missed it in reading the
documentation. Thank you both for your help!

      reply	other threads:[~2002-09-29 22:32 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
2002-09-29 22:32     ` mr.sparkle [this message]

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=m2y99kh1g8.fsf@localhost.localdomain \
    --to=happy@vole.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).