From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88327 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Command for browsing article URLs? Date: Thu, 10 Jan 2019 14:46:16 -0800 Message-ID: <87muo8i11j.fsf@ericabrahamsen.net> References: <878szwwdjw.fsf@ericabrahamsen.net> <87a7k8wg9k.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547160279 2734 195.159.176.226 (10 Jan 2019 22:44:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2019 22:44:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36536@lists.math.uh.edu Thu Jan 10 23:44:35 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghj3y-0000Z8-TX for ding-account@gmane.org; Thu, 10 Jan 2019 23:44:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.91) (envelope-from ) id 1ghj5t-0004Wg-HP; Thu, 10 Jan 2019 16:46:33 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1ghj5o-0004Tu-LD for ding@lists.math.uh.edu; Thu, 10 Jan 2019 16:46:28 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1ghj5m-0006hI-NI for ding@lists.math.uh.edu; Thu, 10 Jan 2019 16:46:28 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ghj5j-0002u9-Ls for ding@gnus.org; Thu, 10 Jan 2019 23:46:25 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ghj3b-00006F-4H for ding@gnus.org; Thu, 10 Jan 2019 23:44:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:i9hX1aTkDwAoU2KTT1Brwbd9Bp8= X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: > Haider Rizvi writes: > >> Eric Abrahamsen writes: >> >>> I'd like to have a command, call it `gnus-article-browse-url', which >>> collects all the links [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88327 Archived-At: Eric Abrahamsen writes: > Haider Rizvi writes: > >> Eric Abrahamsen writes: >> >>> I'd like to have a command, call it `gnus-article-browse-url', which >>> collects all the links/URLs in the article body, and then offers to >>> browse one of them (choosing with completion). Bound to "K l", >>> naturally. >> >> I use two functions along these lines but not exactly what you asked >> for. >> >> 1. ace-link-gnus: I've it bound to M-o for some historical reason. In >> typical ace-fashion, it highlights all urls in the article and you use >> a key to browse the url in your browser. >> >> 2. my-gnus-browse function: Based on the newsgroup name, it calls >> various functions to find parent url for this article from the article >> headers. For example, gwene/gmane add a Archived-at header to point to >> the original article. I had various mailing lists that I found it useful for. >> >> Let me know if you want to see the latter. > > Okay, here's what I've got so far. It seems to work fine, except on > links in the article headers (eg the List-Subscribe header contains a > "mailto:" link). [...] The prefix arg could also be used to say "open the Nth link in the article", which would be more in line with how Gnus' other mime-related commands work, but personally at least would be less usable.