commit b5f6b408a9134f3db14c0516c5ba48d68178a175
parent 496dbdea80e0bed5cf5f9530581b28fa56b3fe22
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date: Tue, 2 May 2023 14:53:09 +0200
Fix the byte-compiler warnings, add a check to pre-commit
Diffstat:
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
@@ -21,3 +21,10 @@ repos:
args: [--main-file, kmacro-x.el]
- id: no-elc
- id: no-tabs
+
+- repo: https://github.com/vifon/elisp-lint
+ rev: 115841bbbc7a1b0cbe34443e72985f12878f04e6
+ hooks:
+ - id: elisp-lint
+ args: [--main-file, kmacro-x.el]
+ - id: elisp-lint-cleanup
diff --git a/kmacro-x-mc-extra.el b/kmacro-x-mc-extra.el
@@ -29,6 +29,8 @@
(require 'kmacro-x-mc)
+(require 'rect)
+
(defgroup kmacro-x-mc-extra nil
"Additional functionality for the multiple cursors."
:group 'kmacro-x-mc)
diff --git a/kmacro-x-mc.el b/kmacro-x-mc.el
@@ -35,6 +35,8 @@
"Multiple cursors implemented with keyboard macros."
:group 'kmacro-x)
+(defvar kmacro-x-mc-mode)
+
(defface kmacro-x-mc-cursor-face
'((t (:inverse-video t)))
"The face used for the fake cursors created in `kmacro-x-mc-mode'.")
@@ -224,7 +226,8 @@ Otherwise searches forward."
;; Either append or prepend the new cursor.
(if backwards
(push ov kmacro-x-mc-cursors)
- (setq kmacro-x-mc-cursors (append kmacro-x-mc-cursors (list ov))))))
+ (setq kmacro-x-mc-cursors
+ (append kmacro-x-mc-cursors (list ov))))))
(message "No further matches"))))
;;;###autoload