From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: happy@vole.com (mr.sparkle) Newsgroups: gmane.emacs.help Subject: Re: emacs-w3m copy url under point Date: 29 Sep 2002 18:32:07 -0400 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033339576 13507 127.0.0.1 (29 Sep 2002 22:46:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Sep 2002 22:46:16 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17vmpL-0003Vh-00 for ; Mon, 30 Sep 2002 00:46:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17vmpW-0006hl-00; Sun, 29 Sep 2002 18:46:26 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 32 Original-Xref: nntp.stanford.edu gnu.emacs.help:105517 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2061 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2061 On 27 Sep 2002, ged9203@srv.cc.hit-u.ac.jp wrote: > Michael Slass wrote in message > news:... >> 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!