[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector fdd7420b8d 43/93: More hash-table details
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector fdd7420b8d 43/93: More hash-table details |
Date: |
Tue, 24 May 2022 18:57:58 -0400 (EDT) |
branch: externals/inspector
commit fdd7420b8d203b819ede2b46a084af22390982ab
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
More hash-table details
---
inspector.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/inspector.el b/inspector.el
index 7ff7713f88..db0cf09257 100644
--- a/inspector.el
+++ b/inspector.el
@@ -372,15 +372,21 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(newline)
(inspector--insert-label "Size")
(insert (inspector--princ-to-string (hash-table-size hash-table)))
- (newline 2)
- (inspector--insert-label "Values")
(newline)
- (maphash (lambda (key value)
- (inspector--insert-inspect-button key)
- (insert ": ")
- (inspector--insert-inspect-button value)
- (newline))
- hash-table))
+ (inspector--insert-label "Count")
+ (insert (inspector--princ-to-string (hash-table-count hash-table)))
+ (newline 2)
+ (if (zerop (hash-table-count hash-table))
+ (insert "The hash table is empty.")
+ (progn
+ (inspector--insert-label "Values")
+ (newline)
+ (maphash (lambda (key value)
+ (inspector--insert-inspect-button key)
+ (insert ": ")
+ (inspector--insert-inspect-button value)
+ (newline))
+ hash-table))))
;;--- Buffers ------------------------------
- [elpa] externals/inspector 37b54f480f 24/93: Screenshot, (continued)
- [elpa] externals/inspector 37b54f480f 24/93: Screenshot, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 3ccaee246c 13/93: Better debugger-inspect-locals, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 77574c358f 25/93: el-get recipe, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector cd53047a49 27/93: Remove some of the warnings, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector f005f979f2 28/93: hash-table inspector, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 5d9fbcc886 14/93: Use letter 'i' to inspect debugger stack frames, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 75ac7da10e 29/93: Menu and tool bar, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 1e11bb1336 30/93: Evaluate expression with currently inspected object as context, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 701f65aacb 40/93: Inspect buffer contents, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 37dc9503c8 42/93: .., ELPA Syncer, 2022/05/24
- [elpa] externals/inspector fdd7420b8d 43/93: More hash-table details,
ELPA Syncer <=
- [elpa] externals/inspector 2e23aeae84 48/93: Inspect finalizer type, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector cbb1d1cd2b 49/93: Some basic tests for elisp data types, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 51257fb9b5 55/93: tests: overlays, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 060da36d6f 58/93: Better quit behaviour, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 6c071c67b3 60/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector e7f2f13ff4 75/93: Start writing ert tests, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b1d60310da 73/93: Patch by Stefan Monnier, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 739890b5d6 70/93: Autoloads?, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 477e363962 82/93: tests: no more side-effects, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b10f60c20d 89/93: Fontification for each type of object, ELPA Syncer, 2022/05/24