[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector e504625e80 26/93: Inspect structures
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector e504625e80 26/93: Inspect structures |
Date: |
Tue, 24 May 2022 18:57:56 -0400 (EDT) |
branch: externals/inspector
commit e504625e80ca438f0df86467deaef2a975e377b1
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
Inspect structures
---
inspector.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/inspector.el b/inspector.el
index 14b0e0430b..48d6fe5020 100644
--- a/inspector.el
+++ b/inspector.el
@@ -139,6 +139,15 @@
(inspector--insert-inspect-button
(slot-value object (cl--slot-descriptor-name slot)))
(newline)))
+ ((cl-struct-p object)
+ (inspector--insert-title (format "%s struct" (type-of object)))
+ (insert "Slot values:")
+ (newline)
+ (dolist (slot (cdr (cl-struct-slot-info (type-of object))))
+ (insert (format "%s: " (car slot)))
+ (inspector--insert-inspect-button
+ (cl-struct-slot-value (type-of object) (car slot) object))
+ (newline)))
(t (error "Cannot inspect object: %s" object))))
(defun inspector--insert-inspect-button (object &optional label)
- [elpa] branch externals/inspector created (now 6fadd6df9f), ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 4a8d46f01e 02/93: Class instance inspector, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 16f833d3bb 05/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 8791b90885 07/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b609289074 20/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector f8d2e8edef 23/93: Update README.md, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector e504625e80 26/93: Inspect structures,
ELPA Syncer <=
- [elpa] externals/inspector 440bd7a530 17/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector d7f85a9c25 16/93: Inspect array, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector cfa57e310b 18/93: Better presentation functions, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 4d409a6715 32/93: Evaluate in menu, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector edbd5c1318 37/93: Association list inspector and custom var to toggle specialized, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 5d014ff023 39/93: Windows, frames, overlays, and buffers inspectors., ELPA Syncer, 2022/05/24
- [elpa] externals/inspector e834de3e6d 03/93: Inspect classes, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b1035194b0 04/93: Integer printing, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 55a4df0b45 12/93: debugger-inspect-locals, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 1f659d04a6 34/93: Functions inspector, ELPA Syncer, 2022/05/24