non-symbols for compiler macros (yet).
2012-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
+ * emacs-lisp/byte-run.el (defun-declarations-alist): Don't accept
+ non-symbols for compiler macros (yet).
+
* eshell/em-cmpl.el (eshell-pcomplete): Refine fix for bug#12838:
Fallback on completion-at-point rather than
pcomplete-expand-and-complete, and only if pcomplete actually failed.
`(make-obsolete ',f ',new-name ,when)))
(list 'compiler-macro
#'(lambda (f _args compiler-function)
- `(put ',f 'compiler-macro #',compiler-function)))
+ (if (not (symbolp compiler-function))
+ (error "Only symbols are supported in `compiler-macro'")
+ `(put ',f 'compiler-macro #',compiler-function))))
(list 'doc-string
#'(lambda (f _args pos)
(list 'put (list 'quote f) ''doc-string-elt (list 'quote pos))))