buffer-bind-key - Create local key binding for current buffer
buffer-bind-unbound-key - Conditionally create binding for current buffer
buffer-unbind-key - Remove local key binding for current buffer
buffer-bind-key "command" "key"
buffer-unbind-key "key" buffer-bind-unbound-key "command" "key"
buffer-bind-key creates a key binding local to the current buffer, binding the command command to the keyboard input key. This command is particularly useful in conjunction with file loading hooks (see add-file-hook(2)) allowing local key bindings dependent upon the context of the buffer.
The message line input is not effected by the current buffers local bindings.
buffer-bind-unbound-key behaves exactly like buffer-bind-key except that it does not bind the key if it is already bound by something else. Hook files typically use buffer-bind-unbound-key to bind keys such as f1 where the binding is not made if the user has already performed a global binding of the key.
buffer-unbind-key unbinds a user created local key binding, this command effects only the current buffer.
The prefix commands cannot be rebound with this command.
Key response time linearly increases with each local binding added.
buffer-bind-unbound-key is implemented as a macro in me.emf.
(c) Copyright JASSPA 1999
Last Modified: 1999/11/29
Generated On: 1999/12/01