[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/record e8ec4b7 10/12: Fix cl-print-object to find
From: |
Lars Brinkhoff |
Subject: |
[Emacs-diffs] scratch/record e8ec4b7 10/12: Fix cl-print-object to find the object class the new way. |
Date: |
Sun, 19 Mar 2017 16:04:21 -0400 (EDT) |
branch: scratch/record
commit e8ec4b781218827ebd0e3064c1ad570273599d55
Author: Lars Brinkhoff <address@hidden>
Commit: Lars Brinkhoff <address@hidden>
Fix cl-print-object to find the object class the new way.
* lisp/emacs-lisp/cl-print.el (cl-print-object): Work with records.
---
lisp/emacs-lisp/cl-print.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/cl-print.el b/lisp/emacs-lisp/cl-print.el
index 8a8d4a4..65c86d2 100644
--- a/lisp/emacs-lisp/cl-print.el
+++ b/lisp/emacs-lisp/cl-print.el
@@ -137,7 +137,7 @@ call other entry points instead, such as `cl-prin1'."
(cl-defmethod cl-print-object ((object cl-structure-object) stream)
(princ "#s(" stream)
- (let* ((class (symbol-value (aref object 0)))
+ (let* ((class (cl-find-class (type-of object)))
(slots (cl--struct-class-slots class)))
(princ (cl--struct-class-name class) stream)
(dotimes (i (length slots))
- [Emacs-diffs] branch scratch/record created (now f23d5d7), Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 88e7f6f 07/12: Better doc string for `old-struct-compat'., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 445db82 05/12: Backward compatibility with pre-existing struct instances., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 1682496 06/12: Use sizeof to get length of cl-struct prefix., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 2068bed 01/12: Add record objects with user-defined types., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 27b4a7b 04/12: Test cases., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 869239a 02/12: Update cl-defstruct to use records., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record e8ec4b7 10/12: Fix cl-print-object to find the object class the new way.,
Lars Brinkhoff <=
- [Emacs-diffs] scratch/record e4a5289 09/12: Make it possible to compare records with `equal'., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record c235473 11/12: Make a note that CHECK_RECORD_TYPE is a work in progress., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record 46d5ea1 08/12: Better doc strings for `make-record', `record', and `copy-record'., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record f23d5d7 12/12: Signal errors from APIs., Lars Brinkhoff, 2017/03/19
- [Emacs-diffs] scratch/record b84c1ad 03/12: Make EIEIO use records., Lars Brinkhoff, 2017/03/19