From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88338 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Command for browsing article URLs? Date: Tue, 22 Jan 2019 12:59:19 -0800 Message-ID: <8736pkcst4.fsf@ericabrahamsen.net> References: <878szwwdjw.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="49665"; mail-complaints-to="usenet@ciao.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Clemens =?utf-8?Q?Sch=C3=BCller?= , ding@gnus.org To: Clemens =?utf-8?Q?Sch=C3=BCller?= Original-X-From: ding-owner+M36548@lists.math.uh.edu Tue Jan 22 21:59:40 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by ciao.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gm391-000CmQ-Vc for ding-account@gmane.org; Tue, 22 Jan 2019 21:59:40 +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 1gm38v-0007vj-3j; Tue, 22 Jan 2019 14:59:33 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1gm38q-0007sz-FT for ding@lists.math.uh.edu; Tue, 22 Jan 2019 14:59:28 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gm38o-0003N2-Ln for ding@lists.math.uh.edu; Tue, 22 Jan 2019 14:59:28 -0600 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gm38l-0006WQ-Ao for ding@gnus.org; Tue, 22 Jan 2019 21:59:25 +0100 Original-Received: from localhost (50-251-205-17-static.hfc.comcastbusiness.net [50.251.205.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 70A063F8E7; Tue, 22 Jan 2019 20:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1548190761; bh=TMjxbsVXqpTiNWEkC1FGZOFD9GRxFE7t7yFrcQCXiZY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=minWME3CLRqFtBkkd04E4khohHRlS7hcuLH8z2b8cNj9VTy07/7bvkTcIF2XkJZTM Qs/VApeTs/thj3W5Xpt9tyVcRGPZpASjliOQCUx5J2NNKSM+hdUK4z+lHuJ9oxd5h9 osO10iUkRTSFDq1xhh6xE80ayJ1d5XmSK2FpR3gY= In-Reply-To: ("Clemens =?utf-8?Q?Sch=C3=BCller=22's?= message of "Tue, 22 Jan 2019 21:50:20 +0100") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88338 Archived-At: On 01/22/19 21:50 PM, Clemens Sch=C3=BCller wrote: > Hello! > > Eric Abrahamsen wrote: > >> 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. >> >> Does anyone have anything like this already-written? I made a custom >> function to open links from my Hacker News gwene group, but realized it >> would be better to have something generalized. >> >> If no one has this written already, I can make one. > > You remind me in this second on an error in my gnus config: > > I have following in my .gnus > > #+begin_src emacs-lisp > (setq browse-url-browser-function 'browse-url-generic > ;; browse-url-generic-program "/usr/bin/konqueror" > ;; browse-url-generic-program "/usr/bin/chromium" > browse-url-generic-program "/Applications/Safari.app/Contents/MacOS= /Safari" > browse-url-new-window-p t) > #+end_src > > > But, if I wanna open an URL, the URL is malformed and I got an error, > that the website could not be opened. > > > file:///Users/mente/Library/Containers/com.apple.Safari/Data/http:/localh= ost:631 > ^^ > stands in the URL line in Safari > > > > http:/localhost:631 > ^^ > is the original one. I guess you're just missing a forward slash there? Try "http://localhost:631". Eric