diff options
| author | Karl Chen | 2016-10-15 22:16:26 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2016-10-24 11:34:04 +0200 |
| commit | 7cc8c4b35bc7fe9b9224503744e3db847c2f96a8 (patch) | |
| tree | 447952e95d520fefd245682c0fe9e60bb6bf1a52 | |
| parent | 8ca70e402ecab5d7e71e418af6866c8b02d4f757 (diff) | |
| download | emacs-7cc8c4b35bc7fe9b9224503744e3db847c2f96a8.tar.gz emacs-7cc8c4b35bc7fe9b9224503744e3db847c2f96a8.zip | |
Don't prompt user when killing Flymake processes
* lisp/progmodes/flymake.el (flymake-start-syntax-check-process):
Don’t prompt the user when killing Flymake processes.
* doc/misc/flymake.texi (Starting the syntax check process):
Document new behavior.
| -rw-r--r-- | doc/misc/flymake.texi | 3 | ||||
| -rw-r--r-- | etc/NEWS | 6 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi index 1c4644bba14..998f1b35170 100644 --- a/doc/misc/flymake.texi +++ b/doc/misc/flymake.texi | |||
| @@ -697,7 +697,8 @@ The command line (command name and the list of arguments) for launching a proces | |||
| 697 | initialization function. Flymake then just calls @code{start-process} | 697 | initialization function. Flymake then just calls @code{start-process} |
| 698 | to start an asynchronous process and configures a process filter and | 698 | to start an asynchronous process and configures a process filter and |
| 699 | sentinel, which are used for processing the output of the syntax check | 699 | sentinel, which are used for processing the output of the syntax check |
| 700 | tool. | 700 | tool. When exiting Emacs, running Flymake processes will be killed |
| 701 | without prompting the user. | ||
| 701 | 702 | ||
| 702 | @node Parsing the output | 703 | @node Parsing the output |
| 703 | @section Parsing the output | 704 | @section Parsing the output |
| @@ -478,6 +478,12 @@ This is done with the help of 'c-or-c++-mode' function which analyses | |||
| 478 | contents of the buffer to determine whether it's a C or C++ source | 478 | contents of the buffer to determine whether it's a C or C++ source |
| 479 | file. | 479 | file. |
| 480 | 480 | ||
| 481 | ** Flymake | ||
| 482 | |||
| 483 | +++ | ||
| 484 | *** Emacs does no longer prompt the user before killing Flymake | ||
| 485 | processes on exit. | ||
| 486 | |||
| 481 | 487 | ||
| 482 | * New Modes and Packages in Emacs 26.1 | 488 | * New Modes and Packages in Emacs 26.1 |
| 483 | 489 | ||
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 30c9fed45ca..1b78823ccdb 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -1072,6 +1072,7 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'." | |||
| 1072 | "flymake-proc" (current-buffer) cmd args)))) | 1072 | "flymake-proc" (current-buffer) cmd args)))) |
| 1073 | (set-process-sentinel process 'flymake-process-sentinel) | 1073 | (set-process-sentinel process 'flymake-process-sentinel) |
| 1074 | (set-process-filter process 'flymake-process-filter) | 1074 | (set-process-filter process 'flymake-process-filter) |
| 1075 | (set-process-query-on-exit-flag process nil) | ||
| 1075 | (push process flymake-processes) | 1076 | (push process flymake-processes) |
| 1076 | 1077 | ||
| 1077 | (setq flymake-is-running t) | 1078 | (setq flymake-is-running t) |