简体   繁体   English

Emacs中的Common Lisp Inferior Lisp缓冲区

[英]Common Lisp Inferior Lisp Buffer in Emacs

I am wondering why the Common Lisp buffer in Emacs is called "Inferior Lisp"? 我想知道为什么Emacs中的Common Lisp缓冲区被称为“Inferior Lisp”? That is, inferior to what? 那就是不如什么? What is the reason? 是什么原因?

Also, is it correct to understand that that buffer is basically a shell that runs an implementation of Lisp, very similar to how one runs it in a terminal? 另外,理解缓冲区基本上是运行Lisp实现的shell是否正确,与在终端中运行它的方式非常相似?

Lastly, how do things like SLIME and Slynk tie into this? 最后,像SLIME和Slynk这样的事情如何与此相关?

If you mean buffer *inferior-lisp , which is created by command inferior-lisp , then the meaning derives from the fact that it is the output of an "inferior" process. 如果你的意思是缓冲区*inferior-lisp ,它是由命令inferior-lisp创建的,那么意思就来自于它是“劣等”过程的输出这一事实。

Ch f inferior-lisp tells you: Ch f inferior-lisp告诉你:

Run an inferior Lisp process, input and output via buffer *inferior-lisp* . 运行一个劣质的Lisp进程,通过buffer *inferior-lisp*输入和输出。

If there is a process already running in *inferior-lisp* , just switch to that buffer. 如果已经在*inferior-lisp*运行了一个进程,只需切换到该缓冲区即可。

With argument, allows you to edit the command line (default is value of 'inferior-lisp-program'). 使用参数,允许您编辑命令行(默认值为'inferior-lisp-program')。 Runs the hooks from inferior-lisp-mode-hook (after the comint-mode-hook is run). 运行来自inferior-lisp-mode-hook (在运行comint-mode-hook之后)。

(Type ? in the process buffer for a list of commands.) (在进程缓冲区中键入?以获取命令列表。)

And Ch v inferior-lisp-program tells you: Ch v inferior-lisp-program告诉你:

Program name for invoking an inferior Lisp in Inferior Lisp mode. 用于在Inferior Lisp模式下调用劣质Lisp的程序名称。

You can customize this variable. 您可以自定义此变量。

See the Emacs manual, node External Lisp (the node title is Running an External Lisp ) for information about running an external Lisp session. 有关运行外部Lisp会话的信息,请参阅Emacs手册,节点External Lisp (节点标题是运行外部Lisp )。 It tells you, for example: 它告诉你,例如:

You can run an external Lisp session as a subprocess or “inferior process” of Emacs, and pass expressions to it to be evaluated. 您可以将外部Lisp会话作为Emacs的子进程“劣质进程”运行 ,并将表达式传递给它进行评估。

The subprocess, or "inferior" process, is run from the Emacs process (session). 子进程或“劣质”进程从Emacs进程(会话)运行。

See also this question and this question about "inferior" process/program/shell. 又见这个问题这个问题有关“劣质”的过程/程序/壳。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM