[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector b4ff75dda1 61/93: Paginate hash-table inspect
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector b4ff75dda1 61/93: Paginate hash-table inspection |
Date: |
Tue, 24 May 2022 18:57:59 -0400 (EDT) |
branch: externals/inspector
commit b4ff75dda18de34c02d9edb95ad511443041f238
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
Paginate hash-table inspection
---
inspector.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/inspector.el b/inspector.el
index 6c7200d025..f5be9afb62 100644
--- a/inspector.el
+++ b/inspector.el
@@ -458,12 +458,20 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(progn
(inspector--insert-label "Values")
(newline)
- (maphash (lambda (key value)
- (inspector--insert-inspect-button key)
- (insert ": ")
- (inspector--insert-inspect-button value)
- (newline))
- hash-table))))
+ (let ((i 0)
+ (keys (hash-table-keys hash-table)))
+ (inspector--do-with-slicer-and-more-button
+ (lambda ()
+ (when (< i (length keys))
+ (cl-subseq keys i (min (cl-incf i inspector-slice-size)
+ (length keys)))))
+ (lambda (slice cont)
+ (ignore cont)
+ (dolist (key slice)
+ (inspector--insert-inspect-button key)
+ (insert ": ")
+ (inspector--insert-inspect-button (gethash key hash-table))
+ (newline))))))))
;;--- Buffers ------------------------------
- [elpa] externals/inspector 8a3d1b8627 88/93: Display some more buffer properties, (continued)
- [elpa] externals/inspector 8a3d1b8627 88/93: Display some more buffer properties, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 20260fc077 15/93: Clean inspector history on exit, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 3e2e8d3476 31/93: Faces, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b3833deecb 33/93: Better symbol inspector, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 0fa89e3177 41/93: Make customization group for faces, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 143668d367 01/93: First commit, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 8c083d0ae2 45/93: Update README.md, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 182c1de703 46/93: Inspect record types, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector c8b15291cc 57/93: Tweeks for inspector buffer display, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 584ea2b3e3 62/93: README: demo video, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b4ff75dda1 61/93: Paginate hash-table inspection,
ELPA Syncer <=
- [elpa] externals/inspector 0304d42ed1 63/93: Bind 'n' and 'p' to forward and backward button for faster navigation, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 0f444b2b72 64/93: README: navigate buttons with 'n' and 'p', ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 84b0f72a5c 74/93: inspector-tests, ELPA Syncer, 2022/05/24