summaryrefslogtreecommitdiff
path: root/lisp/macros.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-07-29 03:27:05 +0000
committerRichard M. Stallman <rms@gnu.org>1993-07-29 03:27:05 +0000
commit4dc7458eb6f658052f280802763690d175a8c075 (patch)
tree12174e03d3b7bc678802137178394c395132dff6 /lisp/macros.el
parentaf7dc6c738269cd19feea2651b8c8890eeffc940 (diff)
downloademacs-4dc7458eb6f658052f280802763690d175a8c075.tar.gz
(name-last-kbd-macro): Handle macros that are vectors.
Diffstat (limited to 'lisp/macros.el')
-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))