[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: |
Wed, 12 Oct 2011 21:12:51 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Harry Putnam <reader@newsguy.com> writes:
>>>> AFter loading this, it does not work for me. I suspect something is
>>>> blocking it somehow. All I see is a cursor move left or right.
>>>
>>> Too bad to... it would come in handy on the raging thread going on in
>>> gmane.emacs.gnus.general right now ... hehe.
>>
>> Where did you add the keymappings suggessed by Tassilo ?
>> This works for me:
>>
>> (defun my-gnus-summary-mode-hook ()
>> (define-key gnus-summary-mode-map (kbd ">") 'gnus-summary-show-thread)
>> (define-key gnus-summary-mode-map (kbd "<") 'gnus-summary-hide-thread)
>> )
>> (add-hook 'gnus-summary-mode-hook 'my-gnus-summary-mode-hook)
>
> Just a bit more info on this. Evaluating your code does not allow
> those keys to call those commands for some reason. However if I just
> call the actual commands
> (gnus-summary-hide-thread/gnus-summary-show-thread) with cursor on
> part of a thread then it works fine.
>
> Am I doing this wrong in some way?
>
> I've inserted Tassilos' code into .gnus and evaluated .gnus, I've
> evaluated your code right on your post. Still the <> keys do not
> respond.
I don't use these keys (but C-left/right) for that purpose, but
evaluating the 2 define-key forms, it works fine even with <> in both a
terminal as well as a X11 emacs frame. But I had to exit the summary
and reenter the summary (possibly, because the bindings are added as
text properties to the summary lines).
I use emacs 24 (bzr version of today) and gnus from its git repository.
Bye,
Tassilo
- open/close threads with `<' and `>', Harry Putnam, 2011/10/11
- Re: open/close threads with `<' and `>', Slackrat, 2011/10/11
- 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 `>', 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 <=
- 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, 2011/10/14
- 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