branch: elpa/typescript-mode
commit 072f8ad43f31debaf926fee1c5681df77a5e1389
Author: Platon Pronko <[email protected]>
Commit: Platon Pronko <[email protected]>

    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