aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/cconv.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el
index 02fe794467b..ca46dbb7b55 100644
--- a/lisp/emacs-lisp/cconv.el
+++ b/lisp/emacs-lisp/cconv.el
@@ -449,8 +449,11 @@ places where they originally did not directly appear."
449 ;defconst, defvar 449 ;defconst, defvar
450 (`(,(and sym (or `defconst `defvar)) ,definedsymbol . ,forms) 450 (`(,(and sym (or `defconst `defvar)) ,definedsymbol . ,forms)
451 `(,sym ,definedsymbol 451 `(,sym ,definedsymbol
452 . ,(mapcar (lambda (form) (cconv-convert form env extend)) 452 . ,(when (consp forms)
453 forms))) 453 (cons (cconv-convert (car forms) env extend)
454 ;; The rest (i.e. docstring, of any) is not evaluated,
455 ;; and may be an invalid expression (e.g. ($# . 678)).
456 (cdr forms)))))
454 457
455 ;condition-case 458 ;condition-case
456 ((and `(condition-case ,var ,protected-form . ,handlers) 459 ((and `(condition-case ,var ,protected-form . ,handlers)