Commit 3820b77c authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Suppress warning about object-print in eieio.el

* lisp/emacs-lisp/eieio.el (cl-print-object): Suppress the warning
about object-print being obsolete, since there are no in-tree
methods like that any more.
parent 5a35377f
...@@ -853,8 +853,11 @@ to prepend a space." ...@@ -853,8 +853,11 @@ to prepend a space."
(cl-defmethod cl-print-object ((object eieio-default-superclass) stream) (cl-defmethod cl-print-object ((object eieio-default-superclass) stream)
"Default printer for EIEIO objects." "Default printer for EIEIO objects."
;; Fallback to the old `object-print'. ;; Fallback to the old `object-print'. There should be no
(princ (object-print object) stream)) ;; `object-print' methods in the Emacs tree, but there may be some
;; out-of-tree.
(with-suppressed-warnings ((obsolete object-print))
(princ (object-print object) stream)))
(defvar eieio-print-depth 0 (defvar eieio-print-depth 0
"The current indentation depth while printing. "The current indentation depth while printing.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment