ttn pushed a commit to branch ttn-gnugo
in repository elpa.
commit 0b757b9912d9581e243b7f26909f5a16830ee80b
Author: Thien-Thi Nguyen <[email protected]>
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 <[email protected]>
+ [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 <[email protected]>
+
[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)