all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Larry Evans <cppljevans@suddenlink.net>
Cc: bug-gnu-emacs@gnu.org
Subject: bug#7803: 23.1; Need better definition of vector notation in define-key
Date: Mon, 10 Jan 2011 18:34:30 -0500	[thread overview]
Message-ID: <7s8vyscozd.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <871v4o1kqw.fsf@pop.suddenlink.net>

Larry Evans wrote:

>   (define KEYMAP [t] DEFAULT_BINDING)
>
> then any key, KEY, which has *not* occurred in a call:
>
>   (define-key KEYMAP KEY def)
>
> for some value of def, has the DEFAULT_BINDING in KEYMAP.

Yes.

> After fishing around the manual, I found it in the info node, "Other
> Char Bits" which contains:
>
>   The Lisp syntax for the shift bit is `\S-'; thus, `?\C-\S-o' or
>   `?\C-\S-O' represents the shifted-control-o character.
>
> The ? was a bit  mysterious at first, but more fishing showed
> me what it meant, but I don't remember where that info node is.

If you read the "Key Bindings" section in the Emacs manual (which
again, I think provides a better first introduction than the Elisp
manual), it gives clear examples of the vector syntax ("Rebinding Keys
in Your Init File"). It has C- and M-, it just doesn't mention S-,
AFAICS. C- and M- are explained right at the start of the manual
("2 Kinds of User Input").





      reply	other threads:[~2011-01-10 23:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 21:12 bug#7803: 23.1; Need better definition of vector notation in define-key cppljevans
2011-01-07 23:09 ` Andreas Schwab
2011-01-08  0:47   ` Larry Evans
2011-01-08  1:50     ` Glenn Morris
2011-01-08  3:08       ` Larry Evans
2011-01-10 23:34         ` Glenn Morris [this message]

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=7s8vyscozd.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=cppljevans@suddenlink.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.