emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/typescript-mode 072f8ad43f 213/222: fix eval invocation in


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 072f8ad43f 213/222: fix eval invocation in typescript--re-search-backward to work with lexical scoping
Date: Sun, 6 Feb 2022 16:59:33 -0500 (EST)

branch: elpa/typescript-mode
commit 072f8ad43f31debaf926fee1c5681df77a5e1389
Author: Platon Pronko <platon7pronko@gmail.com>
Commit: Platon Pronko <platon7pronko@gmail.com>

    fix eval invocation in typescript--re-search-backward to work with lexical 
scoping
    
    Under lexical scoping variable references won't be found when evaluating
    the expression, resulting in "eval: Symbol’s value as variable is void: 
regexp"
    error.
---
 typescript-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 8fb2ff41b0..ef4f0e55b9 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -992,11 +992,11 @@ one at the end of the line with \"let a\"."
   (let ((saved-point (point))
         (search-expr
          (cond ((null count)
-                '(typescript--re-search-backward-inner regexp bound 1))
+                `(typescript--re-search-backward-inner ,regexp ,bound 1))
                ((< count 0)
-                '(typescript--re-search-forward-inner regexp bound (- count)))
+                `(typescript--re-search-forward-inner ,regexp ,bound (- 
,count)))
                ((> count 0)
-                '(typescript--re-search-backward-inner regexp bound count)))))
+                `(typescript--re-search-backward-inner ,regexp ,bound 
,count)))))
     (condition-case err
         (eval search-expr)
       (search-failed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]