info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to click article buttons without leaving the summary buffer?


From: Peter Münster
Subject: Re: Any way to click article buttons without leaving the summary buffer?
Date: Tue, 04 Jan 2011 23:05:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]