Skip to content

Commit

Permalink
Remove unnecessary eval-when-compile
Browse files Browse the repository at this point in the history
* which-key.el (which-key--ignore-non-evil-keys-regexp):
Remove unnecessary eval-when-compile in regexp-opt.
  • Loading branch information
jeremy-bryant authored and justbur committed Mar 7, 2024
1 parent bb9fc43 commit daae57e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions which-key.el
Expand Up @@ -707,9 +707,8 @@ Used when `which-key-popup-type' is frame.")
(defvar which-key--evil-keys-regexp (eval-when-compile
(regexp-opt '("-state"))))
(defvar which-key--ignore-non-evil-keys-regexp
(eval-when-compile
(regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
"select-window" "switch-frame" "which-key"))))
(regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
"select-window" "switch-frame" "which-key")))
(defvar which-key--ignore-keys-regexp
(regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
"select-window" "switch-frame" "-state"
Expand Down

0 comments on commit daae57e

Please sign in to comment.