Skip to content

Commit a7ffa73

Browse files
Hi-Angelaxelf4
authored andcommitted
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.
1 parent 5995f6f commit a7ffa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evil-types.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If the end position is at the beginning of a line, then:
9393
Handling for `evil-want-visual-char-semi-exclusive' is deprecated,
9494
and will be removed in a future version."
9595
:expand (lambda (beg end)
96-
(if (and evil-want-visual-char-semi-exclusive
96+
(if (and (with-no-warnings evil-want-visual-char-semi-exclusive)
9797
(evil-visual-state-p)
9898
(< beg end)
9999
(save-excursion

0 commit comments

Comments
 (0)