From: Richard M. Stallman Date: Fri, 21 Dec 2001 14:13:37 +0000 (+0000) Subject: (eval-defun-1): Cope with atoms as args. X-Git-Tag: emacs-21.2~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f2b1272e0414a2ec54a00d5eca45a309f294a02;p=emacs.git (eval-defun-1): Cope with atoms as args. --- diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index d1f4efd64ac..6736159d60f 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -453,7 +453,9 @@ Interactively, with prefix argument, print output into current buffer." Likewise for other constructs as necessary." ;; The code in edebug-defun should be consistent with this, but not ;; the same, since this gets a macroexpended form. - (cond ((and (eq (car form) 'defvar) + (cond ((not (listp form)) + form) + ((and (eq (car form) 'defvar) (cdr-safe (cdr-safe form))) ;; Force variable to be bound. (cons 'defconst (cdr form)))