From 53127cc01422a540d8f9bc0fd3130520e77f438f Mon Sep 17 00:00:00 2001 From: Kang-min Liu Date: Sat, 2 Jan 2021 23:09:44 +0900 Subject: [PATCH] An attempt to resolve an error on indenting. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue #23 When indenting something like if %h{"foo"} { ....... (press tab here) } This error happens. (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") Note here that while the fix does makes the error go away, it is not entirely certain whether it breaks the indentation for some other cases. But I think we could live with this until we found what's broken. --- raku-indent.el | 4 ---- 1 file changed, 4 deletions(-) diff --git a/raku-indent.el b/raku-indent.el index 517fcea..d3c01f5 100644 --- a/raku-indent.el +++ b/raku-indent.el @@ -55,10 +55,6 @@ (`(:elem . basic) raku-indent-offset) (`(:elem . arg) 0) (`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467). - (`(:before . "{") - (when (smie-rule-hanging-p) - (smie-backward-sexp ";") - (smie-indent-virtual))) (`(:before . ,(or "{" "(")) (if (smie-rule-hanging-p) (smie-rule-parent 0)))))