1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-21 18:23:59 +00:00

* emacs-lisp/eieio.el (class-parent): Don't use defalias with macros.

This commit is contained in:
Glenn Morris 2013-09-19 00:14:53 -07:00
parent 72fd28777d
commit f754477379
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2013-09-19 Glenn Morris <rgm@gnu.org>
* emacs-lisp/eieio.el (class-parent): Don't use defalias with macros.
* eshell/em-unix.el (eshell-remove-entries):
Rename argument to avoid name-clash with global `top-level'.

View File

@ -322,7 +322,10 @@ The CLOS function `class-direct-subclasses' is aliased to this function."
(defmacro eieio-class-parent (class)
"Return first parent class to CLASS. (overload of variable)."
`(car (eieio-class-parents ,class)))
(define-obsolete-function-alias 'class-parent #'eieio-class-parent "24.4")
(defmacro class-parent (class)
(declare (obsolete eieio-class-parent "24.4"))
'(eieio-class-parent class))
(defun same-class-p (obj class) "Return t if OBJ is of class-type CLASS."
(eieio--check-type class-p class)