;; No cleanup... yet.
nil)
-(cl-defgeneric object-print (this &rest _strings)
- "Pretty printer for object THIS.
-
-It is sometimes useful to put a summary of the object into the
-default #<notation> string when using EIEIO browsing tools.
-Implement this method to customize the summary."
- (declare (obsolete cl-print-object "26.1"))
- (format "%S" this))
-
(cl-defmethod object-print ((this eieio-default-superclass) &rest strings)
"Pretty printer for object THIS. Call function `object-name' with STRINGS.
The default method for printing object THIS is to use the
to prepend a space."
(eieio-object-name this (apply #'concat strings)))
+(cl-defgeneric object-print (this &rest _strings)
+ "Pretty printer for object THIS.
+
+It is sometimes useful to put a summary of the object into the
+default #<notation> string when using EIEIO browsing tools.
+Implement this method to customize the summary."
+ (declare (obsolete cl-print-object "26.1"))
+ (format "%S" this))
(with-suppressed-warnings ((obsolete object-print))
(cl-defmethod cl-print-object ((object eieio-default-superclass) stream)
;; out-of-tree.
(princ (object-print object) stream)))
+
(defvar eieio-print-depth 0
"The current indentation depth while printing.
Ignored if `eieio-print-indentation' is nil.")