[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/doc-show-inline 261554a788: Exclude commands from evil-mod
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/doc-show-inline 261554a788: Exclude commands from evil-mode repeat |
Date: |
Sun, 19 Mar 2023 02:01:05 -0400 (EDT) |
branch: elpa/doc-show-inline
commit 261554a788e9cc6c0ba538a732667e514fab70c6
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/doc-show-inline 261554a788: Exclude commands from evil-mode repeat,
ELPA Syncer <=