From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88337 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Clemens =?utf-8?Q?Sch=C3=BCller?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Command for browsing article URLs? Date: Tue, 22 Jan 2019 21:50:20 +0100 Message-ID: References: <878szwwdjw.fsf@ericabrahamsen.net> Reply-To: Clemens =?utf-8?Q?Sch=C3=BCller?= 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="15719"; mail-complaints-to="usenet@ciao.gmane.org" Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M36547@lists.math.uh.edu Tue Jan 22 21:51:34 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 1gm31B-0003uA-Cc for ding-account@gmane.org; Tue, 22 Jan 2019 21:51:33 +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 1gm30H-0007na-Ak; Tue, 22 Jan 2019 14:50:37 -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 1gm30B-0007ku-9I for ding@lists.math.uh.edu; Tue, 22 Jan 2019 14:50:31 -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 1gm309-0003Id-5I for ding@lists.math.uh.edu; Tue, 22 Jan 2019 14:50:31 -0600 Original-Received: from mx2.mailbox.org ([80.241.60.215]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.89) (envelope-from ) id 1gm303-0006Se-Ax for ding@gnus.org; Tue, 22 Jan 2019 21:50:25 +0100 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 6803CA137F; Tue, 22 Jan 2019 21:50:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:in-reply-to:date:date:reply-to:references:subject :subject:from:from:received; s=mail20150812; t=1548190221; bh=hw Q3sikHU0lG4dDA5NezvE/YNEx6KubCRUWB2jXoJmg=; b=uMB4W2CVN7fHxJWSGZ ITJdr2158E7h8b8uBHO9I/XCNrjWOANQGSrhJqGiTfSgASQ+2lljsh6oqs3RtUC/ nvjkhmin7sgqyrVDJIljoAaceBneqcGpU/TBNcW1MEytcYuuhASDuBGMDyVzQFd4 PjJjS7XrFMCJjng31yd1REkoF8dzNSyhgmNA+1UUVFMUubiA0Wri++4aEAQEQyj6 pdm6s2WYlLiy2aVRabaqojHK3RULCD3SOq3xc1DKY5lrjX6mU8UzLZ4mxHopKAim kON1Di2scby3+ObPWmJJURM99B6Qp66Liy6ATas3Xioyz2+H311NsZAZb/tvLS+n x6Pg== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id iRBbjSjQyaFO; Tue, 22 Jan 2019 21:50:21 +0100 (CET) In-Reply-To: <878szwwdjw.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 07 Jan 2019 10:03:15 -0800") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88337 Archived-At: 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/S= afari" 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. --8<---------------cut here---------------start------------->8--- file:///Users/mente/Library/Containers/com.apple.Safari/Data/http:/localhos= t:631 ^^ stands in the URL line in Safari http:/localhost:631 ^^ is the original one. --8<---------------cut here---------------end--------------->8--- How can I fix that? --=20 Best Regards, Clemens Sch=C3=BCller