本文介绍了运行方案从emacs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是LISP的新手。



我正在尝试从emacs(版本23在Windows上运行)调用方案解释器。我通过将emacs告诉 M-x load-library ,然后在minibuffer的提示符下输入 xscheme 来加载xscheme库。加载库,然后我发出了 M-x run-scheme 命令。 (我意识到所有这些加载都可以在启动时从.emacs完成,但我现在不关心)。



到目前为止这么好 - code> * scheme * 缓冲区已经创建,现在我希望能够与计划解释器交谈。



但是,当我尝试评估一些 * scheme * 缓冲区(例如(定义鞋子大小14))),我得到这个方案的输出文件描述符在minibuffer中关闭消息。



有人知道如何解决这个问题在emacs?



(另外,如何在 * scheme * 缓冲区中将主模式设置为REPL?) / p>

谢谢。

解决方案

尝试设置 scheme-program-name 变量到您的Scheme解释器的路径。方案缓冲区的主要模式可能只是 comint ,你不能做太多事情,除非你切换到更有能力的东西,如 - 我建议你做的事情。


I'm a newbie to LISP.

I am attempting to invoke the scheme interpreter from within emacs (version 23 running on windows). I loaded the xscheme library by telling emacs to M-x load-library and then entering xscheme at the prompt in the minibuffer. The library loaded, and then I issued the M-x run-scheme command. (I realize that all this loading can be done from .emacs at startup, but I am not concerned with that at the moment.)

So far so good - the *scheme* buffer has been created, and now I'm hoping that I'm able to talk to the scheme interpreter.

However, when I try to evaluate something in that *scheme*buffer (e.g. (define shoe-size 14)), I get this Output file descriptor of scheme is closed message in the minibuffer.

Does anybody know how to fix this in emacs?

(Also, how does one set the major-mode as REPL in the *scheme* buffer?)

Thank you.

解决方案

Try setting the scheme-program-name variable to the path to your Scheme interpreter. The major-mode of the scheme buffer is probably just comint and you cannot do much about it unless you switch to something more capable like Geiser - something that I'd recommend you do.

这篇关于运行方案从emacs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 04:05