From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/11114 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus and nnrss html Date: Sun, 08 Jun 2008 19:35:56 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212946833 30709 80.91.229.12 (8 Jun 2008 17:40:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 17:40:33 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Jun 08 19:41:15 2008 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 1K5OtD-0005lg-7q for gegu-info-gnus-english@m.gmane.org; Sun, 08 Jun 2008 19:41:11 +0200 Original-Received: from localhost ([127.0.0.1]:50389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5OsQ-0003kJ-0t for gegu-info-gnus-english@m.gmane.org; Sun, 08 Jun 2008 13:40:22 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 45 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1/kXo/9a1FmmQ7Yu+8+nCVG9GqYqQSagpPG5SGWRcpnKdr9fr2bvowKyEfil3JyBX27a6LYThRXt+8wZl6arVmiee78mjBSQWe3yFUxlmRLyeFjni9Nvh4HQNaAVq86HtIUja/uejXWbQ== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 8 Jun 2008 17:35:57 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/9nA7KA4HxIMp4eCWjq5UlSYBIyleOpuNZ3GU5sf7d9Q== Cancel-Lock: sha1:wcIz4rVDqrjskd285nGJxTunT0I= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.gnus:81333 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:11114 Archived-At: Richard G Riley writes: > Richard G Riley writes: > >> I have the following in my .gnus.el >> >> ,---- >> | ;; Set the default value of `mm-discouraged-alternatives'. >> | (add-to-list >> | 'gnus-newsgroup-variables >> | '(mm-discouraged-alternatives >> | . '("text/html" "image/.*"))) >> | >> | ;;Display `text/html' parts in `nnrss' groups. >> | (add-to-list >> | 'gnus-parameters >> | '("\\`nnrss:" (mm-discouraged-alternatives nil))) >> `---- >> >> The problem I have is that any links in the html are displayed as >> "linkname" with the url hidden. I usually have a key bound to >> (browse-url-firefox url &optional new-window) but this only works on >> "visible" urls. How can I extract the underlying url in articles on nrss >> folders which are being displayed as rendered html? > > The following code did what I wanted without upsetting the default > "return" which uses w3m for me. > > (global-set-key (quote [f4]) (lambda() > (interactive)(browse-url-firefox (w3m-url-valid (w3m-anchor))))) And a slightly more robust one which prompts for a URL if there are w3m ones under the cursor: ,---- | (global-set-key | (quote [f4]) | (lambda() | (interactive) | (cond | ((setq url (w3m-url-valid (w3m-anchor))) | (browse-url-firefox url)) | (t (command-execute 'browse-url-firefox))))) `----