From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: emacs-w3m copy url under point Date: Sat, 28 Sep 2002 02:49:59 GMT Organization: AT&T Broadband 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 1033182378 11044 127.0.0.1 (28 Sep 2002 03:06:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Sep 2002 03:06:18 +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 17v7vt-0002rz-00 for ; Sat, 28 Sep 2002 05:06:17 +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 17v7w1-0001vP-00; Fri, 27 Sep 2002 23:06:25 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!sdd.hp.com!usc.edu!attla2!ip.att.net!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.19.12 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: sccrnsc01 1033181399 12.228.19.12 (Sat, 28 Sep 2002 02:49:59 GMT) Original-NNTP-Posting-Date: Sat, 28 Sep 2002 02:49:59 GMT Original-Xref: nntp.stanford.edu gnu.emacs.help:105432 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:1978 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1978 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. -- Mike Slass