Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: pmlists@free.fr (Peter Münster)
To: info-gnus-english@gnu.org
Subject: Re: Any way to click article buttons without leaving the summary buffer?
Date: Tue, 04 Jan 2011 23:05:04 +0100	[thread overview]
Message-ID: <877hekmijz.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: <m34o9pa2xx.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

>> Idea #2: Add a command that highlights successive links on repeated
>> invocation, and another command that activates the currently highlighted
>> link.
>
> Sounds nice.  Perhaps TAB in the summary buffer should highlight the
> links successively?  And then RET could "click the link".

Seems to be not so difficult:

--8<---------------cut here---------------start------------->8---
(defun my-alter-summary-map ()
  (local-set-key [tab] '(lambda () (interactive)
                          (gnus-summary-select-article-buffer)
                          (w3m-next-anchor)
                          (w3m-highlight-current-anchor)
                          (gnus-article-show-summary)))
  (local-set-key [C-return] [?h return ?h]))

(add-hook 'gnus-summary-mode-hook 'my-alter-summary-map)
--8<---------------cut here---------------end--------------->8---

Only the w3m-highlight-current-anchor does not work as expected... :(

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

  parent reply	other threads:[~2011-01-04 22:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01 23:14 Sean McAfee
2011-01-02  7:13 ` Lars Magne Ingebrigtsen
2011-01-04  0:57   ` Sean McAfee
2011-01-04  1:10     ` Lars Magne Ingebrigtsen
2011-01-04 14:25       ` Dan Christensen
2011-01-05 11:44         ` Philipp Haselwarter
2011-01-06 14:52           ` Dan Christensen
2011-01-04 22:05       ` Peter Münster [this message]
     [not found]       ` <mailman.1.1294151194.4785.info-gnus-english@gnu.org>
2011-01-11 19:55         ` Lars Magne Ingebrigtsen
2011-01-02 12:17 ` Sean Sieger
2011-01-02 12:27   ` Sean Sieger
2011-01-02 14:35 ` Peter Münster
2011-01-04  9:27   ` Peter Münster
     [not found] ` <mailman.4.1293971110.4418.info-gnus-english@gnu.org>
2011-01-04  0:39   ` Sean McAfee

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=877hekmijz.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=info-gnus-english@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).