开发者

Getting rid of "buffer has running process" confirmation when the process is a flymake process

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 pro开发者_JAVA百科cess associated with the buffer is a flymake process?


You can also turn the process-query-on-exit-flag off with advice:

(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))

This has the same effect as the patch above, but it does not require modifying flymake.el .


Here's a patch. The gist is to modify the function that invokes flymake to use set-process-query-on-exit-flag to set the process-query-on-exit-flag variable to nil for the flymake process. See also C-h f set-process-query-on-exit-flag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜