From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9318 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: How to copy URL's to clipboard? Date: Fri, 13 Jul 2007 08:24:15 +0900 Organization: Emacsen advocacy group Message-ID: References: <87myy32bzt.fsf@gmail.com> <874pkadkxw.fsf@gmail.com> <87odihdcnm.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 1184283722 7631 80.91.229.12 (12 Jul 2007 23:42:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 23:42:02 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Jul 13 01:42:00 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 1I98IE-0002wZ-0u for gegu-info-gnus-english@m.gmane.org; Fri, 13 Jul 2007 01:41:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I98ID-0003Zu-II for gegu-info-gnus-english@m.gmane.org; Thu, 12 Jul 2007 19:41:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 33 Original-NNTP-Posting-Host: orlando.hostforweb.net Original-X-Trace: quimby.gnus.org 1184282660 18697 216.246.45.90 (12 Jul 2007 23:24:20 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Thu, 12 Jul 2007 23:24:20 +0000 (UTC) X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:iBbYT6rXbpsDe62Q4pVYxBundNg= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79503 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:9318 Archived-At: >>>>> Hadron wrote: > 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" ? That function can be used in only areas that are rendered by emacs-w3m in the article buffer. There the `w3m-minor-mode-map' keymap lives and it hides the `gnus-article-mode-map' keymap. For such a link expressed with a plain text, you can bind the same key to just the function `browse-url-firefox'. For example: (eval-after-load "gnus-art" '(progn (define-key gnus-article-mode-map "v" (make-sparse-keymap)) (define-key gnus-article-mode-map "vv" 'browse-url-firefox))) If you want to add other commands, say: (eval-after-load "gnus-art" '(progn (define-key gnus-article-mode-map "v" (make-sparse-keymap)) (define-key gnus-article-mode-map "vv" 'browse-url-firefox) (define-key gnus-article-mode-map "vx" 'foo) (define-key gnus-article-mode-map "vy" 'bar) (define-key gnus-article-mode-map "vz" 'baz))) > Also, whats the "vv" key? If I hit v, it invokes the usual w3m-bookmark > with the first v. You seem to have typed the v key in a normal emacs-w3m buffer. There the `w3m-mode-mep' keymap lives.