From 6992a868c3d642d0678be436366af0db17e93bd1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 12 Jun 2004 10:32:44 +0000 Subject: [PATCH] (Fdefun): Signal an error if NAME is not a symbol. --- src/eval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eval.c b/src/eval.c index e1da1def446..096755f9c77 100644 --- a/src/eval.c +++ b/src/eval.c @@ -617,6 +617,7 @@ usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */) register Lisp_Object defn; fn_name = Fcar (args); + CHECK_SYMBOL (fn_name); defn = Fcons (Qlambda, Fcdr (args)); if (!NILP (Vpurify_flag)) defn = Fpurecopy (defn); -- 2.39.5