[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector cd53047a49 27/93: Remove some of the warnings
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector cd53047a49 27/93: Remove some of the warnings |
Date: |
Tue, 24 May 2022 18:57:56 -0400 (EDT) |
branch: externals/inspector
commit cd53047a498c94e0fea9894b35405dacbb5478ba
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
Remove some of the warnings
---
inspector.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/inspector.el b/inspector.el
index 48d6fe5020..c28899478d 100644
--- a/inspector.el
+++ b/inspector.el
@@ -38,15 +38,15 @@
(defun plistp (list)
"Return T if LIST is a property list."
(let ((expected t))
- (and (evenp (length list))
- (every (lambda (x)
+ (and (cl-evenp (length list))
+ (cl-every (lambda (x)
(setq expected (if (eql expected t) 'symbol t))
- (typep x expected))
+ (cl-typep x expected))
list))))
(defun alistp (list)
"Return T if LIST is an association list."
- (every (lambda (x)
+ (cl-every (lambda (x)
(and (consp x)
(symbolp (car x))))
list))
@@ -112,10 +112,12 @@
(insert " ")))
(cl-defmethod inspect-object ((object (eql t)))
+ (ignore object)
(inspector--insert-title "Boolean")
(insert "Value: t"))
(cl-defmethod inspect-object ((object (eql nil)))
+ (ignore object)
(inspector--insert-title "nil")
(insert "Value: nil"))
@@ -157,6 +159,7 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(truncate-string-to-width
(prin1-to-string object) 80 nil nil t))
'action (lambda (btn)
+ (ignore btn)
(inspector-inspect object t))
'follow-link t))
@@ -164,7 +167,7 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(cond
((and (inspector--proper-list-p cons) (plistp cons))
(inspector--insert-title "Property list")
- (let ((plist (copy-list cons)))
+ (let ((plist (cl-copy-list cons)))
(while plist
(let ((key (pop plist)))
(inspector--insert-inspect-button key))
@@ -179,7 +182,7 @@ If LABEL has a value, then it is used as button label.
Otherwise, button label
(insert (format "%d: " i))
(inspector--insert-inspect-button elem)
(newline)
- (incf i))))
+ (cl-incf i))))
(t ;; It is a cons cell
(inspector--insert-title "Cons cell")
(insert "CAR: ")
- [elpa] externals/inspector b782644bbb 67/93: README: evaluate with inspected object, (continued)
- [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
- [elpa] externals/inspector e60478dc93 08/93: Linter, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 53e8cc81c0 09/93: Minor mode and navigation, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 4f9961f7bb 11/93: Truncate printed objects, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 6f47c95ea2 21/93: README, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector c0269276bc 22/93: Update README.md, ELPA Syncer, 2022/05/24
- [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 <=
- [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, 2022/05/24
- [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