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

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

[elpa] externals/gnugo 2a75447 034/357: [gnugo int] Use ‘set-process-qu


From: Stefan Monnier
Subject: [elpa] externals/gnugo 2a75447 034/357: [gnugo int] Use ‘set-process-query-on-exit-flag’.
Date: Sun, 29 Nov 2020 14:50:42 -0500 (EST)

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

    [gnugo int] Use ‘set-process-query-on-exit-flag’.
    
    * packages/gnugo/gnugo.el (gnugo-board-mode): ...here,
    instead of avoiding ‘process-kill-buffer-query-function’.
---
 gnugo.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 684a282..1d5d5a5 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1717,9 +1717,7 @@ In this mode, keys do not self insert.  Default 
keybindings:
                               "--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)
+    (set-process-query-on-exit-flag (gnugo-get :proc) nil)
     (when (or minus-l infile)
       (mapc (lambda (x)
               (apply (lambda (prop q)



reply via email to

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