[Top][All Lists]

[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:17:50 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Harry Putnam <> writes:


>>>  Ctrl-v left arrow: ^[[D
>>> Ctrl-v right arrow: ^[[C
>>> Viewing lossage in emacs shows: <left> <right>
>> ">" is "greater than" (ASCII 0x3e), not the right cursor key. If you
>> want the latter, use (kbd "<right>") or [right]. Similarly for "<".
> OK, now it works.

Argh, of course I've thought you want to use "greater than" and "less
than", not the arrow keys!!!  I take you literally, Harry. ;-)

> But just for the record using this format does not work for me:
>   (define-key gnus-summary-mode-map (kbd "[right]") 'gnus-summary-show-thread)
>   (define-key gnus-summary-mode-map (kbd "[left]") 'gnus-summary-hide-thread)
> Whereas, this does:
>   (define-key gnus-summary-mode-map (kbd "<right>") 'gnus-summary-show-thread)
>   (define-key gnus-summary-mode-map (kbd "<left>") 'gnus-summary-hide-thread)

Yeah, the kbd macro wants exactly the format that emacs shows you when
doing C-h k <some key sequence>.  You can simply copy the key sequence
from the *Help* buffer into a string and give it to kbd.

[right] and [left] would be correct if you don't use kbd:

  (define-key gnus-summary-mode-map [right] 'gnus-summary-show-thread)
  (define-key gnus-summary-mode-map [left] 'gnus-summary-hide-thread)

> Thanks.  So those other fellows using <> must have different output
> from those keys than I do eh?

No, we just took you by your written letters. :-)


reply via email to

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