summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
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
commit143a0696ff04d4c56cbfb0204352380a21765b1f (patch)
treedb8d7b9c63317ca09bb335c50b75e1928958e1e9 /elisp/geiser-syntax.el
parent68d3cb6c453d1c0165e9232cffafb96716018490 (diff)
downloadgeiser-143a0696ff04d4c56cbfb0204352380a21765b1f.tar.gz
geiser-143a0696ff04d4c56cbfb0204352380a21765b1f.tar.bz2
Elisp scheme reader: more room for recursive list scanning.
Diffstat (limited to 'elisp/geiser-syntax.el')
-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))))))