[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/etc/NEWS
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/etc/NEWS |
Date: |
Sat, 23 Feb 2002 18:42:31 -0500 |
Index: emacs/etc/NEWS
diff -c emacs/etc/NEWS:1.611 emacs/etc/NEWS:1.612
*** emacs/etc/NEWS:1.611 Sat Feb 23 16:35:06 2002
--- emacs/etc/NEWS Sat Feb 23 18:42:31 2002
***************
*** 531,538 ****
my-kill-line and kill-word into my-kill-word through the minor mode
map using define-key:
! (define-key my-mode-map 'kill-line 'my-kill-line)
! (define-key my-mode-map 'kill-word 'my-kill-word)
Now, when my-mode is enabled, and the user enters C-k or M-d,
the commands my-kill-line and my-kill-word are run.
--- 531,538 ----
my-kill-line and kill-word into my-kill-word through the minor mode
map using define-key:
! (define-key my-mode-map [remap kill-line] 'my-kill-line)
! (define-key my-mode-map [remap kill-word] 'my-kill-word)
Now, when my-mode is enabled, and the user enters C-k or M-d,
the commands my-kill-line and my-kill-word are run.
***************
*** 543,562 ****
The following changes have been made to provide command remapping:
! - define-key now accepts a command name as the KEY argument.
! This identifies the command to be remapped in the specified keymap.
! This is equivalent to specifying the command name as the only
! element of a vector, e.g [kill-line], except that when KEY is a
! symbol, the DEF argument must also be a symbol.
! - In calls from Lisp, global-set-key, global-unset-key, local-set-key,
! and local-unset-key also accept a command name as the KEY argument.
- key-binding now remaps interactive commands unless the optional
! third argument NO-REMAP is non-nil. It also accepts a command name
! as the KEY argument.
!
! - lookup-key now accepts a command name as the KEY argument.
- where-is-internal now returns nil for a remapped command (e.g.
kill-line if my-mode is enabled), and the actual key binding for
--- 543,558 ----
The following changes have been made to provide command remapping:
! - Command remappings are defined using `define-key' with a prefix-key
! `remap', i.e. `(define-key MAP [remap CMD] DEF)' remaps command CMD
! to definition DEF in keymap MAP. The definition is not limited to
! another command; it can be anything accepted for a normal binding.
! - The new function `remap-command' returns the binding for a remapped
! command in the current keymaps, or nil if it isn't remapped.
- key-binding now remaps interactive commands unless the optional
! third argument NO-REMAP is non-nil.
- where-is-internal now returns nil for a remapped command (e.g.
kill-line if my-mode is enabled), and the actual key binding for
- [Emacs-diffs] Changes to emacs/etc/NEWS, (continued)
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/16
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2002/02/16
- [Emacs-diffs] Changes to emacs/etc/NEWS, Per Abrahamsen, 2002/02/17
- [Emacs-diffs] Changes to emacs/etc/NEWS, Richard M. Stallman, 2002/02/17
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/17
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/19
- [Emacs-diffs] Changes to emacs/etc/NEWS, Richard M. Stallman, 2002/02/20
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/22
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/22
- [Emacs-diffs] Changes to emacs/etc/NEWS, Colin Walters, 2002/02/23
- [Emacs-diffs] Changes to emacs/etc/NEWS,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2002/02/26
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2002/02/28
- [Emacs-diffs] Changes to emacs/etc/NEWS, Stefan Monnier, 2002/02/28