From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9315 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.gnus.user Subject: Re: How to copy URL's to clipboard? Date: Thu, 12 Jul 2007 14:33:49 +0200 Message-ID: <87odihdcnm.fsf@gmail.com> References: <87myy32bzt.fsf@gmail.com> <874pkadkxw.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184247655 4239 80.91.229.12 (12 Jul 2007 13:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 13:40:55 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jul 12 15:40:53 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I8yua-0007Jn-Mo for gegu-info-gnus-english@m.gmane.org; Thu, 12 Jul 2007 15:40:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8yua-0004ZM-8L for gegu-info-gnus-english@m.gmane.org; Thu, 12 Jul 2007 09:40:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 35 Original-X-Trace: individual.net UHH76wcj1PU8GJkf+i1fLgleum2jY4KQOTmDy49f4hQPEHOCzW X-Orig-Path: news.individual.net!news Cancel-Lock: sha1:4/gPT9/kvd5f+Y2dVd1QvHOFMgI= sha1:XGYZP/mILjFVTveZsa3soeTOIDk= X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79501 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9315 Archived-At: Katsumi Yamaoka writes: >>>>>> Hadron wrote: > >> To recap : I would like another w3m function which allows me to >> "browse-url" (and thus firefox) for an embedded link. Or is it already >> there? > > Try adding the following snippets to your ~/.emacs-w3m.el file: > > (defun my-w3m-view-this-url-with-firefox () > "View the URL of the link under point using Firefox." > (interactive) > (let ((w3m-goto-article-function 'browse-url-firefox)) > (w3m-safe-view-this-url))) > > (define-key w3m-minor-mode-map "vv" 'my-w3m-view-this-url-with-firefox) > > You can change the `vv' key as you like, but it is a good idea to > use `v'-prefixed keys since Gnus reserves them for user's commands. Thanks, but is it possible for this function to also work for real "visible" links e.g "follow this link : http://www.bbc.co.com" ? This is the ideal thing - then I have one "browse with firefox" key for both link types. I assume the code would first check if its a visible link and if not then assume a hidden link processable with w3m-safe-view-this-url. Also, whats the "vv" key? If I hit v, it invokes the usual w3m-bookmark with the first v. Thanks for your feedback.