[英]Getting rid of “buffer has running process” confirmation when the process is a flymake process
當我關閉相關緩沖區時,有沒有辦法告訴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。
這是一個補丁 。 要點是修改調用flymake的函數,使用set-process-query-on-exit-flag
為flymake進程設置process-query-on-exit-flag
變量為nil
。 另請參見Ch f set-process-query-on-exit-flag
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.