Skip to content

Commit

Permalink
evil-types.el: fix deprecation warning for Evil's internal variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hi-Angel authored and axelf4 committed Feb 22, 2024
1 parent 5995f6f commit a7ffa73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-types.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7ffa73

Please sign in to comment.