Harry Putnam <[email protected]> writes: Hi,
>>> 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. :-) Bye, Tassilo _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
