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

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

Re: expanding the article window


From: Daniel C. Bastos
Subject: Re: expanding the article window
Date: Fri, 31 Aug 2007 13:08:35 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (berkeley-unix)

"Steven E. Harris" <seh@panix.com> writes:

> dbast0s@yahoo.com.br (Daniel C. Bastos) writes:
>
>> I wouldn't bind + because what we want is a non-shifted key, remember?
>
> Yes, I remember. I was just trying to come up with some example
> single-character for the `define-key' form, and I noticed that Sh-=
> wasn't taken, so it was safe for illustration. It's sort of symmetric
> with the default binding for '='.

Got it.

>> To use +, I'd prefer sticking to "C-c e" which I can do with my left
>> hand only; the corner of my palm is usually very close to the control
>> key, and that's not the case with my right hand.
>
> Sure, that makes sense. Try
>
>   [(control c) (e)]
>
> instead of ?\+ in the `define-key' form. Emacs may require a different
> syntax to define the keystroke sequence.

Okay. First, let's try '(?\+)

 (define-key gnus-summary-mode-map '(?\+)
   (lambda ()
     (interactive)
     (gnus-configure-windows 'edit-article 'force)))

Still get:

Debugger entered--Lisp error: (wrong-type-argument arrayp (43))

Now let's try: 

 (define-key gnus-summary-mode-map [(control c) (e)]
   (lambda ()
     (interactive)
     (gnus-configure-windows 'edit-article 'force)))

This worked. I now replaced [(control c) (e)] by [(w)] so that I just
can 'w' and have it expanded. Thanks, Steven.

What's the difference between ?\+ and [(w)]. I suppose the second is an
array of lists? But what about the '?' in the first? What does it do?


reply via email to

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