summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 7f6db387cce..e0a8e0177ff 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -970,12 +970,12 @@ KEY is a string representing a sequence of keystrokes."
(interactive "kUnset key globally: ")
(global-set-key key nil))
-(defun local-unset-key
+(defun local-unset-key (key)
"Remove local binding of KEY.
KEY is a string representing a sequence of keystrokes."
(interactive "kUnset key locally: ")
(if (current-local-map)
- (local-set-key (current-local-map) key nil))
+ (local-set-key key nil))
nil)
;; now in fns.c