comparison man/lispref/keymaps.texi @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 3ecd8885ac67
children 576fb035e263
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
277 A key sequence is a vector of keystrokes. As a degenerate case, 277 A key sequence is a vector of keystrokes. As a degenerate case,
278 elements of this vector may also be keysyms if they have no modifiers. 278 elements of this vector may also be keysyms if they have no modifiers.
279 That is, the @kbd{A} keystroke is represented by all of these forms: 279 That is, the @kbd{A} keystroke is represented by all of these forms:
280 280
281 @example 281 @example
282 A ?A 65 (A) (?A) (65) 282 A ?A 65 (A) (?A) (65)
283 [A] [?A] [65] [(A)] [(?A)] [(65)] 283 [A] [?A] [65] [(A)] [(?A)] [(65)]
284 @end example 284 @end example
285 285
286 the @kbd{control-a} keystroke is represented by these forms: 286 the @kbd{control-a} keystroke is represented by these forms:
287 287
288 @example 288 @example
289 (control A) (control ?A) (control 65) 289 (control A) (control ?A) (control 65)
290 [(control A)] [(control ?A)] [(control 65)] 290 [(control A)] [(control ?A)] [(control 65)]
291 @end example 291 @end example
292 292
293 the key sequence @kbd{control-c control-a} is represented by these 293 the key sequence @kbd{control-c control-a} is represented by these
294 forms: 294 forms:
295 295
296 @example 296 @example
297 [(control c) (control a)] [(control ?c) (control ?a)] 297 [(control c) (control a)] [(control ?c) (control ?a)]
298 [(control 99) (control 65)] etc. 298 [(control 99) (control 65)] etc.
299 @end example 299 @end example
300 300
301 Mouse button clicks work just like keypresses: @code{(control 301 Mouse button clicks work just like keypresses: @code{(control
302 button1)} means pressing the left mouse button while holding down the 302 button1)} means pressing the left mouse button while holding down the
303 control key. @code{[(control c) (shift button3)]} means 303 control key. @code{[(control c) (shift button3)]} means
317 @code{(control h)} and @code{backspace}. Binding a command to this will 317 @code{(control h)} and @code{backspace}. Binding a command to this will
318 actually bind both of those key sequences. Likewise for the following 318 actually bind both of those key sequences. Likewise for the following
319 pairs: 319 pairs:
320 320
321 @example 321 @example
322 control h backspace 322 control h backspace
323 control i tab 323 control i tab
324 control m return 324 control m return
325 control j linefeed 325 control j linefeed
326 control [ escape 326 control [ escape
327 control @@ control space 327 control @@ control space
328 @end example 328 @end example
329 329
330 After binding a command to two key sequences with a form like 330 After binding a command to two key sequences with a form like
331 331
332 @example 332 @example
333 (define-key global-map "\^X\^I" 'command-1) 333 (define-key global-map "\^X\^I" 'command-1)
334 @end example 334 @end example
335 335
336 @noindent 336 @noindent
337 it is possible to redefine only one of those sequences like so: 337 it is possible to redefine only one of those sequences like so:
338 338
339 @example 339 @example
340 (define-key global-map [(control x) (control i)] 'command-2) 340 (define-key global-map [(control x) (control i)] 'command-2)
341 (define-key global-map [(control x) tab] 'command-3) 341 (define-key global-map [(control x) tab] 'command-3)
342 @end example 342 @end example
343 343
344 Of course, all of this applies only when running under a window 344 Of course, all of this applies only when running under a window
345 system. If you're talking to XEmacs through a @sc{tty} connection, you 345 system. If you're talking to XEmacs through a @sc{tty} connection, you
346 don't get any of these features. 346 don't get any of these features.
612 @group 612 @group
613 (current-local-map) 613 (current-local-map)
614 @result{} #<keymap lisp-interaction-mode-map 5 entries 0x558> 614 @result{} #<keymap lisp-interaction-mode-map 5 entries 0x558>
615 (describe-bindings-internal (current-local-map)) 615 (describe-bindings-internal (current-local-map))
616 @result{} ; @r{Inserted into the buffer:} 616 @result{} ; @r{Inserted into the buffer:}
617 backspace backward-delete-char-untabify 617 backspace backward-delete-char-untabify
618 linefeed eval-print-last-sexp 618 linefeed eval-print-last-sexp
619 delete delete-char 619 delete delete-char
620 C-j eval-print-last-sexp 620 C-j eval-print-last-sexp
621 C-x << Prefix Command >> 621 C-x << Prefix Command >>
622 M-tab lisp-complete-symbol 622 M-tab lisp-complete-symbol
623 M-; lisp-indent-for-comment 623 M-; lisp-indent-for-comment
624 M-C-i lisp-complete-symbol 624 M-C-i lisp-complete-symbol
625 M-C-q indent-sexp 625 M-C-q indent-sexp
626 M-C-x eval-defun 626 M-C-x eval-defun
627 Alt-backspace backward-kill-sexp 627 Alt-backspace backward-kill-sexp
628 Alt-delete kill-sexp 628 Alt-delete kill-sexp
629 @end group 629 @end group
630 630
631 @group 631 @group
632 C-x x edebug-defun 632 C-x x edebug-defun
633 @end group 633 @end group
634 @end example 634 @end example
635 @end defun 635 @end defun
636 636
637 @defun current-minor-mode-maps 637 @defun current-minor-mode-maps