diff options
| author | Stefan Monnier | 2015-02-16 02:22:46 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2015-02-16 02:22:46 -0500 |
| commit | c4e2be4587ec6d0f1367b1bfe220a71360e25bea (patch) | |
| tree | eb33c5650fe7ad152462f577523f115bb94e061c /test | |
| parent | 6bf61df8ab359f1371ab2e3e278bc8642d65a985 (diff) | |
| download | emacs-c4e2be4587ec6d0f1367b1bfe220a71360e25bea.tar.gz emacs-c4e2be4587ec6d0f1367b1bfe220a71360e25bea.zip | |
* lisp/emacs-lisp/eieio*.el: Align a bit better with CLOS
* lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag): Fix copy&paste
error (semanticdb-project-database => sym). Avoid eieio--class-public-a
when possible.
* lisp/emacs-lisp/eieio-base.el (make-instance): Add a method here rather
than on eieio-constructor.
* lisp/emacs-lisp/eieio-core.el (eieio--class-print-name): New function.
(eieio-class-name): Make it do what the docstring claims.
(eieio-defclass-internal): Simplify since `prots' isn't used any more.
(eieio--slot-name-index): Simplify accordingly.
(eieio-barf-if-slot-unbound): Pass the class object rather than its
name to `slot-unbound'.
* lisp/emacs-lisp/eieio.el (defclass): Use make-instance rather than
eieio-constructor.
(set-slot-value): Mark as obsolete.
(eieio-object-class-name): Improve call to eieio-class-name.
(eieio-slot-descriptor-name, eieio-class-slots): New functions.
(object-slots): Use it. Declare obsolete.
(eieio-constructor): Merge it with `make-instance'.
(initialize-instance): Use `dolist'.
(eieio-override-prin1, eieio-edebug-prin1-to-string):
Use eieio--class-print-name.
* test/automated/eieio-test-methodinvoke.el (make-instance): Add methods
here rather than on eieio-constructor.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/eieio-test-methodinvoke.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 29b7c7d59ea..87425a69148 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-02-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * automated/eieio-test-methodinvoke.el (make-instance): Add methods | ||
| 4 | here rather than on eieio-constructor. | ||
| 5 | |||
| 1 | 2015-02-13 Magnus Henoch <magnus.henoch@gmail.com> | 6 | 2015-02-13 Magnus Henoch <magnus.henoch@gmail.com> |
| 2 | 7 | ||
| 3 | * automated/sasl-scram-rfc-tests.el: New file. | 8 | * automated/sasl-scram-rfc-tests.el: New file. |
diff --git a/test/automated/eieio-test-methodinvoke.el b/test/automated/eieio-test-methodinvoke.el index da5f59a4654..62f5603d3b6 100644 --- a/test/automated/eieio-test-methodinvoke.el +++ b/test/automated/eieio-test-methodinvoke.el | |||
| @@ -179,12 +179,12 @@ | |||
| 179 | (if (next-method-p) (call-next-method)) | 179 | (if (next-method-p) (call-next-method)) |
| 180 | ) | 180 | ) |
| 181 | 181 | ||
| 182 | (defmethod eieio-constructor :STATIC ((p C-base2) &rest args) | 182 | (defmethod make-instance :STATIC ((p C-base2) &rest args) |
| 183 | (eieio-test-method-store :STATIC 'C-base2) | 183 | (eieio-test-method-store :STATIC 'C-base2) |
| 184 | (if (next-method-p) (call-next-method)) | 184 | (if (next-method-p) (call-next-method)) |
| 185 | ) | 185 | ) |
| 186 | 186 | ||
| 187 | (defmethod eieio-constructor :STATIC ((p C) &rest args) | 187 | (defmethod make-instance :STATIC ((p C) &rest args) |
| 188 | (eieio-test-method-store :STATIC 'C) | 188 | (eieio-test-method-store :STATIC 'C) |
| 189 | (call-next-method) | 189 | (call-next-method) |
| 190 | ) | 190 | ) |