Skip to content

Commit 1e969d8

Browse files
committed
Fixes
1 parent c287b6a commit 1e969d8

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

quicklisp-apropos.el

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,27 @@
7272
(system (cdr (assoc-string "system" result))))
7373
(insert type)
7474
(insert " ")
75-
(insert-button name
76-
'follow-link t
77-
'help-echo "Load system and edit definition."
78-
'action (lambda (_)
79-
(when (yes-or-no-p (format "Load %s system?" system))
80-
(slime-eval `(ql:quickload ,system))
81-
(slime-edit-definition name))))
82-
(insert " in system ")
83-
(insert-button system
84-
'follow-link t
85-
'help-echo "Load system"
86-
'action (lambda (_)
87-
(when (yes-or-no-p (format "Load %s system?" system))
88-
(slime-eval `(ql:quickload ,system)))))
89-
(newline 2)
90-
(insert doc)
75+
(if system
76+
(insert-button name
77+
'follow-link t
78+
'help-echo "Load system and edit definition."
79+
'action (lambda (_)
80+
(when (yes-or-no-p (format "Load %s system?" system))
81+
(slime-eval `(ql:quickload ,system))
82+
(slime-edit-definition name))))
83+
;; else
84+
(insert name))
85+
(when system
86+
(insert " in system ")
87+
(insert-button system
88+
'follow-link t
89+
'help-echo "Load system"
90+
'action (lambda (_)
91+
(when (yes-or-no-p (format "Load %s system?" system))
92+
(slime-eval `(ql:quickload ,system))))))
93+
(when doc
94+
(newline 2)
95+
(insert doc))
9196
(newline)
9297
(insert "--------------------------------------------------------------------------------")
9398
(newline)))

0 commit comments

Comments
 (0)