[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 238/255: wrap go-re-cond in save-match-data
From: |
Eric Schulte |
Subject: |
[elpa] 238/255: wrap go-re-cond in save-match-data |
Date: |
Sun, 16 Mar 2014 01:02:55 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 750dae6d764841c5963054bc5803bad236137434
Author: Eric Schulte <address@hidden>
Date: Fri Aug 9 00:46:37 2013 -0600
wrap go-re-cond in save-match-data
---
go-util.el | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/go-util.el b/go-util.el
index 7247d05..ccb2252 100644
--- a/go-util.el
+++ b/go-util.el
@@ -142,13 +142,14 @@
(defmacro go-re-cond (string &rest body)
(declare (indent 1))
- `(cond ,@(mapcar
- (lambda (part)
- (cons (if (or (keywordp (car part)) (eq t (car part)))
- (car part)
- `(string-match ,(car part) ,string))
- (cdr part)))
- body)))
+ `(save-match-data
+ (cond ,@(mapcar
+ (lambda (part)
+ (cons (if (or (keywordp (car part)) (eq t (car part)))
+ (car part)
+ `(string-match ,(car part) ,string))
+ (cdr part)))
+ body))))
(def-edebug-spec go-re-cond (form body))
(defvar *go-partial-line* nil "Holds partial lines of input from a process.")
- [elpa] 200/255: refresh the go board, (continued)
- [elpa] 200/255: refresh the go board, Eric Schulte, 2014/03/15
- [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 <=
- [elpa] 223/255: use igs-re-cond to handle prompts, Eric Schulte, 2014/03/15
- [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