(Arne Babenhauserheide)
2013-07-24: multiline: added emacs as a predefined interpreter, because it is multiline: added emacs as a predefined interpreter, because it is actually hard to get right.
diff --git a/wisp-multiline.sh b/wisp-multiline.sh
--- a/wisp-multiline.sh
+++ b/wisp-multiline.sh
@@ -102,10 +102,12 @@ fi
# Select the lisp interpreter
-if [[ $LISP != "guile" ]]; then
+if [[ $LISP == "guile" ]]; then
+ INTERPRETER="guile -s /dev/stdin"
+elif [[ $LISP == "emacs" ]]; then
+ INTERPRETER="emacs -Q --batch --eval '(with-temp-buffer (progn (condition-case nil (let (line) (while (setq line (read-from-minibuffer \"\")) (insert line)(insert \"\n\"))) (error nil)) (eval-current-buffer)))))'"
+else
INTERPRETER="${LISP}"
-else
- INTERPRETER="guile -s /dev/stdin"
fi
## parameters