diff options
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-syntax.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index d790734..7a33770 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -197,7 +197,8 @@ implementation-specific entries for font-lock-keywords.") (when (stringp string) (let* ((start (or start 0)) (end (or end (length string))) - (max-lisp-eval-depth (max max-lisp-eval-depth (- end start)))) + (max-lisp-eval-depth (min 20000 + (max max-lisp-eval-depth (- end start))))) (with-temp-buffer (save-excursion (insert string)) (cons (ignore-errors (geiser-syntax--read)) (point)))))) |