aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2015-01-18 12:24:43 -0500
committerStefan Monnier2015-01-18 12:24:43 -0500
commit2a61bd0096db23123734db439051c859e42b9606 (patch)
tree95bf8383ee904cf723e57d1560f86fc551fb139b /etc
parent8ab85ee7ce9ad101583620e7ba3bee39cf3491ae (diff)
downloademacs-2a61bd0096db23123734db439051c859e42b9606.tar.gz
emacs-2a61bd0096db23123734db439051c859e42b9606.zip
EIEIO&cl-generic: Add obsolescence warnings and fix corner case
* lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Correctly handle introduction of a new dispatch argument. (cl--generic-cache-miss): Handle dispatch on an argument which was not considered as dispatchable for this method. (cl-defmethod): Warn when adding a method to an obsolete generic function. (cl--generic-lambda): Make sure it works if cl-lib is not yet loaded. * lisp/emacs-lisp/eieio-generic.el (eieio--defgeneric-init-form): Use autoloadp. * lisp/emacs-lisp/eieio.el (defclass): Add obsolescence warning for the `newname' argument. * test/automated/cl-generic-tests.el (cl-generic-test-10-weird): New test. Rename other tests to preserve ordering.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index be283bbc1c3..4551c9c6b79 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -203,6 +203,8 @@ the old behavior -- *shell* buffer displays in current window -- use
203 203
204** EIEIO 204** EIEIO
205*** The `:protection' slot option is not obeyed any more. 205*** The `:protection' slot option is not obeyed any more.
206*** The `newname' argument to constructors is optional&deprecated.
207If you need your objects to be named, do it by inheriting from `eieio-named'.
206*** The <class>-list-p and <class>-child-p functions are declared obsolete. 208*** The <class>-list-p and <class>-child-p functions are declared obsolete.
207*** The <class> variables are declared obsolete. 209*** The <class> variables are declared obsolete.
208*** The <initarg> variables are declared obsolete. 210*** The <initarg> variables are declared obsolete.