diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-08 22:26:47 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-08 22:26:47 -0400 |
commit | d9857e534be786674818645a1c51410b4ca68cf8 (patch) | |
tree | a9ef3afbf43c114e4d913c3afc01b98ad9b184b8 /lisp/emacs-lisp/derived.el | |
parent | 7cb70fd73eccd2725b8e436bff3295506816f935 (diff) | |
download | emacs-d9857e534be786674818645a1c51410b4ca68cf8.tar.gz emacs-d9857e534be786674818645a1c51410b4ca68cf8.tar.bz2 emacs-d9857e534be786674818645a1c51410b4ca68cf8.zip |
Don't autoload functions too eagerly during macroexpansion.
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Only autoload
a function if there's a clear indication that it has a compiler-macro.
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist, defmacro, defun)
(macro-declarations-alist): Add arglist to declaration functions.
(defun-declarations-alist): Add `obsolete' and `compiler-macro'.
* lisp/emacs-lisp/cl-seq.el (cl-member, cl-assoc):
* lisp/emacs-lisp/cl-lib.el (cl-list*, cl-adjoin):
* lisp/emacs-lisp/cl-extra.el (cl-get): Use the new `declare' statement.
Also add autoload to find the compiler macro.
* lisp/emacs-lisp/cl-macs.el (eql) [compiler-macro]: Remove.
(cl--compiler-macro-member, cl--compiler-macro-assoc)
(cl--compiler-macro-adjoin, cl--compiler-macro-list*)
(cl--compiler-macro-get): New functions, replacing calls to
cl-define-compiler-macro.
(cl-typep) [compiler-macro]: Use macroexp-let².
Diffstat (limited to 'lisp/emacs-lisp/derived.el')
0 files changed, 0 insertions, 0 deletions