Make bytecomp.el understand that defmethod defines functions.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 7 May 2011 04:03:49 +0000 (01:03 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 7 May 2011 04:03:49 +0000 (01:03 -0300)
commitd1dc2cc2ce985d92e1d1309344eb49f7e3b29312
treeed54cb83c1e6d312810470ce77acb7789720f36c
parent4d3fcc8e6025592929f95ac1e36b9313ffa6d4f0
Make bytecomp.el understand that defmethod defines functions.
* lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form):
New functions.
(defgeneric, eieio--defmethod): Use them.
(eieio-defgeneric): Remove.
(defmethod): Call defgeneric in a way visible to the byte-compiler.

Fixes: debbugs:8631
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/eieio.el