help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-w3m copy url under point


From: mr.sparkle
Subject: Re: emacs-w3m copy url under point
Date: 29 Sep 2002 18:32:07 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

On 27 Sep 2002, address@hidden wrote:
> Michael Slass <address@hidden> wrote in message
> news:<address@hidden>...
>> address@hidden (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 via email to

[Prev in Thread] Current Thread [Next in Thread]