emacs - 当进程是 Flymake 进程时摆脱 "buffer has running process"确认

标签 emacs flymake

有没有办法告诉 emacs 在我关闭关联的缓冲区时始终终止 Flymake 进程?当与缓冲区关联的唯一进程是 Flymake 进程时,我不想得到确认?

最佳答案

您还可以通过建议关闭process-query-on-exit-flag:

(defadvice flymake-start-syntax-check-process (after
                                               cheeso-advice-flymake-start-syntax-check-1
                                               (cmd args dir)
                                               activate compile)
  ;; set flag to allow exit without query on any
  ;;active flymake processes
  (set-process-query-on-exit-flag ad-return-value nil))

这与上面的补丁效果相同,但不需要修改 Flymake.el 。

关于emacs - 当进程是 Flymake 进程时摆脱 "buffer has running process"确认,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7299893/

相关文章:

html - 让 flymake 与 Django 一起工作?

python - ubuntu(virtualbox)上的emacs flymake错误

emacs - 如何为 Spacemacs 的指定层添加自定义键绑定(bind)?

emacs - 在命令行中调用 man 命令时如何使用 emacs 查看手册页?

function - 如何在 Elisp 中传递 lambda 表达式

emacs - 为不同的项目设置不同的c-basic-offs

emacs - 如何在 Emacs 组织模式中插入带有日期和时间的日程表

对于 coffeescript,emacs flymake 模式失败

c++ - Emacs:烦人的 Flymake 对话框

c++ - 设置 makefile 以使用 emacs flymake 检查 c 和 c++ 源文件