branch: elpa/doc-show-inline commit 261554a788e9cc6c0ba538a732667e514fab70c6 Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
Exclude commands from evil-mode repeat --- changelog.rst | 3 +++ doc-show-inline.el | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/changelog.rst b/changelog.rst index d13f06cd97..75d0f1fa46 100644 --- a/changelog.rst +++ b/changelog.rst @@ -3,6 +3,9 @@ Change Log ########## +- 2023-03-19 + - Exclude commands from evil-mode repeat. + - 2022-11-20 - Fix use with ``eglot``. diff --git a/doc-show-inline.el b/doc-show-inline.el index 5c10f3cc67..e1d8adad6f 100644 --- a/doc-show-inline.el +++ b/doc-show-inline.el @@ -162,6 +162,9 @@ When unset, the :filter property from `doc-show-inline-mode-defaults' is used.") (defvar-local doc-show-inline--idle-timer nil) +;; List of interactive commands. +(defconst doc-show-inline--commands (list 'doc-show-inline-buffer 'doc-show-inline-mode)) + ;; --------------------------------------------------------------------------- ;; Idle Overlay (Package Development / Debugging Only) @@ -973,6 +976,17 @@ When IS-INTERACTIVE is true, use `doc-show-inline-idle-delay-init'." (t (doc-show-inline--mode-disable)))) +;; Evil Mode (setup if in use). +;; +;; Don't let these commands repeat as they are for the UI, not editor. +;; +;; Notes: +;; - Package lint complains about using this command, +;; however it's needed to avoid issues with `evil-mode'. +(declare-function evil-declare-not-repeat "ext:evil-common") +(with-eval-after-load 'evil + (mapc #'evil-declare-not-repeat doc-show-inline--commands)) + (provide 'doc-show-inline) ;; Local Variables: ;; fill-column: 99