[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68929: [PATCH] Copy which-key from GNU ELPA into core
From: |
Jeremy Bryant |
Subject: |
bug#68929: [PATCH] Copy which-key from GNU ELPA into core |
Date: |
Fri, 23 Feb 2024 23:07:24 +0000 |
Philip,
Going through your suggestions, progressing upstream.
Philip Kaludercic <philipk@posteo.net> writes:
>> +(defvar which-key--ignore-keys-regexp
>> + (eval-when-compile
>> + (regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
>> + "select-window" "switch-frame" "-state"
>> + "which-key"))))
>
> regexp-opt is marked as pure, you don't need the eval-when-compile here.
>
Please clarify your request?
It would seem The manual has a similar example to the original code.
(elisp) Eval During Compile
If you have a constant that needs some calculation to produce,
‘eval-when-compile’ can do that at compile-time. For example,
(defvar my-regexp
(eval-when-compile (regexp-opt '("aaa" "aba" "abb"))))
What am I missing?
bug#68929: [PATCH] Copy which-key from GNU ELPA into core, Philip Kaludercic, 2024/02/07