GNU bug report logs - #7803
23.1; Need better definition of vector notation in define-key

Previous Next

Package: emacs;

Reported by: <cppljevans <at> suddenlink.net>

Date: Fri, 7 Jan 2011 21:12:02 UTC

Severity: minor

Found in version 23.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 7803 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Larry Evans <cppljevans <at> suddenlink.net>
Cc: 7803 <at> debbugs.gnu.org
Subject: Re: bug#7803: 23.1;
	Need better definition of vector notation in define-key
Date: Fri, 07 Jan 2011 20:50:04 -0500
Larry Evans wrote:

> Ah, so when it says:
>
>   If KEY is `[t]', this sets the default binding in KEYMAP.
>
> it means:

You're overthinking it. It means literally what it says: a vector with
a single element `t'. Not a vector with any other contents.
`t' in Emacs documentation always means the special symbol `t', for truth.

Rather than reading the Lispref, the Emacs manual offers a better
introduction to key bindings for the purposes of user customization.

(I admit I couldn't see a clear mention of "S-" = "shift" there, though.)




This bug report was last modified 13 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.