[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 248/255: try to fix gnugo Emacs crashes
From: |
Eric Schulte |
Subject: |
[elpa] 248/255: try to fix gnugo Emacs crashes |
Date: |
Sun, 16 Mar 2014 01:02:57 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 80e132c2da182b7aef6ab6aac21e0aa1bf254c53
Author: Eric Schulte <address@hidden>
Date: Sat Aug 24 17:02:31 2013 -0600
try to fix gnugo Emacs crashes
---
back-ends/gnugo.el | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/back-ends/gnugo.el b/back-ends/gnugo.el
index 0c909e4..7feefcc 100644
--- a/back-ends/gnugo.el
+++ b/back-ends/gnugo.el
@@ -74,13 +74,15 @@ For example, the following changes the level of gnugo.
(gnugo-wait-for-output gnugo))
(defun gnugo-wait-for-output (gnugo)
- (with-current-buffer (buffer gnugo)
- (while (progn
- (goto-char comint-last-input-end)
- (not (re-search-forward "^= *[^\000]+?\n\n" nil t)))
- (when (re-search-forward "^? *\\([^\000]+?\\)\n\n" nil t)
- (error (match-string 1)))
- (accept-process-output (get-buffer-process (current-buffer))))))
+ (condition-case e
+ (with-current-buffer (buffer gnugo)
+ (while (progn
+ (goto-char comint-last-input-end)
+ (not (re-search-forward "^= *[^\000]+?\n\n" nil t)))
+ (when (re-search-forward "^? *\\([^\000]+?\\)\n\n" nil t)
+ (error (match-string 1)))
+ (accept-process-output (get-buffer-process (current-buffer)))))
+ (error (message "gnugo error: %S" e))))
(defun gnugo-last-output (gnugo)
(with-current-buffer (buffer gnugo)
- [elpa] 235/255: better line truncation, (continued)
- [elpa] 235/255: better line truncation, Eric Schulte, 2014/03/15
- [elpa] 250/255: mark dead stones at end of game, Eric Schulte, 2014/03/15
- [elpa] 229/255: igs TODO: consistent game un-observation, Eric Schulte, 2014/03/15
- [elpa] 242/255: need assoc for aget, Eric Schulte, 2014/03/15
- [elpa] 228/255: refresh the game list buffer, Eric Schulte, 2014/03/15
- [elpa] 211/255: scale column width by buffer width, Eric Schulte, 2014/03/15
- [elpa] 233/255: igs handle adjourned and resigned games, Eric Schulte, 2014/03/15
- [elpa] 244/255: igs-pipe handles resignation and comments, Eric Schulte, 2014/03/15
- [elpa] 245/255: misc fixes, Eric Schulte, 2014/03/15
- [elpa] 169/255: igs: automatically collect a game listing, Eric Schulte, 2014/03/15
- [elpa] 248/255: try to fix gnugo Emacs crashes,
Eric Schulte <=
- [elpa] 254/255: re-format README, Eric Schulte, 2014/03/15
- [elpa] 161/255: moving towards using images, Eric Schulte, 2014/03/15
- [elpa] 240/255: robust loading w/o load-path customization, Eric Schulte, 2014/03/15
- [elpa] 253/255: renamed el-go README, Eric Schulte, 2014/03/15
- [elpa] 227/255: TODO retain comments, Eric Schulte, 2014/03/15
- [elpa] 231/255: refresh message, Eric Schulte, 2014/03/15
- [elpa] 239/255: backend for GTP through arbitrary process, Eric Schulte, 2014/03/15
- [elpa] 232/255: gtp-num-to-char is being called but is undefined, Eric Schulte, 2014/03/15
- [elpa] 234/255: don't truncate lines in go boards, Eric Schulte, 2014/03/15
- [elpa] 221/255: organize notes, Eric Schulte, 2014/03/15