Skip to content

Commit c777d48

Browse files
committed
[#1069] Handle missing doc better
1 parent f24cf86 commit c777d48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cider-doc.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ Tables are marked to be ignored by line wrap."
297297
(special (nrepl-dict-get info "special-form"))
298298
(forms (nrepl-dict-get info "forms-str"))
299299
(args (nrepl-dict-get info "arglists-str"))
300-
(doc (nrepl-dict-get info "doc"))
300+
(doc (or (nrepl-dict-get info "doc")
301+
"Not documented."))
301302
(url (nrepl-dict-get info "url"))
302303
(class (nrepl-dict-get info "class"))
303304
(member (nrepl-dict-get info "member"))
@@ -329,10 +330,9 @@ Tables are marked to be ignored by line wrap."
329330
(emit (concat "Added in " added) 'font-lock-comment-face))
330331
(when depr
331332
(emit (concat "Deprecated in " depr) 'font-lock-comment-face))
332-
(when doc
333-
(if class
334-
(cider-docview-render-java-doc (current-buffer) doc)
335-
(emit (concat " " doc))))
333+
(if class
334+
(cider-docview-render-java-doc (current-buffer) doc)
335+
(emit (concat " " doc)))
336336
(when url
337337
(newline)
338338
(insert " Please see ")

0 commit comments

Comments
 (0)