Fix compilation warning by having ede-target inherit from eieio-named

* lisp/cedet/ede/base.el (ede-target): Inherit from eieio-named so
that if you're customizing objects via eieio-object-value-get, you
can set the name.

* lisp/emacs-lisp/eieio-custom.el (eieio-object-value-get): Don't
use obsolete function `eieio-object-set-name-string'.
This commit is contained in:
Lars Ingebrigtsen 2019-06-17 13:05:34 +02:00
parent 7bf6592034
commit 0161a4ae09
2 changed files with 3 additions and 2 deletions

View file

@ -317,7 +317,8 @@ Optional argument IGNORE is an extraneous parameter."
(car (widget-apply (car chil) :value-inline))))
(setq chil (cdr chil))))))
;; Set any name updates on it.
(if name (eieio-object-set-name-string obj name))
(when name
(setf (slot-value obj 'object-name) name))
;; This is the same object we had before.
obj))