diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-21 04:46:14 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-21 04:46:14 +0100 |
commit | 540a2cb21e9d8b84ddd3be629b7f2937f76cf6e9 (patch) | |
tree | 1e3833f585dadab16862e615a98aebca27bf0817 /elisp/geiser-compile.el | |
parent | 3b9b06b6af1a069084a7f62177a87611b78fb599 (diff) | |
download | geiser-540a2cb21e9d8b84ddd3be629b7f2937f76cf6e9.tar.gz geiser-540a2cb21e9d8b84ddd3be629b7f2937f76cf6e9.tar.bz2 |
Correct stack in load/compile file retorts.
Diffstat (limited to 'elisp/geiser-compile.el')
-rw-r--r-- | elisp/geiser-compile.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-compile.el b/elisp/geiser-compile.el index ee6c5f8..82200a5 100644 --- a/elisp/geiser-compile.el +++ b/elisp/geiser-compile.el @@ -69,14 +69,14 @@ (message "") (geiser-compile--pop-to-buffer)))) -(defun geiser-compile--file-op (path op msg) +(defun geiser-compile--file-op (path compile-p msg) (let* ((b/p (geiser-compile--buffer/path path)) (buffer (car b/p)) (path (cdr b/p)) (msg (format "%s %s ..." msg path))) (message msg) (geiser-compile--display-result - msg (geiser-eval--send/wait `(:eval ((:ge ,op) ,path) (geiser emacs)))))) + msg (geiser-eval--send/wait `(,(if compile-p :comp-file :load-file) ,path))))) ;;; User commands: @@ -84,7 +84,7 @@ (defun geiser-compile-file (path) "Compile and load Scheme file." (interactive "FScheme file: ") - (geiser-compile--file-op path 'compile-file "Compiling")) + (geiser-compile--file-op path t "Compiling")) (defun geiser-compile-current-buffer () "Compile and load current Scheme file." @@ -94,7 +94,7 @@ (defun geiser-load-file (path) "Load Scheme file." (interactive "FScheme file: ") - (geiser-compile--file-op path 'load-file "Loading")) + (geiser-compile--file-op path nil "Loading")) (defun geiser-load-current-buffer () "Load current Scheme file." |