简体   繁体   English

如何用编译开始替换内部编译?

[英]How do I replace compile-internal with compilation start?

I use this valgrind.el to run valgrind inside emacs. 我用这个valgrind.el运行的valgrind在Emacs。 But the newest version of emacs has deprecated compile-internal. 但是最新版本的emacs已弃用内部编译。 I don't know nearly enough about elisp to figure out how to convert the compile-internal call to a compilation-start call. 我对elisp不太了解,无法弄清楚如何将内部编译调用转换为开始编译调用。 This is what the original function call in question looks like: 这就是有问题的原始函数调用的样子:

(compile-internal command "No more errors" "valgrind")

I found this bit online that indicates possible usage of compilation-start: 我在网上发现了这一点,表明可能使用了编译开始:

(compilation-start command mode
         #'(lambda (mode-name) (concat "*" buf-name "*")))

Any help would be appreciated! 任何帮助,将不胜感激!

I am not sure about what you tried and what the results were. 我不确定您尝试了什么以及结果如何。

As per the documentation, I would replace the compile internal line by: 根据文档,我将用以下内容替换编译内部行:

(compilation-start command nil (lambda (mode-name) "*valgrind*"))

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

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