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

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

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


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

ttn pushed a commit to branch master
in repository elpa.

commit 7e20538a6d5839a4a35ee19b15387b9a8f1cfe15
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/gnugo.el |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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]