emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 10/17: [gnugo] Don't use ‘pro cess-kill-buffer-query-function’.


From: Thien-Thi Nguyen
Subject: [elpa] 10/17: [gnugo] Don't use ‘pro cess-kill-buffer-query-function’.
Date: Mon, 03 Feb 2014 09:35:08 +0000

ttn pushed a commit to branch ttn-gnugo
in repository elpa.

commit 0b757b9912d9581e243b7f26909f5a16830ee80b
Author: Thien-Thi Nguyen <address@hidden>
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  <address@hidden>
 
+       [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  <address@hidden>
+
        [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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]