diff options
| author | Stefan Monnier | 2021-04-13 23:28:04 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2021-04-13 23:28:04 -0400 |
| commit | 86daa721bb287652a70162c8dcdf8d9d37013ac7 (patch) | |
| tree | 980192aea0691283d4d9574506181fc864f66545 | |
| parent | 468a00f380ec46d57fec73c0dbb90779963be4fe (diff) | |
| download | emacs-86daa721bb287652a70162c8dcdf8d9d37013ac7.tar.gz emacs-86daa721bb287652a70162c8dcdf8d9d37013ac7.zip | |
* lisp/emacs-lisp/eieio-core.el (list-of): Don't quote lambda
| -rw-r--r-- | lisp/emacs-lisp/eieio-core.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index e7727fd3fc9..2923dffd951 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el | |||
| @@ -169,7 +169,7 @@ Return nil if that option doesn't exist." | |||
| 169 | (and (recordp obj) | 169 | (and (recordp obj) |
| 170 | (eieio--class-p (eieio--object-class obj)))) | 170 | (eieio--class-p (eieio--object-class obj)))) |
| 171 | 171 | ||
| 172 | (define-obsolete-function-alias 'object-p 'eieio-object-p "25.1") | 172 | (define-obsolete-function-alias 'object-p #'eieio-object-p "25.1") |
| 173 | 173 | ||
| 174 | (defun class-abstract-p (class) | 174 | (defun class-abstract-p (class) |
| 175 | "Return non-nil if CLASS is abstract. | 175 | "Return non-nil if CLASS is abstract. |
| @@ -242,9 +242,9 @@ use \\='%s or turn off `eieio-backward-compatibility' instead" cname) | |||
| 242 | 242 | ||
| 243 | (cl-deftype list-of (elem-type) | 243 | (cl-deftype list-of (elem-type) |
| 244 | `(and list | 244 | `(and list |
| 245 | (satisfies (lambda (list) | 245 | (satisfies ,(lambda (list) |
| 246 | (cl-every (lambda (elem) (cl-typep elem ',elem-type)) | 246 | (cl-every (lambda (elem) (cl-typep elem elem-type)) |
| 247 | list))))) | 247 | list))))) |
| 248 | 248 | ||
| 249 | 249 | ||
| 250 | (defun eieio-make-class-predicate (class) | 250 | (defun eieio-make-class-predicate (class) |
| @@ -787,7 +787,7 @@ Fills in OBJ's SLOT with its default value." | |||
| 787 | (cond | 787 | (cond |
| 788 | ;; Is it a function call? If so, evaluate it. | 788 | ;; Is it a function call? If so, evaluate it. |
| 789 | ((eieio-eval-default-p val) | 789 | ((eieio-eval-default-p val) |
| 790 | (eval val)) | 790 | (eval val t)) |
| 791 | ;;;; check for quoted things, and unquote them | 791 | ;;;; check for quoted things, and unquote them |
| 792 | ;;((and (consp val) (eq (car val) 'quote)) | 792 | ;;((and (consp val) (eq (car val) 'quote)) |
| 793 | ;; (car (cdr val))) | 793 | ;; (car (cdr val))) |
| @@ -1029,7 +1029,7 @@ method invocation orders of the involved classes." | |||
| 1029 | (eieio--class-precedence-c3 class)))))) | 1029 | (eieio--class-precedence-c3 class)))))) |
| 1030 | 1030 | ||
| 1031 | (define-obsolete-function-alias | 1031 | (define-obsolete-function-alias |
| 1032 | 'class-precedence-list 'eieio--class-precedence-list "24.4") | 1032 | 'class-precedence-list #'eieio--class-precedence-list "24.4") |
| 1033 | 1033 | ||
| 1034 | 1034 | ||
| 1035 | ;;; Here are some special types of errors | 1035 | ;;; Here are some special types of errors |