2

如果我可以运行 Emacs 文本的选定区域作为 ac 或 c++ 程序的输入,那就太好了。然后程序的输出可以覆盖选定的文本。有这样的功能吗?

4

1 回答 1

2
shell-command-on-region is an interactive compiled Lisp function in
`simple.el'.

It is bound to <s-kp-bar>, s-|, M-|, <menu-bar> <tools>
<shell-on-region>.

(shell-command-on-region START END COMMAND &optional OUTPUT-BUFFER
REPLACE ERROR-BUFFER DISPLAY-ERROR-BUFFER)

Execute string COMMAND in inferior shell with region as input.
Normally display output (if any) in temp buffer `*Shell Command Output*';
Prefix arg means replace the region with it.  Return the exit code of
COMMAND.
于 2013-10-30T03:34:09.123 回答