Author: klimek Date: Tue Oct 11 04:21:20 2016 New Revision: 283863 URL: http://llvm.org/viewvc/llvm-project?rev=283863&view=rev Log: clang-include-fixer.el: Don't prompt the user about killing clang-include-fixer processes
By default, Emacs prompts the user when killing processes on exit. This is useful for stateful processes such as interactive shells. However, clang-include-fixer processes are stateless; the only effect of killing them is to cancel a clang-include-fixer operation. Therefore prompting the user is just a nuisance. Patch by Philipp Stephani. Differential Revision: https://reviews.llvm.org/D25378 Modified: clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el Modified: clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el?rev=283863&r1=283862&r2=283863&view=diff ============================================================================== --- clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el (original) +++ clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el Tue Oct 11 04:21:20 2016 @@ -101,6 +101,7 @@ arguments. Return the new process objec :buffer stdout :command (clang-include-fixer--command args) :coding 'utf-8-unix + :noquery t :connection-type 'pipe :sentinel (clang-include-fixer--sentinel stdin stdout stderr callback) @@ -118,6 +119,7 @@ arguments. Return the new process objec (process (apply #'start-process "clang-include-fixer" stdout (clang-include-fixer--command args)))) (set-process-coding-system process 'utf-8-unix 'utf-8-unix) + (set-process-query-on-exit-flag process nil) (set-process-sentinel process (clang-include-fixer--sentinel stdin stdout nil callback)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits