Function: xscheme-region-expression-p
xscheme-region-expression-p is a byte-compiled function defined in
xscheme.el.gz.
Signature
(xscheme-region-expression-p START END)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xscheme.el.gz
(defun xscheme-region-expression-p (start end)
(save-excursion
(let ((old-syntax-table (syntax-table)))
(unwind-protect
(progn
(set-syntax-table scheme-mode-syntax-table)
(let ((state (parse-partial-sexp start end)))
(and (zerop (car state)) ;depth = 0
(nth 2 state) ;last-sexp exists, i.e. >= 1 sexps
(let ((state (parse-partial-sexp start (nth 2 state))))
(if (nth 2 state) 'many 'one)))))
(set-syntax-table old-syntax-table)))))