From 0d66e06ff4fc94991394866c5c7967cc185dfa78 Mon Sep 17 00:00:00 2001 From: schinz Date: Wed, 19 Mar 2003 10:24:11 +0000 Subject: - now use ":use" command to evaluate region, so... - now use ":use" command to evaluate region, so that it is not necessary to wrap things in modules --- support/emacs/inferior-scala-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'support/emacs') diff --git a/support/emacs/inferior-scala-mode.el b/support/emacs/inferior-scala-mode.el index d97a5d14c3..b4a42f1a60 100644 --- a/support/emacs/inferior-scala-mode.el +++ b/support/emacs/inferior-scala-mode.el @@ -81,7 +81,7 @@ but customize `scala-default-interpreter' instead.") (delete-file scala-tmp-file) (setq scala-tmp-file (make-temp-file "scala_tmp"))) (write-region start end scala-tmp-file nil 'quiet) - (scala-send-string ":l %s" scala-tmp-file)) + (scala-send-string ":use %s" scala-tmp-file)) ;;;###autoload (defun scala-eval-buffer () @@ -103,13 +103,13 @@ Used for determining the default in the next one.") (comint-check-source file-name) (setq scala-prev-l/c-dir/file (cons (file-name-directory file-name) (file-name-nondirectory file-name))) - (scala-send-string ":l %s" file-name)) + (scala-send-string ":load %s" file-name)) ;;;###autoload (defun scala-quit-interpreter () "Quit Scala interpreter." (interactive) (scala-check-interpreter-running) - (scala-send-string "\n:q")) + (scala-send-string "\n:quit")) (provide 'inferior-scala-mode) -- cgit v1.2.3