* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Don't accept
non-symbols for compiler macros (yet).
This commit is contained in:
parent
93b050412a
commit
63f251724c
2 changed files with 6 additions and 1 deletions
|
@ -82,7 +82,9 @@ The return value of this function is not used."
|
|||
`(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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue