From a7ffa73bbdc523c0e473d79c0ded7c6457bcb65c Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Tue, 20 Feb 2024 21:18:28 +0300 Subject: [PATCH] evil-types.el: fix deprecation warning for Evil's internal variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- evil-types.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evil-types.el b/evil-types.el index 33f73c41..395dc2fa 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