* 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'.
;; The TARGET is an entity in a project that knows about files
;; and features of those files.
-(defclass ede-target (eieio-speedbar-directory-button)
+(defclass ede-target (eieio-speedbar-directory-button eieio-named)
((buttonface :initform speedbar-file-face) ;override for superclass
(name :initarg :name
:type string
(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))