ttn pushed a commit to branch ttn-gnugo in repository elpa. commit 04529a59b677ff3fbea4a678ae06d45d67387ed3 Author: Thien-Thi Nguyen <t...@gnu.org> Date: Thu Jan 30 20:52:17 2014 +0100
[gnugo] Don't use ‘process-kill-buffer-query-function’. * packages/gnugo/gnugo.el (gnugo-board-mode): Make ‘kill-buffer-query-functions’ buffer-local and then remove ‘process-kill-buffer-query-function’ from it. --- packages/gnugo/ChangeLog | 8 ++++++++ packages/gnugo/gnugo.el | 4 ++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/packages/gnugo/ChangeLog b/packages/gnugo/ChangeLog index 09a339d..4c9b53b 100644 --- a/packages/gnugo/ChangeLog +++ b/packages/gnugo/ChangeLog @@ -1,5 +1,13 @@ 2014-01-30 Thien-Thi Nguyen <t...@gnu.org> + [gnugo] Don't use ‘process-kill-buffer-query-function’. + + * gnugo.el (gnugo-board-mode): + Make ‘kill-buffer-query-functions’ buffer-local and + then remove ‘process-kill-buffer-query-function’ from it. + +2014-01-30 Thien-Thi Nguyen <t...@gnu.org> + [gnugo] Wait at most 30sec for subproc output chunk. * gnugo.el (gnugo-synchronous-send/return): diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el index 3a38a80..d25b4c1 100644 --- a/packages/gnugo/gnugo.el +++ b/packages/gnugo/gnugo.el @@ -1711,6 +1711,10 @@ In this mode, keys do not self insert. Default keybindings: (gnugo-put :proc (apply 'start-process "gnugo" nil name "--mode" "gtp" "--quiet" proc-args))) + ;; Emacs is too protective sometimes, blech. + (remove-hook (make-local-variable 'kill-buffer-query-functions) + 'process-kill-buffer-query-function + t) (when (or minus-l infile) (mapc (lambda (x) (apply (lambda (prop q)