From: Eli Zaretskii Date: Sat, 12 Jun 2004 10:32:44 +0000 (+0000) Subject: (Fdefun): Signal an error if NAME is not a symbol. X-Git-Tag: ttn-vms-21-2-B4~5812 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6992a868c3d642d0678be436366af0db17e93bd1;p=emacs.git (Fdefun): Signal an error if NAME is not a symbol. --- 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);