[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 223/255: use igs-re-cond to handle prompts
From: |
Eric Schulte |
Subject: |
[elpa] 223/255: use igs-re-cond to handle prompts |
Date: |
Sun, 16 Mar 2014 01:02:52 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 96bc62bee973c27c4847eda66976a88c7c16811d
Author: Eric Schulte <address@hidden>
Date: Thu Aug 8 10:52:36 2013 -0600
use igs-re-cond to handle prompts
---
back-ends/igs.el | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/back-ends/igs.el b/back-ends/igs.el
index f012090..7173086 100644
--- a/back-ends/igs.el
+++ b/back-ends/igs.el
@@ -135,10 +135,8 @@ This is used to re-send messages to keep the IGS server
from timing out.")
(content (match-string 2 string)))
(case type
(:prompt
- (case (if *igs-last-command*
- (intern (concat ":" (downcase *igs-last-command*)))
- :none)
- (:games (igs-list-games *igs-instance* *igs-games*))
+ (igs-re-cond (or *igs-last-command* "")
+ ("^games" (igs-list-games *igs-instance* *igs-games*))
(t nil))
(setq *igs-last-command* nil))
(:info (unless (string= content "yes")
@@ -259,7 +257,7 @@ This is used to re-send messages to keep the IGS server
from timing out.")
(declare (indent 1))
`(cond ,@(mapcar
(lambda (part)
- (cons (if (or (keywordp (car part)))
+ (cons (if (or (keywordp (car part)) (eq t (car part)))
(car part)
`(string-match ,(car part) ,string))
(cdr part)))
- [elpa] 214/255: refresh list every time the buffer changes size, (continued)
- [elpa] 214/255: refresh list every time the buffer changes size, Eric Schulte, 2014/03/15
- [elpa] 212/255: bug fix, wrong function name, Eric Schulte, 2014/03/15
- [elpa] 225/255: quit observing IGS game w/o closing connection, Eric Schulte, 2014/03/15
- [elpa] 171/255: bigger stones, Eric Schulte, 2014/03/15
- [elpa] 219/255: updated igs backend, Eric Schulte, 2014/03/15
- [elpa] 222/255: asynchronous IGS game listing, Eric Schulte, 2014/03/15
- [elpa] 220/255: list buffer navigation, Eric Schulte, 2014/03/15
- [elpa] 217/255: sorting columns, Eric Schulte, 2014/03/15
- [elpa] 216/255: small list buffer tweaks, Eric Schulte, 2014/03/15
- [elpa] 238/255: wrap go-re-cond in save-match-data, Eric Schulte, 2014/03/15
- [elpa] 223/255: use igs-re-cond to handle prompts,
Eric Schulte <=
- [elpa] 224/255: handle IGS shouts, Eric Schulte, 2014/03/15
- [elpa] 226/255: remove shouts from comments, Eric Schulte, 2014/03/15
- [elpa] 151/255: Revert "push all buffer-local variables into an igs object", Eric Schulte, 2014/03/15
- [elpa] 237/255: thoughts about browser-based implementation, Eric Schulte, 2014/03/15
- [elpa] 236/255: factor general comint utils out of igs.el, Eric Schulte, 2014/03/15
- [elpa] 192/255: two consecutive passes ends the game, Eric Schulte, 2014/03/15
- [elpa] 210/255: using curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 203/255: adding GPL copyright file, Eric Schulte, 2014/03/15
- [elpa] 243/255: undo through gtp pipe, Eric Schulte, 2014/03/15
- [elpa] 246/255: customizable default gnugo options, Eric Schulte, 2014/03/15