Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: hackernews & gnus-summary-browse-url
Date: Tue, 08 Mar 2022 07:56:26 -0800	[thread overview]
Message-ID: <87y21kwi8l.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87zgm079ip.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

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

Isn't that just about what `gnus-summary-browse-url' does anyway?



  reply	other threads:[~2022-03-08 15:56 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
2022-03-08 15:56       ` Eric Abrahamsen [this message]
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=87y21kwi8l.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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).