Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Sam Steingold <sds@gnu.org>
Cc: ding@gnus.org
Subject: Re: hackernews & gnus-summary-browse-url
Date: Tue, 08 Mar 2022 16:23:58 +0100	[thread overview]
Message-ID: <87zgm079ip.fsf@gnus.org> (raw)
In-Reply-To: <lzsfrso56r.fsf@3c22fb11fdab.ant.amazon.com> (Sam Steingold's message of "Tue, 08 Mar 2022 10:05:32 -0500")

Sam Steingold <sds@gnu.org> 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 ()
	(interactive)
	(let (urls target)
	  (gnus-summary-select-article)
	  (gnus-with-article-buffer
	    (article-goto-body)
	    ;; Back up a char, in case body starts with a button.
	    (backward-char)
	    (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: http://lars.ingebrigtsen.no


  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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=87zgm079ip.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    --cc=sds@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).