[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3820b77 2/6: Suppress warning about object-print in
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 3820b77 2/6: Suppress warning about object-print in eieio.el |
Date: |
Mon, 17 Jun 2019 06:22:38 -0400 (EDT) |
branch: master
commit 3820b77c9e32fa157803cb004d308163c7b7e33e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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.
---
lisp/emacs-lisp/eieio.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el
index 5bb08ee..4f73c60 100644
--- a/lisp/emacs-lisp/eieio.el
+++ b/lisp/emacs-lisp/eieio.el
@@ -853,8 +853,11 @@ to prepend a space."
(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))
+ ;; 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))
+ (princ (object-print object) stream)))
(defvar eieio-print-depth 0
"The current indentation depth while printing.
- [Emacs-diffs] master updated (1dfd6b4 -> c90fc19), Lars Ingebrigtsen, 2019/06/17
- [Emacs-diffs] master 5a35377 1/6: Make with-suppressed-warnings work in cl-defmethod, Lars Ingebrigtsen, 2019/06/17
- [Emacs-diffs] master 3ccc0d6 3/6: Add check for enabled warning before issuing, Lars Ingebrigtsen, 2019/06/17
- [Emacs-diffs] master 3820b77 2/6: Suppress warning about object-print in eieio.el,
Lars Ingebrigtsen <=
- [Emacs-diffs] master 5e63ea1 5/6: Suppress warning about out-of-tree Java class in cedet, Lars Ingebrigtsen, 2019/06/17
- [Emacs-diffs] master a7417dd 4/6: Suppress warning about object-print in eieio.el, Lars Ingebrigtsen, 2019/06/17
- [Emacs-diffs] master c90fc19 6/6: Suppress compilation warning in srt-mode, Lars Ingebrigtsen, 2019/06/17