[patch] RET on no part in *inspector* buffer
João Távora
joaotavora at gmail.com
Wed Jul 3 12:10:42 UTC 2013
I wonder if anyone else is seeing the same error in the latest slime.
Press RET any non-interactive part of the *slime-inspector* buffer and get
a "wrong number of arguments" error instead of the intended "no object at
point".
Here's a possible patch:
diff --git a/slime.el b/slime.el
index 106b0fa..38df505 100644
--- a/slime.el
+++ b/slime.el
@@ -6645,16 +6645,16 @@ that value.
2. If point is on an action then call that action.
3. If point is on a range-button fetch and insert the range."
(interactive)
- (let ((opener (lexical-let ((point (slime-inspector-position)))
+ (let* ((opener (lexical-let ((point (slime-inspector-position)))
(lambda (parts)
(when parts
(slime-open-inspector parts point)))))
(new-opener (lambda (parts)
(when parts
- (slime-open-inspector parts)))))
- (destructuring-bind (property value)
- (slime-inspector-property-at-point)
- (case property
+ (slime-open-inspector parts))))
+ (property-at-point (slime-inspector-property-at-point))
+ (value (second property-at-point)))
+ (case (first property-at-point)
(slime-part-number
(slime-eval-async `(swank:inspect-nth-part ,value)
new-opener)
@@ -6664,7 +6664,7 @@ that value.
(slime-action-number
(slime-eval-async `(swank::inspector-call-nth-action ,value)
opener))
- (t (error "No object at point"))))))
+ (t (error "No object at point")))))
(defun slime-inspector-operate-on-click (event)
"Move to events' position and operate the part."
--
João Távora
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20130703/4ba35d13/attachment.html>
More information about the slime-devel
mailing list