[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles ac3b272cdb 031/225: Reduce byte compiler erro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles ac3b272cdb 031/225: Reduce byte compiler errors |
Date: |
Wed, 12 Jan 2022 08:58:40 -0500 (EST) |
branch: elpa/evil-goggles
commit ac3b272cdbb0588e3f92df0203edcb5f79c88161
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Reduce byte compiler errors
---
evil-goggles.el | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 0a4c57d667..a64af0f0c0 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -35,19 +35,27 @@
;;
;;; Code:
+(require 'evil)
+
(defcustom evil-goggles-show-for 0.200
"Time if floating seconds that the goggles overlay should last."
- :type 'number)
+ :type 'number
+ :group 'evil-goggles)
-(defcustom evil-goggles-default-face
- 'region
- "Deafult face for the overlay.")
+(defcustom evil-goggles-default-face 'region
+ "Deafult face for the overlay."
+ :type 'sexp
+ :group 'evil-goggles)
(defcustom evil-goggles-faces-alist nil
- "Association list of faces to use for different commands.")
+ "Association list of faces to use for different commands."
+ :type 'boolean
+ :group 'evil-goggles)
(defcustom evil-goggles-blacklist nil
- "List of functions which should not display the goggles overlay.")
+ "List of functions which should not display the goggles overlay."
+ :type 'boolean
+ :group 'evil-goggles)
(defun evil-goggles--face (command)
"Return the configured face for COMMAND, or the default face."
@@ -71,6 +79,14 @@
(overlay-put ov (pop properties) (pop properties)))
ov))
+(defvar evil-goggles--on nil
+ "When non-nil, the goggles overlay must not be displayed.
+
+Used to prevent displaying multiple overlays for the same command. For
+example, when the user executes `evil-delete', the overlay should be
+displayed, but when `evil-delete' calls internally `evil-yank', the
+overlay must not be displayed.")
+
(defun evil-goggles--show-p (beg end)
"Return t if the overlay should be displayed in region BEG to END."
(and (not evil-goggles--on)
@@ -85,14 +101,6 @@
;; don't show overlay when the region has nothing but whitespace
(not (null (string-match-p "[^ \t\n]" (buffer-substring-no-properties
beg end))))))
-(defvar evil-goggles--on nil
- "When non-nil, the goggles overlay must not be displayed.
-
-Used to prevent displaying multiple overlays for the same command. For
-example, when the user executes `evil-delete', the overlay should be
-displayed, but when `evil-delete' calls internally `evil-yank', the
-overlay must not be displayed.")
-
(defmacro evil-goggles--with-goggles (beg end adviced-fun &rest body)
"Show goggles overlay from BEG to END if the conditions are met.
- [nongnu] elpa/evil-goggles 513ba2eb3e 094/225: Polish u/redo implementation to handle u/redo after "o"/"O", (continued)
- [nongnu] elpa/evil-goggles 513ba2eb3e 094/225: Polish u/redo implementation to handle u/redo after "o"/"O", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles cbcad38344 021/225: Cleanup code, add some doc strings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3dc8417950 040/225: Add evil-fill-and-move "=", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bc4a117f6c 059/225: Rename evil-goggles-face to evil-goggles-default-face, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 02a8072435 011/225: Use evil faces for delete and yank, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles a4958cf377 012/225: Add evil-commentary and evil-replace-with-register, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles dc4ce17b65 013/225: Add license header, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 8d6fc41234 023/225: Doc strings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 743fd1d96d 027/225: Indent tweak, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 805e20dcde 022/225: Don't show overlay when :global or :vglobal is executed, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ac3b272cdb 031/225: Reduce byte compiler errors,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles dd9a888516 032/225: Test infrastructure, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 412ed4ce79 035/225: Initial README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fd417360a2 038/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6e4d0fab3c 047/225: Add missing :group to custom variable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d759e22ba3 062/225: Re-add support for yank, join, commentary, surround, replace with register, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 336f6038a3 066/225: Don't inherit diff-mode's faces by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 214fb33c8f 063/225: Re-add :g/:v. Fix disabling the mode, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6645070a0c 068/225: Add helper `evil-goggles-use-diff-faces`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 7f09345024 069/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c405e0e58f 074/225: Update README, ELPA Syncer, 2022/01/12