Mercurial > emacs
comparison lisp/subr.el @ 56625:d9455bfd01ee
(global-unset-key, local-unset-key): Doc fixes.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Sun, 08 Aug 2004 16:49:37 +0000 |
parents | 059dc717baef |
children | e8b05868f298 1425b1df1da8 |
comparison
equal
deleted
inserted
replaced
56624:05bc08d74392 | 56625:d9455bfd01ee |
---|---|
2302 (signal 'wrong-type-argument (list 'arrayp key))) | 2302 (signal 'wrong-type-argument (list 'arrayp key))) |
2303 (define-key map key command))) | 2303 (define-key map key command))) |
2304 | 2304 |
2305 (defun global-unset-key (key) | 2305 (defun global-unset-key (key) |
2306 "Remove global binding of KEY. | 2306 "Remove global binding of KEY. |
2307 KEY is a string representing a sequence of keystrokes." | 2307 KEY is a string or vector representing a sequence of keystrokes." |
2308 (interactive "kUnset key globally: ") | 2308 (interactive "kUnset key globally: ") |
2309 (global-set-key key nil)) | 2309 (global-set-key key nil)) |
2310 | 2310 |
2311 (defun local-unset-key (key) | 2311 (defun local-unset-key (key) |
2312 "Remove local binding of KEY. | 2312 "Remove local binding of KEY. |
2313 KEY is a string representing a sequence of keystrokes." | 2313 KEY is a string or vector representing a sequence of keystrokes." |
2314 (interactive "kUnset key locally: ") | 2314 (interactive "kUnset key locally: ") |
2315 (if (current-local-map) | 2315 (if (current-local-map) |
2316 (local-set-key key nil)) | 2316 (local-set-key key nil)) |
2317 nil) | 2317 nil) |
2318 | 2318 |