]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/emacs-lisp/fcr.el: Rename `fcr-make` to `fcr-lambda`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 Dec 2021 17:45:01 +0000 (12:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 Dec 2021 17:45:01 +0000 (12:45 -0500)
* lisp/emacs-lisp/fcr.el (fcr-lambda): Rename from `fcr-make`.
* lisp/emacs-lisp/cl-generic.el (cl-generic-call-method):
* test/lisp/emacs-lisp/fcr-tests.el (fcr-tests):
* lisp/kmacro.el (kmacro-lambda-form): Adjust accordingly.

lisp/emacs-lisp/cl-generic.el
lisp/emacs-lisp/fcr.el
lisp/kmacro.el
test/lisp/emacs-lisp/fcr-tests.el

index 6ba38493505a2f449dec8943dac3e9cd62d37c78..5e7b8151c06019f3ce27eb114497922ac9aa2194 100644 (file)
@@ -742,7 +742,7 @@ FUN is the function that should be called when METHOD calls
                (if fun
                    (lambda (&rest cnm-args)
                      (apply fun (or cnm-args args)))
-                 (fcr-make cl--generic-nnm () (&rest cnm-args)
+                 (fcr-lambda cl--generic-nnm () (&rest cnm-args)
                    (apply #'cl-no-next-method generic method
                           (or cnm-args args))))
                args)))))
index 86ebcf37bed7a04c96e0afc046192476566a33bb..4e2b5c6e6a40201ed9a41b428c3521ef3d1200a8 100644 (file)
     (defalias predname pred)
     (put name 'cl-deftype-handler (lambda () type))))
 
-(defmacro fcr-make (type fields args &rest body)
+(defmacro fcr-lambda (type fields args &rest body)
   (declare (indent 3) (debug (sexp (&rest (sexp form)) sexp def-body)))
   ;; FIXME: Provide the fields in the order specified by `type'.
   (let* ((class (cl--find-class type))
index 211f0abd3ebe1a1c5dedf0f4330c8bd9edc9c510..b6779db3076907d48073bb89b19225a7a36cabf3 100644 (file)
@@ -823,8 +823,8 @@ If kbd macro currently being defined end it before activating it."
   ;; or only `mac' is provided, as a list (MAC COUNTER FORMAT).
   ;; The first is used from `insert-kbd-macro' and `edmacro-finish-edit',
   ;; while the second is used from within this file.
-  (fcr-make kmacro-function ((mac (if counter (list mac counter format) mac)))
-            (&optional arg)
+  (fcr-lambda kmacro-function ((mac (if counter (list mac counter format) mac)))
+              (&optional arg)
     (interactive "p")
     (kmacro-exec-ring-item mac arg)))
 
index 8df61ed8ea4112b8e6f1759e815eddc906f9fd63..379fa27e99189b29cfbae69f009e6f3f0a0031a7 100644 (file)
 
 (ert-deftest fcr-tests ()
   (let* ((i 42)
-         (fcr1 (fcr-make fcr-test ((fst 1) (snd 2) (name "hi"))
-                         ()
-                         (list fst snd i)))
-         (fcr2 (fcr-make fcr-test ((name (cl-incf i)) (fst (cl-incf i)))
-                         ()
-                         (list fst snd 152 i))))
+         (fcr1 (fcr-lambda fcr-test ((fst 1) (snd 2) (name "hi"))
+                           ()
+                 (list fst snd i)))
+         (fcr2 (fcr-lambda fcr-test ((name (cl-incf i)) (fst (cl-incf i)))
+                           ()
+                 (list fst snd 152 i))))
     (message "hello-1")
     (should (equal (list (fcr-test--fst fcr1)
                          (fcr-test--snd fcr1)