1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 08:20:41 -08:00
emacs/test/automated
Stefan Monnier 50c117fe86 EIEIO: Change class's representation to unify instance & class slots
* lisp/emacs-lisp/eieio-core.el (eieio--class): Change field names and order
to match those of cl--class; use cl--slot for both instance slots and
class slots.
(eieio--object-num-slots): Use cl-struct-slot-info.
(eieio--object-class): Rename from eieio--object-class-object.
(eieio--object-class-name): Remove.
(eieio-defclass-internal): Adjust to new slot representation.
Store doc in class rather than in `variable-documentation'.
(eieio--perform-slot-validation-for-default): Change API to take
a slot object.
(eieio--slot-override): New function.
(eieio--add-new-slot): Rewrite.
(eieio-copy-parents-into-subclass): Rewrite.
(eieio--validate-slot-value, eieio--validate-class-slot-value)
(eieio-oref-default, eieio-oset-default)
(eieio--class-slot-name-index, eieio-set-defaults): Adjust to new
slot representation.
(eieio--c3-merge-lists): Simplify.
(eieio--class/struct-parents): New function.
(eieio--class-precedence-bfs): Use it.

* lisp/emacs-lisp/eieio.el (with-slots): Use macroexp-let2.
(object-class-fast): Change recommend replacement.
(eieio-object-class): Rewrite.
(slot-exists-p): Adjust to new slot representation.
(initialize-instance): Adjust to new slot representation.
(object-write): Adjust to new slot representation.

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object):
Manually map initargs to slot names.
(eieio-persistent-validate/fix-slot-value): Adjust to new
slot representation.

* lisp/emacs-lisp/eieio-compat.el (eieio--generic-static-symbol-specializers):
Extract from eieio--generic-static-symbol-generalizer.
(eieio--generic-static-symbol-generalizer): Use it.

* lisp/emacs-lisp/eieio-custom.el (eieio-object-value-create)
(eieio-object-value-get): Adjust to new slot representation.

* lisp/emacs-lisp/eieio-datadebug.el (data-debug/eieio-insert-slots):
Declare to silence warnings.
(data-debug-insert-object-button): Avoid `object-slots'.
(data-debug/eieio-insert-slots): Adjust to new slot representation.

* lisp/emacs-lisp/eieio-opt.el (eieio--help-print-slot): New function
extracted from eieio-help-class-slots.
(eieio-help-class-slots): Use it.  Adjust to new slot representation.

* test/automated/eieio-test-methodinvoke.el (make-instance): Use new-style
`subclass' specializer for a change.

* test/automated/eieio-test-persist.el (persist-test-save-and-compare):
Adjust to new slot representation.

* test/automated/eieio-tests.el (eieio-test-17-virtual-slot): Don't use
initarg in `oset'.
(eieio-test-32-slot-attribute-override-2): Adjust to new
slot representation.

* lisp/emacs-lisp/cl-preloaded.el (cl--class): Fix type of `parents'.
2015-03-18 23:02:26 -04:00
..
data Merge from origin/emacs-24 2014-12-27 13:15:55 -03:00
add-log-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
advice-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
bytecomp-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
calc-tests.el Backport: Handle the `neg' operator in some calc-units functions. 2015-01-22 03:29:23 +01:00
cl-generic-tests.el * lisp/emacs-lisp/cl-generic.el (cl--generic-method): New struct. 2015-01-26 11:43:06 -05:00
cl-lib-tests.el * cl-macs.el (cl--transform-lambda): Refine last change. 2015-03-17 14:30:42 -04:00
comint-testsuite.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
compile-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
completion-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
core-elisp-tests.el * lisp/emacs-lisp/backquote.el: Fix bug with unoptimized exp. 2015-01-30 16:00:29 -05:00
data-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
dbus-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
decoder-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
descr-text-test.el descr-text: add `describe-char-eldoc' describing character at point 2015-01-20 15:03:20 +01:00
eieio-test-methodinvoke.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-test-persist.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-tests.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
electric-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert-x-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
eshell.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
f90.el f90.el: add some support for continued strings without leading '&' 2015-02-23 23:13:49 -08:00
file-notify-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
files.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
finalizer-tests.el Rename gc-precise-p to gc-precise 2015-03-03 10:08:08 -08:00
flymake-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
fns-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
font-parse-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
generator-tests.el Use `macroexp-parse-body' 2015-03-03 13:19:25 -08:00
gnus-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
help-fns.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
icalendar-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
imenu-test.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
info-xref.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
inotify-test.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
let-alist.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
lexbind-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
libxml-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
Makefile.in * lisp/emacs-lisp/eieio-core.el: Add `subclass' specializer for cl-generic. 2015-01-18 14:08:13 -05:00
man-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
mule-util.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
newsticker-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
occur-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
package-test.el * package-test.el (package-test-signed): More informative failure messages 2015-02-10 15:01:13 -05:00
pcase-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
print-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
process-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
python-tests.el Merge from origin/emacs-24 2015-02-25 22:53:56 -08:00
reftex-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
regexp-tests.el * test/automated/regexp-tests.el: Require regexp-opt 2015-01-23 19:52:07 -05:00
ruby-mode-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
sasl-scram-rfc-tests.el # Add 2015 to copyright years 2015-02-13 18:45:40 -08:00
seq-tests.el Add seq-into as a public function 2015-03-09 12:50:24 +01:00
subr-x-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
subword-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
syntax-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
thingatpt.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tildify-tests.el tildify: add `tildify-double-space-undos' 2015-01-20 13:55:02 +01:00
timer-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tramp-tests.el Don't test "\t" in file names on Cygwin. 2015-03-16 16:19:46 -04:00
undo-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
url-future-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
url-util-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
vc-bzr.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
vc-tests.el Extend vc-tests.el 2015-03-01 18:05:19 +01:00
xml-parse-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
zlib-tests.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00