branch: externals/diff-hl
commit f86322b428b9f9422549f023ec975e0311ea8606
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Move the smartrep-define-key declaration, as suggested by @monnier
---
diff-hl.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/diff-hl.el b/diff-hl.el
index 338ee98e7c..706d1a9e27 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -69,8 +69,7 @@
(require 'vc-git)
(require 'vc-hg)
(require 'face-remap)
- (require 'project)
- (declare-function smartrep-define-key 'smartrep))
+ (require 'project))
(defmacro static-if (condition then-form &rest else-forms) ; since Emacs 30.1
"A conditional compilation macro.
@@ -1336,6 +1335,7 @@ The value of this variable is a mode line template as in
diff-hl-show-hunk-next))
(when (require 'smartrep nil t)
+ (declare-function smartrep-define-key 'smartrep)
(let (smart-keys)
(cl-labels ((scan (map)
(map-keymap