diff options
| author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2024-02-20 21:18:28 +0300 |
|---|---|---|
| committer | Axel Forsman <axel@axelf.se> | 2024-02-22 07:52:10 +0100 |
| commit | a7ffa73bbdc523c0e473d79c0ded7c6457bcb65c (patch) | |
| tree | 0311ee7aec30fe65481c8500eb45b17f35541f22 | |
| parent | 5995f6f21f662484440ed67a28ce59e365feb9ad (diff) | |
evil-types.el: fix deprecation warning for Evil's internal variable
This deprecation warning is targeted towards users' configuration.
Having it warn about the variable being processed inside Evil is
pointless, because of course it is processed in the mode, the mode
have to handle it.
So suppress it by wrapping into `(with-no-warnings)`.
Fixes:
evil-types.el:96:22: Error: ‘evil-want-visual-char-semi-exclusive’ is an obsolete variable (as of 1.15.0); Semi-exclusivity prevents selecting text + 1st char of next line,
without having to introduce new niche functionality.
| -rw-r--r-- | evil-types.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-types.el b/evil-types.el index 33f73c4..395dc2f 100644 --- a/evil-types.el +++ b/evil-types.el @@ -93,7 +93,7 @@ If the end position is at the beginning of a line, then: Handling for `evil-want-visual-char-semi-exclusive' is deprecated, and will be removed in a future version." :expand (lambda (beg end) - (if (and evil-want-visual-char-semi-exclusive + (if (and (with-no-warnings evil-want-visual-char-semi-exclusive) (evil-visual-state-p) (< beg end) (save-excursion |
