diff options
| author | Evgeni Kolev <evgenysw@gmail.com> | 2018-02-10 18:14:14 +0200 |
|---|---|---|
| committer | Evgeni Kolev <evgenysw@gmail.com> | 2018-02-21 08:26:56 +0200 |
| commit | 21d3f06489d8fe30f54c22d6a56aea938f88099a (patch) | |
| tree | 8a10da1e692c252b9b1b5bbfadc1f11855af304f /evil-ex.el | |
| parent | 2992858748e6fe8ae706d182b86b684e7b9be8b9 (diff) | |
evil-ex-global: parse COMMAND only once, not on each matching line
Diffstat (limited to 'evil-ex.el')
| -rw-r--r-- | evil-ex.el | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -826,14 +826,8 @@ Returns the line number of the match." NUMBER defaults to 1." (funcall sign (or number 1))) -(defun evil-ex-eval (string &optional start) - "Evaluate STRING as an Ex command. -START is the start symbol, which defaults to `expression'." - ;; disable the mark before executing, otherwise the visual region - ;; may be used as operator range instead of the ex-range - (let ((form (evil-ex-parse string nil start)) - transient-mark-mode deactivate-mark) - (eval form))) +;; function `evil-ex-eval' has been superseded by `evil-ex-parse' plus `eval' +(make-obsolete 'evil-ex-eval 'evil-ex-parse "1.2.14") (defun evil-ex-parse (string &optional syntax start) "Parse STRING as an Ex expression and return an evaluation tree. |
