aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-11 16:36:23 -0400
committerStefan Monnier2012-10-11 16:36:23 -0400
commit9f1a4aa5053253b83b776ff52ed332b5efbae2ca (patch)
tree0a28753fb5ec4c71cc6f95b5385433dd8f1ff4e1
parent389a94a53dfc947c5dc9964b5617e0098513bbe0 (diff)
downloademacs-9f1a4aa5053253b83b776ff52ed332b5efbae2ca.tar.gz
emacs-9f1a4aa5053253b83b776ff52ed332b5efbae2ca.zip
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): Idem.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/emacs-lisp/cl-lib.el4
-rw-r--r--lisp/emacs-lisp/cl-macs.el3
3 files changed, 4 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 97e9965c6b9..534d0ad2dcd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,6 @@
12012-10-11 Stefan Monnier <monnier@iro.umontreal.ca> 12012-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * help-fns.el (describe-function-1): Handle autoloads w/o docstrings. 3 * help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
4 * emacs-lisp/cl-lib.el (cl--defsubst-expand): Move autoload...
5 * emacs-lisp/cl-macs.el (cl--defsubst-expand): ...here.
6 4
7 * emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago 5 * emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago
8 changes to the format of load-history. 6 changes to the format of load-history.
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 802d25b097a..122402797e1 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -727,6 +727,10 @@ If ALIST is non-nil, the new pairs are prepended to it."
727 727
728;;;###autoload 728;;;###autoload
729(progn 729(progn
730 ;; Make sure functions defined with cl-defsubst can be inlined even in
731 ;; packages which do not require CL. We don't put an autoload cookie
732 ;; directly on that function, since those cookies only go to cl-loaddefs.
733 (autoload 'cl--defsubst-expand "cl-macs")
730 ;; Autoload, so autoload.el and font-lock can use it even when CL 734 ;; Autoload, so autoload.el and font-lock can use it even when CL
731 ;; is not loaded. 735 ;; is not loaded.
732 (put 'cl-defun 'doc-string-elt 3) 736 (put 'cl-defun 'doc-string-elt 3)
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 1a701e9047a..592c33d21c5 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2595,9 +2595,6 @@ surrounded by (cl-block NAME ...).
2595 ,(and (memq '&key args) 'cl-whole) ,unsafe ,@argns))) 2595 ,(and (memq '&key args) 'cl-whole) ,unsafe ,@argns)))
2596 (cl-defun ,name ,args ,@body)))) 2596 (cl-defun ,name ,args ,@body))))
2597 2597
2598;; Make sure functions defined with cl-defsubst can be inlined even in
2599;; packages which do not require CL.
2600;;;###autoload
2601(defun cl--defsubst-expand (argns body simple whole unsafe &rest argvs) 2598(defun cl--defsubst-expand (argns body simple whole unsafe &rest argvs)
2602 (if (and whole (not (cl--safe-expr-p (cons 'progn argvs)))) whole 2599 (if (and whole (not (cl--safe-expr-p (cons 'progn argvs)))) whole
2603 (if (cl--simple-exprs-p argvs) (setq simple t)) 2600 (if (cl--simple-exprs-p argvs) (setq simple t))