From 0eaf8e78241b8bac9698ab3694d8060ac113fd56 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 2 Feb 2010 15:59:51 +0100 Subject: Elisp scheme reader: more room for recursive list scanning. --- elisp/geiser-syntax.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 4c2623d..c041ed4 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -1,6 +1,6 @@ ;;; geiser-syntax.el -- utilities for parsing scheme syntax -;; Copyright (C) 2009 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -173,8 +173,9 @@ (defun geiser-syntax--read-from-string (string &optional start end) (when (stringp string) - (let ((start (or start 0)) - (end (or end (length string)))) + (let* ((start (or start 0)) + (end (or end (length string))) + (max-lisp-eval-depth (max max-lisp-eval-depth (- end start)))) (with-temp-buffer (save-excursion (insert string)) (cons (ignore-errors (geiser-syntax--read)) (point)))))) -- cgit v1.2.3