Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Ingebrigtsen <>
To: Sam Steingold <>
Subject: Re: hackernews & gnus-summary-browse-url
Date: Tue, 08 Mar 2022 16:23:58 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <> (Sam Steingold's message of "Tue, 08 Mar 2022 10:05:32 -0500")

Sam Steingold <> writes:

> Nah, this just affects the _default_ for "w".
> It does not let me open _both_ URLs in _one_ keystroke.
> It also screws up the rest of gnus, where I _do_ want
> `gnus-collect-urls-primary-text' to be "Link".

I use:

(require 'gnus-sum)
(define-key gnus-summary-mode-map
  "w" (lambda ()
	(let (urls target)
	    ;; Back up a char, in case body starts with a button.
	    (setq urls (gnus-collect-urls))
	    (setq target (car urls))
	    (if target
		(funcall browse-url-secondary-browser-function target)
	      (message "No URLs found."))))))

Alter to open both (car urls) and (car (last urls)).

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog:

  reply	other threads:[~2022-03-08 15:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07 21:44 Sam Steingold
2022-03-07 23:40 ` Eric Abrahamsen
2022-03-08 15:05   ` Sam Steingold
2022-03-08 15:23     ` Lars Ingebrigtsen [this message]
2022-03-08 15:56       ` Eric Abrahamsen
2022-03-08 15:58         ` Lars Ingebrigtsen
2022-03-08 20:50       ` Sam Steingold
2022-03-09 12:04         ` Lars Ingebrigtsen
2022-03-09 19:41           ` Sam Steingold
2022-03-09 19:50             ` Eric Abrahamsen
2022-03-09 21:20               ` Sam Steingold
2022-03-12 17:38             ` Lars Ingebrigtsen
2022-03-08 16:35     ` dick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).