summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/macros.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/macros.el b/lisp/macros.el
index b1da9eb1162..c2e8b18b4af 100644
--- a/lisp/macros.el
+++ b/lisp/macros.el
@@ -41,6 +41,7 @@ Such a \"function\" cannot be called from Lisp, but it is a valid editor command
(error "No keyboard macro defined"))
(and (fboundp symbol)
(not (stringp (symbol-function symbol)))
+ (not (vectorp (symbol-function symbol)))
(error "Function %s is already defined and not a keyboard macro."
symbol))
(fset symbol last-kbd-macro))