From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ged9203@srv.cc.hit-u.ac.jp (Shiro Takeda) Newsgroups: gmane.emacs.help Subject: Re: emacs-w3m copy url under point Date: 27 Sep 2002 23:59:20 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1033196777 30908 127.0.0.1 (28 Sep 2002 07:06:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Sep 2002 07:06:17 +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 17vBg8-00082N-00 for ; Sat, 28 Sep 2002 09:06:16 +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 17vBgH-0000sQ-00; Sat, 28 Sep 2002 03:06:25 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 211.11.106.110 Original-X-Trace: posting.google.com 1033196360 14872 127.0.0.1 (28 Sep 2002 06:59:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 28 Sep 2002 06:59:20 GMT Original-Xref: nntp.stanford.edu gnu.emacs.help:105434 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:1980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1980 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)))) > > 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