diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-07-01 16:17:16 -0400 |
|---|---|---|
| committer | Tom Dalziel <tom_dl@hotmail.com> | 2023-08-20 23:46:23 +0100 |
| commit | ca024ff6a7ba6de7cfd581878d1bdce02b6adef2 (patch) | |
| tree | cb8234274af101259f8593ae460d3bc9c2b0ca85 /evil-commands.el | |
| parent | 60ba716bf500ca21cdf5a8f83101449a1cbe3413 (diff) | |
Use lexical-binding everywhere
Most of the code already used lexical-binding, but there were
still a few of remnant of use of the old dynbound dialect.
* evil-tests.el: Activate `lexical-binding`.
(evil-test-change-state): Initialize the local vars immediately rather
than as a separate step. Remove unused vars `keymap` and `local-keymap`.
(evil-test-auxiliary-maps): Rename local var to `evil--map` and declare
it dynbound since we need `evil-define-key` to have access to it.
(evil-test-exclusive-type): Remove unused var `third`.
(evil-test-text-object): Mark unused var `type`.
(evil-with-both-search-modules): Move before first use.
(evil-test-properties): Rename local var to `evil--alist` and declare
it dynbound since we need `evil-put-property` to have access to it.
* evil.el: Activate `lexical-binding`.
* evil-types.el ("<addr>"):
* evil-common.el (evil--eval-expr):
* evil-commands.el (evil-ex-global): Tell `eval` to use the lexbind
dialect of ELisp.
Diffstat (limited to 'evil-commands.el')
| -rw-r--r-- | evil-commands.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el index 45f6b59..97598f3 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -4271,7 +4271,7 @@ Use `evil-flush-lines' if INVERT is nil, or `evil-keep-lines' if not." (let ((evil--ex-global-active-p t)) (dolist (marker markers) (goto-char marker) - (eval command-form)))) + (eval command-form t)))) ;; ensure that all markers are deleted afterwards, ;; even in the event of failure (dolist (marker markers) |
