summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/eieio.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-17 12:12:48 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-17 12:12:48 +0200
commita7417ddf5e082543b23feaa86ba7be0b990851df (patch)
treec00cbd6d48a918eb9dcfd370181e8c0c09a72696 /lisp/emacs-lisp/eieio.el
parent3ccc0d623a44af8238ffa5d97e6976395e47fc9a (diff)
downloademacs-a7417ddf5e082543b23feaa86ba7be0b990851df.tar.gz
emacs-a7417ddf5e082543b23feaa86ba7be0b990851df.tar.bz2
emacs-a7417ddf5e082543b23feaa86ba7be0b990851df.zip
Suppress warning about object-print in eieio.el
* lisp/emacs-lisp/eieio.el (obsolete): Suppress warning about object-print being obsolete, because there are no in-tree definitions any more.
Diffstat (limited to 'lisp/emacs-lisp/eieio.el')
-rw-r--r--lisp/emacs-lisp/eieio.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el
index 4f73c606df9..504133c1e77 100644
--- a/lisp/emacs-lisp/eieio.el
+++ b/lisp/emacs-lisp/eieio.el
@@ -851,12 +851,12 @@ to prepend a space."
(eieio-object-name this (apply #'concat strings)))
-(cl-defmethod cl-print-object ((object eieio-default-superclass) stream)
- "Default printer for EIEIO objects."
- ;; Fallback to the old `object-print'. There should be no
- ;; `object-print' methods in the Emacs tree, but there may be some
- ;; out-of-tree.
- (with-suppressed-warnings ((obsolete object-print))
+(with-suppressed-warnings ((obsolete object-print))
+ (cl-defmethod cl-print-object ((object eieio-default-superclass) stream)
+ "Default printer for EIEIO objects."
+ ;; Fallback to the old `object-print'. There should be no
+ ;; `object-print' methods in the Emacs tree, but there may be some
+ ;; out-of-tree.
(princ (object-print object) stream)))
(defvar eieio-print-depth 0