aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/cl-lib.el
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2012-06-14 23:18:14 -0400
committerStefan Monnier <[email protected]>2012-06-14 23:18:14 -0400
commitf38ea36d3d9415aeaf895ea7b439c41ee441c500 (patch)
tree3dfb3b74fea3209bc021999edf7f75dbfa1ae3d0 /lisp/emacs-lisp/cl-lib.el
parent2d7b84eab6a10752713af889f291c046eed33677 (diff)
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Autoload inliner.
* lisp/emacs-lisp/macroexp.el (macroexp--compiler-macro): New function. (macroexp--expand-all): Use it. Fixes: debbugs:11649
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
-rw-r--r--lisp/emacs-lisp/cl-lib.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 223067c600..bf7f6232ab 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -641,6 +641,9 @@ If ALIST is non-nil, the new pairs are prepended to it."
;;;###autoload
(progn
+ ;; Make sure functions defined with cl-defsubst can be inlined even in
+ ;; packages which do not require CL.
+ (autoload 'cl--defsubst-expand "cl-macs")
;; Autoload, so autoload.el and font-lock can use it even when CL
;; is not loaded.
(put 'cl-defun 'doc-string-elt 3)