diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-08-21 17:11:16 -0400 |
|---|---|---|
| committer | Axel Forsman <axel@axelf.se> | 2024-09-15 10:32:14 +0200 |
| commit | ea552efeeb809898932f55d1690da9cbe8ef5fa1 (patch) | |
| tree | 7bcc879c21a7123ad9710fce677f044092fc3ac5 /evil-common.el | |
| parent | c17f03cf876f754f6249e616947f2485036ca7f8 (diff) | |
Miscellaneous minor changes
* evil-common.el (evil-with-delay): Add comment for last change.
* evil-macros.el (font-lock-add-keywords): Use the font-lock faces
rather than their obsolete variables.
* evil-ex.el (evil-ex-define-argument-type): Make sure the function
arguments can be compiled.
(evil-ex-init-shell-argument-completion): Don't let-bind
`completion-at-point-functions` because hooks aren't just variables.
Diffstat (limited to 'evil-common.el')
| -rw-r--r-- | evil-common.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/evil-common.el b/evil-common.el index cd620d4..f7df526 100644 --- a/evil-common.el +++ b/evil-common.el @@ -59,6 +59,9 @@ If LOCAL is non-nil, the buffer-local value of HOOK is modified." (macroexp-let2* nil ((fun-name `(make-symbol ,(or name (format "evil-delay-in-%s" hook-sym)))) + ;; `apply-partially' is used in case this macro is expanded + ;; (via `evil-define-key') in a file which still does not + ;; activate `lexical-binding'. (fun `(apply-partially (lambda (name &rest _) (when ,(or condition t) |
