[Top][All Lists]

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

[elpa] externals/gnugo 0893d87 010/357: [gnugo] Don't use ‘process-kill

From: Stefan Monnier
Subject: [elpa] externals/gnugo 0893d87 010/357: [gnugo] Don't use ‘process-kill-buffer-query-function’.
Date: Sun, 29 Nov 2020 14:50:36 -0500 (EST)

branch: externals/gnugo
commit 0893d87818abf06de0a26877de7123f7daf9ca42
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [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.
 gnugo.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnugo.el b/gnugo.el
index 3a38a80..d25b4c1 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1711,6 +1711,10 @@ In this mode, keys do not self insert.  Default 
       (gnugo-put :proc (apply 'start-process "gnugo" nil name
                               "--mode" "gtp" "--quiet"
+    ;; 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]