Emacs和Long Shell命令 [英] Emacs and Long Shell Commands

查看:137
本文介绍了Emacs和Long Shell命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法运行一个shell命令,输出显示在一个新的缓冲区,并且该输出逐渐显示? Eshell和其他emacs终端仿真器做一个这样的工作,但是我没有办法编写它们。



我想做的是写小elisp函数来做例如运行单元测试等,并将输出流滴入缓冲区。



elisp函数shell命令靠近我想要的,但显示所有输出

解决方案

As doublep ,那里有 Mx编译,还有一个简单的 Mx shell ,并且在那个shell里你可以运行任何你想要的。 >

Is there a way to run a shell command, have the output show up in a new buffer and have that output show up incrementally? Eshell and other emacs terminal emulators do a find job of this but I see no way to script them.

What I'd like to do is write little elisp functions to do stuff like run unit tests, etc. and watch the output trickle into a buffer.

The elisp function shell-command is close to what I want but it shows all the output at once when the process finishes.

解决方案

As doublep mentioned, there is M-x compile, and there's also just the simple M-x shell and in that shell you run whatever you want.

这篇关于Emacs和Long Shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆