摆脱“缓冲区有正在运行的进程”当进程是flymake进程时的确认
有没有办法告诉 emacs 在我关闭关联的缓冲区时始终终止 Flymake 进程?当与缓冲区关联的唯一进程是 Flymake 进程时,我不想得到确认?
Is there a way to tell emacs to always kill flymake processes when I'm closing the associated buffer? I don't want to get the confirmation when the only process associated with the buffer is a flymake process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还可以关闭 process-query-on-exit-flag 并给出建议:
这与上面的补丁具有相同的效果,但不需要修改 Flymake.el 。
You can also turn the
process-query-on-exit-flag
off with advice:This has the same effect as the patch above, but it does not require modifying flymake.el .
这是一个补丁。要点是修改调用flymake的函数以使用
set-process-query-on-exit-flag
来设置process-query-on-exit-flag
变量Flymake 进程的nil
。另请参阅Ch f set-process-query-on-exit-flag
。Here's a patch. The gist is to modify the function that invokes flymake to use
set-process-query-on-exit-flag
to set theprocess-query-on-exit-flag
variable tonil
for the flymake process. See alsoC-h f set-process-query-on-exit-flag
.