diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-07 15:25:48 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-07 15:25:48 -0400 |
commit | 4dd1c416d1c17aee0558dc3c1a37549462e75526 (patch) | |
tree | 78bf1ca7f09bc1e98e6a348012bcc43c6b269cb4 /lisp/emacs-lisp/cl-loaddefs.el | |
parent | 7287f2f3453903ec10164e9ca44626a588a7a793 (diff) | |
download | emacs-4dd1c416d1c17aee0558dc3c1a37549462e75526.tar.gz emacs-4dd1c416d1c17aee0558dc3c1a37549462e75526.tar.bz2 emacs-4dd1c416d1c17aee0558dc3c1a37549462e75526.zip |
Cleanup cl-macs namespace. Add macro helpers in macroexp.el.
* emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*, macroexp-if)
(macroexp-let², macroexp--const-symbol-p, macroexp-const-p)
(macroexp-copyable-p): New functions and macros.
* emacs-lisp/edebug.el (edebug-unwrap):
* emacs-lisp/disass.el (disassemble-internal): Use macroexp-progn.
* emacs-lisp/pcase.el: Use macroexp-let*, macroexp-if, ...
(pcase--let*): Remove.
* emacs-lisp/bytecomp.el (byte-compile-const-symbol-p)
(byte-compile-constp): Remove. Use macroexp--const-symbol-p and
macroexp-const-p instead.
* emacs-lisp/byte-opt.el: Use macroexp-const-p and macroexp-progn.
* emacs-lisp/cl-macs.el: Clean up the name space by using "cl--"
instead of "cl-" for internal definitions. Use macroexp-const-p.
(cl-old-bc-file-form): Remove var.
(cl-const-exprs-p): Remove fun.
(cl-labels, cl-macrolet): Use backquote.
(cl-lexical-let): Use cl-symbol-macrolet. Don't use cl-defun-expander.
(cl-defun-expander, cl-byte-compile-compiler-macro): Remove fun.
(cl-define-setf-expander): Rename from cl-define-setf-method.
* emacs-lisp/cl.el: Adjust alias for define-setf-method.
* international/mule-cmds.el: Don't require CL.
(view-hello-file): Don't use `letf'.
Diffstat (limited to 'lisp/emacs-lisp/cl-loaddefs.el')
-rw-r--r-- | lisp/emacs-lisp/cl-loaddefs.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el index d521ea32117..0e2c97f9c44 100644 --- a/lisp/emacs-lisp/cl-loaddefs.el +++ b/lisp/emacs-lisp/cl-loaddefs.el @@ -281,7 +281,7 @@ This also does some trivial optimizations to make the form prettier. ;;;;;; cl-assert cl-check-type cl-typep cl-deftype cl-struct-setf-expander ;;;;;; cl-defstruct cl-define-modify-macro cl-callf2 cl-callf cl-letf* ;;;;;; cl-letf cl-rotatef cl-shiftf cl-remf cl-do-pop cl-psetf cl-setf -;;;;;; cl-get-setf-method cl-defsetf cl-define-setf-method cl-declare +;;;;;; cl-get-setf-method cl-defsetf cl-define-setf-expander cl-declare ;;;;;; cl-the cl-locally cl-multiple-value-setq cl-multiple-value-bind ;;;;;; cl-lexical-let* cl-lexical-let cl-symbol-macrolet cl-macrolet ;;;;;; cl-labels cl-flet cl-progv cl-psetq cl-do-all-symbols cl-do-symbols @@ -289,7 +289,7 @@ This also does some trivial optimizations to make the form prettier. ;;;;;; cl-return cl-block cl-etypecase cl-typecase cl-ecase cl-case ;;;;;; cl-load-time-value cl-eval-when cl-destructuring-bind cl-function ;;;;;; cl-defmacro cl-defun cl-gentemp cl-gensym) "cl-macs" "cl-macs.el" -;;;;;; "f3973150add70d26cadb8530147dfc99") +;;;;;; "25086e27342ec0990f35f1748a5b7b4e") ;;; Generated autoloads from cl-macs.el (autoload 'cl-gensym "cl-macs" "\ @@ -611,7 +611,7 @@ See Info node `(cl)Declarations' for details. \(fn &rest SPECS)" nil t) -(autoload 'cl-define-setf-method "cl-macs" "\ +(autoload 'cl-define-setf-expander "cl-macs" "\ Define a `cl-setf' method. This method shows how to handle `cl-setf's to places of the form (NAME ARGS...). The argument forms ARGS are bound according to ARGLIST, as if NAME were @@ -624,7 +624,7 @@ form. See `cl-defsetf' for a simpler way to define most setf-methods. (autoload 'cl-defsetf "cl-macs" "\ Define a `cl-setf' method. -This macro is an easy-to-use substitute for `cl-define-setf-method' that works +This macro is an easy-to-use substitute for `cl-define-setf-expander' that works well for simple place forms. In the simple `cl-defsetf' form, `cl-setf's of the form (cl-setf (NAME ARGS...) VAL) are transformed to function or macro calls of the form (FUNC ARGS... VAL). Example: |