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

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

[elpa] 07/10: [gnugo int] Use ‘set-p rocess-query-on-exit-flag’.


From: Thien-Thi Nguyen
Subject: [elpa] 07/10: [gnugo int] Use ‘set-p rocess-query-on-exit-flag’.
Date: Sat, 15 Feb 2014 11:58:31 +0000

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

commit 1567256220d490228cbed5cb36376614ded8eea6
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sat Feb 15 12:04:45 2014 +0100

    [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’.
---
 packages/gnugo/ChangeLog |    7 +++++++
 packages/gnugo/gnugo.el  |    4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/packages/gnugo/ChangeLog b/packages/gnugo/ChangeLog
index 2f365de..81167a0 100644
--- a/packages/gnugo/ChangeLog
+++ b/packages/gnugo/ChangeLog
@@ -1,3 +1,10 @@
+2014-02-15  Thien-Thi Nguyen  <address@hidden>
+
+       [gnugo int] Use ‘set-process-query-on-exit-flag’.
+
+       * gnugo.el (gnugo-board-mode): ...here,
+       instead of avoiding ‘process-kill-buffer-query-function’.
+
 2014-02-15  Thien-Thi Nguyen  <address@hidden>
 
        [gnugo int] Zonk unused local var.
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index 684a282..1d5d5a5 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/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]