diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-02-02 15:59:51 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-02-02 15:59:51 +0100 |
commit | 0eaf8e78241b8bac9698ab3694d8060ac113fd56 (patch) | |
tree | f65f1f98af7e73fe49b0b16edb8774e6a94e2149 /elisp/geiser-syntax.el | |
parent | a1d4a163464157ad5bb0b82f92a2ebfcc81aacf4 (diff) | |
download | geiser-guile-0eaf8e78241b8bac9698ab3694d8060ac113fd56.tar.gz geiser-guile-0eaf8e78241b8bac9698ab3694d8060ac113fd56.tar.bz2 |
Elisp scheme reader: more room for recursive list scanning.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 7 |
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)))))) |