Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: dbast0s@yahoo.com.br (Daniel C. Bastos)
To: info-gnus-english@gnu.org
Subject: Re: expanding the article window
Date: Fri, 31 Aug 2007 13:08:35 -0400	[thread overview]
Message-ID: <84odgnd430.fsf@blade3.toledo.com> (raw)
In-Reply-To: <7yfy21ztxu.fsf@fillmore.spawar.navy.mil>

"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	other threads:[~2007-08-31 17:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-24 17:41 Daniel C. Bastos
2007-08-24 19:03 ` Daniel C. Bastos
2007-08-24 20:29   ` Steven E. Harris
2007-08-25 21:12     ` Daniel C. Bastos
2007-08-26 17:02       ` Steven E. Harris
2007-08-27 14:30         ` Daniel C. Bastos
2007-08-27 16:13           ` Daniel C. Bastos
     [not found]             ` <7yodgr8qu9.fsf@fillmore.spawar.navy.mil>
2007-08-29 20:09               ` Daniel C. Bastos
2007-08-30  1:30                 ` Steven E. Harris
2007-08-31 17:08                   ` Daniel C. Bastos [this message]
2007-09-01 16:58                     ` Steven E. Harris
     [not found]           ` <84r6lpymyk.fsf@blade3.tol\x04edo.com>
     [not found]             ` <7yr6ln47az.fsf@fillmore.spawar.navy.mil>
2007-08-29 20:00               ` Daniel C. Bastos
2007-08-30  1:25                 ` Steven E. Harris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84odgnd430.fsf@blade3.toledo.com \
    --to=dbast0s@yahoo.com.br \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).