summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-02-02 15:59:51 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-02-02 15:59:51 +0100
commit0eaf8e78241b8bac9698ab3694d8060ac113fd56 (patch)
treef65f1f98af7e73fe49b0b16edb8774e6a94e2149 /elisp
parenta1d4a163464157ad5bb0b82f92a2ebfcc81aacf4 (diff)
downloadgeiser-chez-0eaf8e78241b8bac9698ab3694d8060ac113fd56.tar.gz
geiser-chez-0eaf8e78241b8bac9698ab3694d8060ac113fd56.tar.bz2
Elisp scheme reader: more room for recursive list scanning.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-syntax.el7
1 files 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))))))