Getting rid of the "buffer has current process" acknowledgment when the process is a flymake process

Is there a way to tell emacs to always kill flymake processes when I close a linked buffer? I do not want to receive confirmation when the only process related to the buffer is the flymake process?

+8
emacs flymake
source share
2 answers

Here's the patch . The bottom line is to change the function that flymake calls to use set-process-query-on-exit-flag to set-process-query-on-exit-flag variable to nil for the flymake process. See also Ch f set-process-query-on-exit-flag .

+5
source share

You can also disable process-query-on-exit-flag with:

 (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 does not require a change to flymake.el.

+10
source share

All Articles