[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: Thu, 13 Jun 2019 15:40:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

In toplevel form:
emacs-lisp/eieio.el:851:13:Warning: `object-print' is an obsolete function (as
    of 26.1); use `cl-print-object' instead.

It's this code.

(cl-defmethod cl-print-object ((object eieio-default-superclass) stream)
  "Default printer for EIEIO objects."
  ;; Fallback to the old `object-print'.
  (princ (object-print object) stream))


(cl-defgeneric object-print (this &rest _strings)
  "Pretty printer for object THIS.


  (declare (obsolete cl-print-object "26.1"))
  (format "%S" this))

Can't cl-print-object for eieio-default-superclass just call format
directly?  Am I missing something subtle here?

(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]