[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector edbd5c1318 37/93: Association list inspector
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector edbd5c1318 37/93: Association list inspector and custom var to toggle specialized |
Date: |
Tue, 24 May 2022 18:57:57 -0400 (EDT) |
branch: externals/inspector
commit edbd5c13182a33c7d626e314cc7e227fbdc339bf
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
Association list inspector and custom var to toggle specialized
inspectors for lists
---
inspector.el | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/inspector.el b/inspector.el
index da31c6716e..f38d67e989 100644
--- a/inspector.el
+++ b/inspector.el
@@ -110,6 +110,11 @@
:type 'boolean
:group 'inspector)
+(defcustom inspector-use-specialized-inspectors-for-lists t
+ "Whether to use specialized inspectors for plists and alists."
+ :type 'boolean
+ :group 'inspector)
+
;;-------- Inspector code -------------------
(defvar-local inspector-history nil
@@ -238,7 +243,8 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(cl-defmethod inspect-object ((cons cons))
(cond
- ((and (inspector--proper-list-p cons) (inspector--plistp cons))
+ ((and inspector-use-specialized-inspectors-for-lists
+ (inspector--plistp cons))
(inspector--insert-title "Property list")
(let ((plist (cl-copy-list cons)))
(while plist
@@ -248,6 +254,16 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(let ((value (pop plist)))
(inspector--insert-inspect-button value))
(newline))))
+ ((and inspector-use-specialized-inspectors-for-lists
+ (inspector--alistp cons))
+ (inspector--insert-title "Association list")
+ (dolist (cons cons)
+ (insert "(")
+ (inspector--insert-inspect-button (car cons))
+ (insert " . ")
+ (inspector--insert-inspect-button (cdr cons))
+ (insert ")")
+ (newline)))
((inspector--proper-list-p cons)
(inspector--insert-title "Proper list")
(let ((i 0))
- [elpa] externals/inspector 4a8d46f01e 02/93: Class instance inspector, (continued)
- [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, 2022/05/24
- [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 <=
- [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
- [elpa] externals/inspector d1222593b5 36/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 505cd1b077 50/93: tests: classes and structs, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 3a1f745658 56/93: Switch to inspector buffer when opened, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b782644bbb 67/93: README: evaluate with inspected object, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector fa338ae5ed 90/93: Fontification adjustment, ELPA Syncer, 2022/05/24