[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: eieio

From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: eieio
Date: Mon, 17 Jun 2019 12:53:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

In eieio-object-value-get:
emacs-lisp/eieio-custom.el:320:15:Warning: `eieio-object-set-name-string' is
    an obsolete function (as of 25.1); inherit from `eieio-named' and use
    (setf (slot-value OBJ 'object-name) NAME) instead

It's this code:

(defun eieio-object-value-get (widget)
  "Get the value of WIDGET."
  (let* ((obj (widget-get widget :value))


    ;; Set any name updates on it.
    (if name (eieio-object-set-name-string obj name))

Virtually all of the cedet objects can be customised, so this would
require making them all inherit from eieio-named...  But I wonder
whether this code makes that much sense?  Why would anybody, in a
Customize buffer, alter the name of the objects?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]