* None
@ 2003-01-11 16:32 Luc Teirlinck
2003-01-11 21:14 ` your mail Alan Mackenzie
0 siblings, 1 reply; 3+ messages in thread
From: Luc Teirlinck @ 2003-01-11 16:32 UTC (permalink / raw)
Cc: bug-gnu-emacs
Alan Mackenzie wrote:
Gnu Emacs Lisp Reference Manual v. 2.7.
There is no description of "[t]", as in
(define-key map [t] 'isearch-other-control-char)
on the page "Changing Key Bindings", where define-key is specified. I
couldn't find this information anywhere else, either.
It is explained in the section "Format of keymaps", Section 22.2 in
the printed version 2.6, m elisp m keymaps m format, if you are using
info.
Sincerely,
Luc Teirlinck.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: your mail
2003-01-11 16:32 None Luc Teirlinck
@ 2003-01-11 21:14 ` Alan Mackenzie
2003-01-11 23:39 ` (define-key MAP [t] ...) Luc Teirlinck
0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2003-01-11 21:14 UTC (permalink / raw)
Cc: bug-gnu-emacs
On Sat, 11 Jan 2003, Luc Teirlinck wrote:
>Alan Mackenzie wrote:
>
> Gnu Emacs Lisp Reference Manual v. 2.7.
>
> There is no description of "[t]", as in
>
> (define-key map [t] 'isearch-other-control-char)
>
> on the page "Changing Key Bindings", where define-key is specified. I
> couldn't find this information anywhere else, either.
>
>It is explained in the section "Format of keymaps", Section 22.2 in
>the printed version 2.6, m elisp m keymaps m format, if you are using
>info.
Really? Maybe it got lost in the transition from versions 2.6 to 2.7.
But even so, this "[t]" is the parameter KEY to define-key, so I really think
that there should be something in define-key's specification saying how
this works - or maybe a cross reference to where the various forms of KEY
are specified.
Do you mean here the description of `(t . BINDING)' in the "Changing Key
Bindings" page? If so, I'm still mystified as to how
[t] 'isearch-other-control-char
gets transformed into
(t . isearch-other-control-char)
in the keymap. I'm no nearer to finding anything helpful in the info
pages. Thanks for the reply, though.
>Luc Teirlinck.
--
Alan Mackenzie (Munich, Germany)
acm@muc.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (define-key MAP [t] ...)
2003-01-11 21:14 ` your mail Alan Mackenzie
@ 2003-01-11 23:39 ` Luc Teirlinck
0 siblings, 0 replies; 3+ messages in thread
From: Luc Teirlinck @ 2003-01-11 23:39 UTC (permalink / raw)
Cc: bug-gnu-emacs
I mean the text:
`(t . BINDING)'
This specifies a "default key binding"; any event not bound by
other elements of the keymap is given BINDING as its binding.
Default bindings allow a keymap to bind all possible event types
without having to enumerate all of them. A keymap that has a
default binding completely masks any lower-precedence keymap.
in the "Format of keymaps" section. I noticed though that I made
myself a note saying: "Use [t] for `key' to specify the default
binding" in the define-key definition of my own copy of the Elisp
manual. Since I felt the need to remind myself of that using a note
and you seem confused by it, you are probably right that adding a
small sentence to that effect in the define-key documentation might be
useful.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-11 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-11 16:32 None Luc Teirlinck
2003-01-11 21:14 ` your mail Alan Mackenzie
2003-01-11 23:39 ` (define-key MAP [t] ...) Luc Teirlinck
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).