[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open/close threads with `<' and `>'
From: |
Tassilo Horn |
Subject: |
Re: open/close threads with `<' and `>' |
Date: |
Fri, 14 Oct 2011 08:56:33 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Rasmus Pank Roulund <rasmus.pank@gmail.com> writes:
> Tassilo Horn <tassilo@member.fsf.org> writes:
>
>> This should do the trick:
>>
>> (define-key gnus-summary-mode-map (kbd ">") 'gnus-summary-show-thread)
>> (define-key gnus-summary-mode-map (kbd "<") 'gnus-summary-hide-thread)
>
> Does Gnus feature a function that can test whether a thread is already
> hidden?
>
> I would like to defun a function that can toggles a given thread as the
> ">" is hard to use on my keyboard.
I have such a function:
--8<---------------cut here---------------start------------->8---
(defun th-next-line-invisible-p ()
"Return non-nil, if the line after POS starts invisible.
POS defaults to `point'."
(invisible-p (line-end-position)))
(defun th-gnus-summary-toggle-show/hide ()
(interactive)
(if (th-next-line-invisible-p)
(gnus-summary-show-thread)
(gnus-summary-hide-thread)))
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
- Re: open/close threads with `<' and `>', (continued)
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12
- Re: open/close threads with `<' and `>', Andy Moreton, 2011/10/12
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12
- Re: open/close threads with `<' and `>', Tassilo Horn, 2011/10/12
- Re: open/close threads with `<' and `>', Štěpán Němec, 2011/10/12
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12
- Re: open/close threads with `<' and `>', Tassilo Horn, 2011/10/12
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12
- Re: open/close threads with `<' and `>', Rasmus Pank Roulund, 2011/10/14
- Re: open/close threads with `<' and `>',
Tassilo Horn <=
- Re: open/close threads with `<' and `>', Tassilo Horn, 2011/10/14
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/14
- Re: open/close threads with `<' and `>', Tassilo Horn, 2011/10/15
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/15
- Re: open/close threads with `<' and `>', Tassilo Horn, 2011/10/15
- Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/15
Re: open/close threads with `<' and `>', Harry Putnam, 2011/10/12