Skip to content

Commit

Permalink
fix for nil case
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jul 27, 2023
1 parent e399856 commit 9516805
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modes/lisp-mode/repl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#'open-inspector-by-repl))

(defun context-menu-inspect-printed-object ()
(let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(alexandria:when-let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(when id
(lem/context-menu:make-item
:label "Inspect"
Expand All @@ -44,8 +44,8 @@
(inspect-printed-object id))))))

(defun context-menu-copy-down-printed-object ()
(let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(alexandria:when-let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(when id
(lem/context-menu:make-item
:label "Copy Down"
Expand All @@ -54,8 +54,8 @@
(copy-down-to-repl 'micros:get-printed-object-by-id id))))))

(defun context-menu-describe-object ()
(let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(alexandria:when-let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(when id
(lem/context-menu:make-item
:label "Describe"
Expand All @@ -66,8 +66,8 @@
id)))))))

(defun context-menu-pretty-print ()
(let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(alexandria:when-let* ((point (get-point-on-context-menu-open))
(id (object-id-at point)))
(when id
(lem/context-menu:make-item
:label "Pretty Print"
Expand Down

0 comments on commit 9516805

Please sign in to comment.