Skip to content

Commit

Permalink
don't show autodoc if there's more pending maybe-show-autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kchanqvq committed Nov 24, 2024
1 parent da51470 commit 4cee1e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modes/lisp.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,9 @@ sb-introspect:definition-source)'."

(defun maybe-show-autodoc (buffer)
(sleep *autodoc-delay*)
(unless (sb-concurrency:mailbox-empty-p
(gethash (bt:current-thread) *helper-mailboxes*))
(return-from maybe-show-autodoc))
(with-current-buffer buffer
(when-let* ((frame-root (current-frame-root))
(echo-area (echo-area frame-root)))
Expand Down

0 comments on commit 4cee1e2

Please sign in to comment.