Commit 63f25172 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Don't accept

non-symbols for compiler macros (yet).
parent 93b05041
2012-11-19 Stefan Monnier <>
* 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.
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment