Skip to content

Commit

Permalink
Make eldoc-box-clear-with-C-g work for help-at-point too
Browse files Browse the repository at this point in the history
* eldoc-box.el (eldoc-box-help-at-point): Add advice if
eldoc-box-clear-with-C-g is non-nil.
  • Loading branch information
casouri committed Sep 21, 2023
1 parent 2663fd8 commit 270a9a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eldoc-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ If point != last point, hide the childframe.")
(with-current-buffer eldoc--doc-buffer
(buffer-string))))
(setq eldoc-box--help-at-point-last-point (point))
(run-with-timer 0.1 nil #'eldoc-box--help-at-point-cleanup)))
(run-with-timer 0.1 nil #'eldoc-box--help-at-point-cleanup)
(when eldoc-box-clear-with-C-g
(advice-add #'keyboard-quit :before #'eldoc-box-quit-frame))))

;;;; Backstage
;;;;; Variable
Expand Down

0 comments on commit 270a9a8

Please sign in to comment.