[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 184/255: safer and automatic quitting
From: |
Eric Schulte |
Subject: |
[elpa] 184/255: safer and automatic quitting |
Date: |
Sun, 16 Mar 2014 01:02:45 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 16acb15478270784f38d1cb0e90619e5b029a291
Author: Eric Schulte <address@hidden>
Date: Sun May 19 12:07:22 2013 -0600
safer and automatic quitting
---
go-board.el | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/go-board.el b/go-board.el
index f48ddd0..6f51b79 100644
--- a/go-board.el
+++ b/go-board.el
@@ -421,6 +421,10 @@
(with-backends tr (go-quit tr))
(kill-buffer (current-buffer))))
+(defun go-board-safe-quit ()
+ (ignore-errors (with-backends tr (go-quit tr)))
+ t)
+
;;; Display mode
(defvar go-board-mode-map
@@ -438,7 +442,9 @@
"Keymap for `go-board-mode'.")
(define-derived-mode go-board-mode nil "GO"
- "Major mode for viewing a GO board.")
+ "Major mode for viewing a GO board."
+ (set (make-local-variable 'kill-buffer-query-functions)
+ (add-to-list 'kill-buffer-query-functions 'go-board-safe-quit)))
;;; Class and interface
- [elpa] 174/255: quit the main back-end as well, (continued)
- [elpa] 174/255: quit the main back-end as well, Eric Schulte, 2014/03/15
- [elpa] 160/255: removing stones/ directory, Eric Schulte, 2014/03/15
- [elpa] 175/255: support for playing different types of games, Eric Schulte, 2014/03/15
- [elpa] 157/255: images of stones, Eric Schulte, 2014/03/15
- [elpa] 177/255: future tasks, Eric Schulte, 2014/03/15
- [elpa] 182/255: reverse order of sizes, Eric Schulte, 2014/03/15
- [elpa] 172/255: re-organized how files are loaded, Eric Schulte, 2014/03/15
- [elpa] 156/255: chunking responses from IGS server into full lines, Eric Schulte, 2014/03/15
- [elpa] 183/255: explicit connection method for back-end objects, Eric Schulte, 2014/03/15
- [elpa] 179/255: track and display prisoners, Eric Schulte, 2014/03/15
- [elpa] 184/255: safer and automatic quitting,
Eric Schulte <=
- [elpa] 186/255: better interactive debugging, Eric Schulte, 2014/03/15
- [elpa] 191/255: don't throw error when backend passes, Eric Schulte, 2014/03/15
- [elpa] 185/255: remove dependencies on org-mode functions, Eric Schulte, 2014/03/15
- [elpa] 176/255: task managment, Eric Schulte, 2014/03/15
- [elpa] 178/255: process igs "tell" messages, Eric Schulte, 2014/03/15
- [elpa] 181/255: NOTES #+option, Eric Schulte, 2014/03/15
- [elpa] 193/255: calculate the final score, Eric Schulte, 2014/03/15
- [elpa] 194/255: notes on scaling image sizes, Eric Schulte, 2014/03/15
- [elpa] 198/255: don't mutate hidden state, Eric Schulte, 2014/03/15
- [elpa] 196/255: mark an overlay with a black or white cross, Eric Schulte, 2014/03/15